Summer Sandal Deals

Men’s Leather Sandal SB-S618 | Budget King
Men’s Leather Sandal SB-S618 | Budget King

-17%

<?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 Leather Sandal SB-S618 | Budget King

Original price was: ৳1,200.Current price is: ৳999.

Casual Men's Leather Sandal SB-S530 | Budget King

-8%

<?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 Men’s Leather Sandal SB-S530 | Budget King

Original price was: ৳1,290.Current price is: ৳1,190.

Men’s Leather Sandal SB-S617 | Budget King
Men’s Leather Sandal SB-S617 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S617 | Budget King

Original price was: ৳1,350.Current price is: ৳1,049.

Men’s Leather Sandal SB-S613 | Budget King
Men’s Leather Sandal SB-S613 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S613 | Budget King

Original price was: ৳1,200.Current price is: ৳899.

Men’s Leather Sandal SB-S614 | Budget King
Men’s Leather Sandal SB-S614 | Budget King

-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 Leather Sandal SB-S614 | Budget King

Original price was: ৳1,480.Current price is: ৳1,180.

Men’s Leather Sandal SB-S600 | Budget King
Men’s Leather Sandal SB-S600 | Budget King

-27%

<?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 Leather Sandal SB-S600 | Budget King

Original price was: ৳1,480.Current price is: ৳1,080.

Men's Leather Sandal SB-S539 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S539 | Budget King

Original price was: ৳1,299.Current price is: ৳999.

Men’s Leather Sandal SB-S581 | Budget King
Men’s Leather Sandal SB-S581 | Budget King

-17%

<?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 Leather Sandal SB-S581 | Budget King

Original price was: ৳1,200.Current price is: ৳999.

Men’s Leather Sandal SB-S574 | Budget King
Men’s Leather Sandal SB-S574

-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;
}

?>

Men’s Leather Sandal SB-S574 | Budget King

Original price was: ৳1,200.Current price is: ৳899.

Men’s Leather Sandal SB-S607 | Budget King
Men’s Leather Sandal SB-S607 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S607 | Budget King

Original price was: ৳1,350.Current price is: ৳999.

Men’s Leather Sandal SB-S603 | Budget King
Men’s Leather Sandal SB-S603 | Budget King

-17%

<?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 Leather Sandal SB-S603 | Budget King

Original price was: ৳1,200.Current price is: ৳999.

Men’s Leather Sandal SB-S611 | Budget King
Men’s Leather Sandal SB-S611 | Budget King
<?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 Leather Sandal SB-S611 | Budget King

৳1,200

Casual Men's Leather Sandal SB-S313 | Budget King

-8%

<?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 Men’s Leather Sandal SB-S313 | Budget King

Original price was: ৳1,290.Current price is: ৳1,190.

Men’s Leather Sandal SB-S587 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S587 | Budget King

Original price was: ৳1,299.Current price is: ৳999.

Men's Leather Slide Sandal SB-S528 | Budget King

-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;
}

?>

Men’s Leather Slide Sandal SB-S528 | Budget King

Original price was: ৳1,299.Current price is: ৳999.

Men’s Leather Sandal SB-S604 | Budget King
Men’s Leather Sandal SB-S604 | Budget King

-17%

<?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 Leather Sandal SB-S604 | Budget King

Original price was: ৳1,200.Current price is: ৳999.

Men’s Leather Sandal SB-S598 | Executive
Men’s Leather Sandal SB-S598 | Executive

-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;
}

?>

Men’s Leather Sandal SB-S598 | Executive

Original price was: ৳2,200.Current price is: ৳1,699.

Men’s Leather Sandal SB-S615 | Budget King
Men’s Leather Sandal SB-S615 | Budget King

-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;
}

?>

Men’s Leather Sandal SB-S615 | Budget King

Original price was: ৳1,299.Current price is: ৳999.

Men’s Leather Sandal SB-S616 | Budget King
Men’s Leather Sandal SB-S616 | Budget King

-17%

<?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 Leather Sandal SB-S616 | Budget King

Original price was: ৳1,200.Current price is: ৳999.

Men's Leather Sandal SB-S542 | Budget King

-31%

<?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 Leather Sandal SB-S542 | Budget King

Original price was: ৳1,299.Current price is: ৳899.

Men’s Leather Sandal SB-S602 | Budget King
Men’s Leather Sandal SB-S602 | Budget King

-30%

<?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 Leather Sandal SB-S602 | Budget King

Original price was: ৳1,350.Current price is: ৳950.

Men's Leather Slide Sandal SB-S531 | Budget King

-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;
}

?>

Men’s Leather Slide Sandal SB-S531 | Budget King

Original price was: ৳1,299.Current price is: ৳999.

SSB Leather