Relative Content

Tag Archive for phpwoocommerce

BIN number based discount in WooCommerce

I need to provide BIN number based discount in WooCommerce. I have tried to calculate discount and to apply coupon but none of it works while on the order-pay page. If i go back to checkout it applies the discount. I need this discount to be applied while on the order-pay.

set a shipping cost for first item in cart based on shipping zone and a different cost for each additional item based on quantity steps at woocommerce

i have a PHP code that counts shipping cost in woocommerce based on quantity steps in addition to another cost based on shipping zone, the sum of two costs give the total shipping cost. what i need now to apply the shipping zone cost to only first item in cart and apply the cost based on quantity steps to the rest of items starting from the second item in cart.

Why does my function work sometimes and sometimes not

I am trying to get this function to work consistently but am facing issues. I have a WooCommerce site that allows users to order products without paying immediately. Instead, they have 8 hours to pay cash to any in-store partner, who will then mark the order as complete (changing the order status from on-hold to completed). If they don’t make the payment within 8 hours, their order should automatically cancel (changing the order status from on-hold to cancelled).

Why does my function not working work sometimes and sometimes not

I am trying to get this function to work consistently but am facing issues. I have a WooCommerce site that allows users to order products without paying immediately. Instead, they have 8 hours to pay cash to any in-store partner, who will then mark the order as complete (changing the order status from on-hold to completed). If they don’t make the payment within 8 hours, their order should automatically cancel (changing the order status from on-hold to cancelled).

WooCommerce attributes not inserting into the product

The data is in a strange way, where it just checks if the product name is the same while going through the items in the JSON, and if it does, it adds the attributes of that item to the product with the same name. But right now it only shows the last attributes added in WooCommerce.