jeffharrell / minicart

The minicart is a great way to improve your PayPal shopping cart integration.
MIT License
501 stars 211 forks source link

Add discount coupon on the cart #295

Open Territoriohost opened 7 years ago

Territoriohost commented 7 years ago

Hi I'm using minicart in my web and I would like to have the option of adding a field in the cart to enter a discount coupon, I have read the documentation but I do not see that option, there is a way to do it, thanks

robliberty commented 7 years ago

This would be an AMAZING feature! An input field on the cart that accepts a predefined "coupon code" and subtracts an associated amount once per cart.

It could use a config like {"coupon": "SAVE10", "type":"flat", "value": "-10.00"} or {"coupon": "SAVE10", "type":"percent", "value": "10"}

I really like the default minicart :) with a few style tweaks and added mobile responsiveness I have it working here: https://vt14.com