

EID Mega Sale 2026
-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-S1095
Original price was: à§³1,950.à§³1,530Current price is: à§³1,530.
-14%
<?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;
}
?>Genuine Leather Sandal For Men SB-S1075
Original price was: à§³2,900.à§³2,490Current price is: à§³2,490.
-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 Loafer Shoes For Men SB-S512
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;
}
?>Black And White Suede Slide Sandal For Men MF21
Original price was: à§³1,990.à§³1,550Current price is: à§³1,550.
-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;
}
?>Crocodile Pattern Leather Half Loafers SB-S1084
Original price was: à§³2,500.à§³1,990Current price is: à§³1,990.
-32%
<?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 Leather Loafer For Men SB-S893
Original price was: à§³1,999.à§³1,350Current price is: à§³1,350.
-18%
<?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-S1030
Original price was: à§³2,250.à§³1,850Current price is: à§³1,850.
-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-S1017
Original price was: à§³2,200.à§³1,690Current price is: à§³1,690.
-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-S650| Premium
Original price was: à§³2,499.à§³1,899Current price is: à§³1,899.
-18%
<?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
Black Comfort Leather Sandal For Men SB-S1045
Original price was: à§³1,650.à§³1,350Current price is: à§³1,350.
-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;
}
?>Leather Loafer For Men SB-S1029 | Executive Edition
Original price was: à§³1,980.à§³1,480Current price is: à§³1,480.
-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;
}
?>Reversible Leather Belt For Men SB-B215
Original price was: à§³1,250.à§³999Current price is: à§³999.
-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-S540
Original price was: à§³2,200.à§³1,690Current price is: à§³1,690.
-35%
<?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 Wallet For Men SB-W245
Original price was: à§³999.à§³650Current price is: à§³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-S1034
Original price was: à§³1,950.à§³1,530Current price is: à§³1,530.






























