

EID Mega Sale 2026
-21%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Monfia Leather Long Wallet-MFW03
Original price was: à§³1,250.à§³990Current price is: à§³990.
-20%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Men’s Adventure Leather Sandal SB-S1050
Original price was: à§³2,200.à§³1,750Current price is: à§³1,750.
-24%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Tassel Shoes For Men SB-S656
Original price was: à§³2,499.à§³1,899Current price is: à§³1,899.
-22%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Loafer For Men SB-S1034
Original price was: à§³1,950.à§³1,530Current price is: à§³1,530.
-11%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Comfort Slide Sandal For Men SB-S1048
Original price was: à§³1,850.à§³1,650Current price is: à§³1,650.
-22%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Loafer For Men SB-S1054
Original price was: à§³1,950.à§³1,530Current price is: à§³1,530.
-26%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Casual Comfort Leather Loafer Shoes For Men SB-S642 | Premium
Original price was: à§³2,500.à§³1,850Current price is: à§³1,850.
-15%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Classic Black Leather Belt For Men SB-B213
Original price was: à§³999.à§³850Current price is: à§³850.
-25%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Chocolate Textured Leather Formal Shoes For Men SB-S1020
Original price was: à§³3,250.à§³2,450Current price is: à§³2,450.
-23%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Elegance Medicated Leather Loafers SB-S538
Original price was: à§³2,200.à§³1,690Current price is: à§³1,690.
-22%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Textured Pattern Slide Sandal For Men MF20
Original price was: à§³1,990.à§³1,550Current price is: à§³1,550.
-26%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Out of Stock
Leather Half Loafer For Men SB-S1092
Original price was: à§³1,950.à§³1,450Current price is: à§³1,450.
-23%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Leather Loafers SB-S519 | Elite Edition
Original price was: à§³2,200.à§³1,690Current price is: à§³1,690.
-23%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Leather Loafer For Men SB-S1087
Original price was: à§³2,200.à§³1,690Current price is: à§³1,690.
-25%
<?php
global $product;
if (!$product->is_in_stock()) {
$showText = '<span class="out">Out of stock</span>';
echo $showText;
}
if ($product->is_on_sale()){
if ( $product->get_type() == 'variable' ) {
$vars = $product->get_available_variations();
$var_cero = $vars[0]['variation_id'];
$variable_product = wc_get_product($var_cero);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent_max=round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent_max=0;
}
$cont_percent=0;
foreach ($vars as $varID) {
$variable_product = wc_get_product($varID['variation_id']);
$regular_price = $variable_product->get_regular_price();
$sale_price = $variable_product->get_sale_price();
if($sale_price){
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}else{
$percent=0;
}
if($percent_max!=$percent){
if($percent_max>$percent){
$percent_max=$percent_max;
}else{
$percent_max=$percent;
}
}else{
$cont_percent++;
}
#echo $regular_price." - ".$sale_price."%".$percent_max."<br>";
}
if($cont_percent==count($vars)){
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent_max. '%</span>';
}else{
$showText = '<span class="onsale">'. __('Up to -', 'woocommerce' ). $percent_max. '%</span>';
}
}
else{
$regular_price = $product->regular_price;
$sale_price = $product->sale_price;
$percent = round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
$showText = '<span class="onsale">'. __('-', 'woocommerce' ). $percent . '%</span>';
}
echo $showText;
}
?>Black Leather Casual Shoes For Men SB-S1009
Original price was: à§³2,999.à§³2,250Current price is: à§³2,250.






























