Back to Top

Opencart Coupon

Updated 20 January 2017

Today we will learn how to create coupon in Opencart and how to apply coupon at the time of checkout. In Opencart admin has to create a coupon for the customer and sends a coupon code to the customer. Admin can create percentage or fixed type coupon and can set the discount amount of the coupon. Admin can choose product as well as categories for which the coupon can be applied.

Admin can set the coupon validity in which coupon can be applied by the customer.

 

Searching for an experienced
Opencart Company ?
Find out More

When customer apply the coupon in the “checkout/cart” page and click the “Apply Coupon” button then a “coupon” function of the “total/coupon” controller is called through AJAX call.

In the function Opencart gets the details of the coupon and save the coupon code in the session by an index name “coupon”.

After the saving in the session Opencart reload the “checkout/cart” page for apply the coupon to the customer cart.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home