Most of my customers are using my mobile website and I’m finding my conversion rate is much lower since I’ve added a discount code as it takes too long to get into the discount code section of the checkout process, it’s also quite hidden. Is there a way to enter a discount code field on the cart page?
thanks in advance
Hey! I had the same issue with my website. I was looking for some liquid code to add to my cart page and found an app which added it to my cart drawer.
I had some small issues with the layout after installation and support fixed it in about an hour after my first email. Here is how my cart drawer looks like now:
And here is an app:
If you're only looking for a way to display a discount input, then you can add a regular input field with the name 'discount' to the cart's <form> element. This works on the cart page as well as a cart popup, as long as the form action posts into the checkout. The discount will be applied on the checkout page after the form is submitted.
E.g. <label>Discount <input name="discount" type="text></label>
The tricky part is if you want to check that the coupon is applicable to the cart and display the discounted amount. There is no easy way to do that yourself at this time, which is why apps exist to handle this functionality. There are many apps that apply a discount on the cart page. They differ in appearance as well as supporting functionality and price. The app we've developed for this purpose is https://apps.shopify.com/discount-on-cart-pro. It has a 14-day free trial so you can give it a shot risk-free.
Great question! For the time being, we have decided to give the app away for free. If you install it your price will never change (the app will remain free forever - for you). In the future we will work on a different pricing model however at this time we prefer to let people use it without any deterrents.
Most of the permissions that you see are standard (outside our control). The custom permissions that we ask for are:
- To manage your theme, in order to be able to help with any issues you may have with installation or while using the app
- To read your discount and shipping configuration.
To answer your question about what data we use - only your store's email and phone number as provided by Shopify during app installation. At this time we do not store anything else (apart from temporarily caching certain API responses to improve load time). In the future, we will be adding a reporting feature that will involve storing and displaying non-identifiable cumulative data. For example the count of how many users went on the cart page and applied the coupon yesterday. At that time we will also have language explaining how we use data from your store.
Thank you for all the excellent information. I installed the app today, but unfortunately, it's doing the same thing that my own custom solution was doing, which was why I went looking for a professional solution in the first place. The cart coupons and the checkout coupons don't seem to communicate with each other, and the cart seems to always think there's a coupon. I believe the problem is that the discount_code cookie is not being removed. But that's not the only issue, because I've also had it where there was a coupon applied on checkout but the cart didn't know about it.
I can provide more details later, unfortunately I don't have the time now, but I wanted to get this message to you in case you have any ideas.