John Davidson

php - Do not change the regular price while using a coupon in woocomerce order

0 comments
Message:


I using a fixed discount coupon for my woocomerce order. But the regular price may changed while applying the coupon. Is there any option to prohibit the changes in regular price and show the discount only at bottom like subtotal.



My Answer:
Yes, you can prevent the regular price from changing when applying a coupon in WooCommerce by using a fixed discount coupon. You can achieve this by customizing the way the discount is displayed on the order summary.

One way to do this is by modifying the WooCommerce template files to display the discount separately at the bottom of the order summary, without changing the regular price. You can create a custom template file for the order summary and include the discount amount separately at the bottom.

Another option is to use a WooCommerce plugin that allows you to customize the way discounts are displayed on the order summary. There are several plugins available that offer this functionality, such as WooCommerce Advanced Discounts and WooCommerce Discount Rules.

By using one of these methods, you can ensure that the regular price remains unchanged when applying a fixed discount coupon in WooCommerce, and the discount amount is displayed separately at the bottom of the order summary.

Rate this post

3 of 5 based on 4945 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us