

বসন্ত উৎসব
-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;
}
?>Elegance Medicated Casual Loafer Shoes For Men SB-S525 | Premium
Original price was: ৳2,500.৳1,999Current price is: ৳1,999.
-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;
}
?>Leather Loafer For Men SB-S1025
Original price was: ৳1,980.৳1,350Current price is: ৳1,350.
-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-S575 | Executive
Original price was: ৳2,200.৳1,690Current price is: ৳1,690.
-60%
<?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 Zipper Hand Purse Bag For Women’s SB-W220 | Executive
Original price was: ৳1,999.৳800Current price is: ৳800.
-33%
<?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 Bi-Fold Wallet SB-W240
Original price was: ৳1,200.৳799Current price is: ৳799.
-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.
-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;
}
?>Dark Brown Leather Penny Loafer Shoes For Men SB-S995
Original price was: ৳2,999.৳2,250Current price is: ৳2,250.
-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.
-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;
}
?>Cute Er Dibba Leather Short Wallet SB-W18
Original price was: ৳899.৳699Current price is: ৳699.
-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;
}
?>Classic Dark Maroon One Part Leather Belt For Men-IB109
Original price was: ৳1,899.৳1,699Current price is: ৳1,699.
-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;
}
?>Stylish Design Leather Loafer For Men SB-S938
Original price was: ৳1,980.৳1,350Current price is: ৳1,350.
-10%
<?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 Long Wallet SB-W08
Original price was: ৳999.৳899Current price is: ৳899.
-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;
}
?>Classic Dark Maroon One Part Leather Belt For Men-IB113
Original price was: ৳1,899.৳1,699Current price is: ৳1,699.
-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-S496
Original price was: ৳2,200.৳1,690Current price is: ৳1,690.
-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.
-7%
<?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;
}
?>Oxblood Leather Executive Bag SB-LB502
Original price was: ৳6,999.৳6,499Current price is: ৳6,499.
-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;
}
?>Genuine Leather Half Shoes For Men SB-S1024
Original price was: ৳2,500.৳1,750Current price is: ৳1,750.
-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.
-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 Small Card Wallet SB-W232
Original price was: ৳850.৳650Current price is: ৳650.
-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.
-10%
<?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 Elegance Leather Wallet For Men SB-W243
Original price was: ৳999.৳899Current price is: ৳899.
-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;
}
?>Classic Black Formal Slip-On shoes For Men SB-S935
Original price was: ৳2,650.৳1,850Current price is: ৳1,850.
-13%
<?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;
}
?>Stylish Buckle Leather Gear Belt For Men SB-IB068
Original price was: ৳1,900.৳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 Agun Long Wallet SB-W137
Original price was: ৳1,280.৳999Current price is: ৳999.
















































