Implementation of custom offer price at checkout page
-
Is there any way to offer a discounted price to a course apart from woocommerce sale price.
I am creating a custom functionality to show offer products at checkout page. When you add to cart from there you will get an extra discount.
I have tried following to set custom price,
- $product->set_price( $price_discount );
- At hook : woocommerce_before_calculate_totals $value[‘data’]->set_price( $price_discount );
Is there any way to set custom price. Any help would be highly appreciated.
Regards,
Ashu
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Implementation of custom offer price at checkout page’ is closed to new replies.