make a discount multiplied by the quantity of goods, please
-
if($prodObj->get_attributes()[‘pa_size’] !== “large”){
return “<span>”.$item_price.”</span> <span class=’txt-discounted-amount’>
“. get_woocommerce_currency_symbol().” “.$cart_original_price * $cart_quantity. “</span>”;}
if($wwsd_discount_type == “flat”)
{
if($prodObj->get_attributes()[‘pa_size’] !== “large”){
$discount_msg = get_woocommerce_currency_symbol().” “.($wwsd_discounted_amount * $wwsd_arr_wholesale_discount_values[$product_id][‘quantity’]). ” скидка”;$discount_msg = “<span style=\”color:#3eb903\”> [“.$discount_msg.”]</span>”;
}}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘make a discount multiplied by the quantity of goods, please’ is closed to new replies.