shopwp / wp-shopify

🎉 Sell and build custom Shopify experiences on WordPress.
https://wpshop.io
GNU General Public License v2.0
45 stars 9 forks source link

Add Discount Code to Checkout Cart #102

Open ghost opened 5 years ago

ghost commented 5 years ago

Adding a discount code text input with an Apply button directly in the Checkout Cart would be an amazing feature to add, and the shopify buy js library has discount code in its api.

arobbins commented 5 years ago

@GregPhyn

Hey Greg,

Thanks for the recommendation! Since Shopify provides a discount input section within their checkout pages, would adding this feature be a purely UX improvement for your application? What kind of problems would it solve for you?

ghost commented 5 years ago

@arobbins the purpose of the discount code would actually be to make the referralcandy, or any referral system, experience better. If a person who receives a referral link saying they will receive a discount, and they click on the referral link, the discount should be pre-populated in the discount field. Now, if one uses normal shopify theme that isn't a problem.

To achieve this, all that is needed on the wp-shopify side is the discount code input box, and associated functionality (success input + updated price showing the discount).

The referral stuff most developers can fit in by themselves as that is unique to each person and scenario.