- Support forum for the WooCommerce Coupons & Add to Cart by URL Links.
- This topic has 9 replies, 5 voices, and was last updated 1 year, 8 months ago by Moshtafizur.
-
AuthorPosts
-
May 14, 2022 at 12:48 am #92560RobGuest
Ok, have read through the description and support comments. I think this will work the way I want.
I am creating a unique landing page copy of one of our products to be used for a JV with a guy.
We intend on having a unique price for his readers on this page, and then the “buy” button does the product add to cart feature from Woo, but then I can tack this query string onto the end to add the coupon needed to achieve the discount advertised on the unique sales page.
Correct?
May 15, 2022 at 8:51 am #92561MoshtafizurParticipantHello Rob,
Thanks for reaching out.
Yes, that’s possible. This can be achieved in two ways:
1. Create a Fixed product discount type coupon and add your product to Usage restriction > Products.
Then navigate to WooCommerce > Settings > URL Coupons > General and enable the Add products to cart option. Your customers will then be able to use links such as:
http://example.com/?alg_apply_coupon=your_coupon
2. Create a Percentage discount coupon, and use
add-to-cart
URL param.Let’s say your product’s ID is
54
. Then your customers will be able to use links such as:http://example.com/?add-to-cart=54&alg_apply_coupon=your_coupon
You can also customize the
alg_apply_coupon
URL param name in WooCommerce > Settings > URL Coupons > General > URL coupons key.I hope this information was helpful to you. Please get in touch with me if you have any queries or need help.
May 17, 2022 at 8:13 pm #92562Darlene HildebrandtParticipantAwesome. Purchased. Just setting it up now. Question: within the settings, the checkbox for hiding coupon field on cart and checkout… is that a global setting that will affect my entire checkout process? or just for these instances where I use URL Coupon feature.
I DO want coupons available to general shoppers, but I also DO see the advantage of removing the field if I’m using your querystring coupon feature.
May 18, 2022 at 10:52 am #92563MoshtafizurParticipantHello,
I hope you are well today. Thank you for purchasing our plugin.
In the plugin’s settings, under the General section, if you enable the Hide Coupon Options > Cart page and Hide Coupon Options > Checkout page, then it will hide the standard coupon input fields on the cart and checkout page for all kinds of users.
I hope this information was helpful to you. Please get in touch with me if you have any queries or need help.
Kind regards,
MoshtafizurMay 19, 2022 at 12:05 am #92564Darlene HildebrandtParticipantSo if it impacts our normal checkout process, I’ll have to uncheck that then. We use coupons a lot. I understand the value for hiding coupon fields on the checkout when the coupon url feature is used, but if it disables the coupon field for our other products I’ll have to keep it off.
May 19, 2022 at 12:11 am #92565Darlene HildebrandtParticipantSorry, I just checked and the coupon field is still there if it’s NOT a Url Coupons query string. It only seems to remove the coupon field when the querystring applies a coupon. So all good.
May 19, 2022 at 4:47 am #92566ZohaibParticipantHi Rob,
Happy to hear that it is working for you now.
May 21, 2022 at 8:07 am #92567Hello,
Just a note about the “hide coupon options”.
When the hide options are enabled, the coupon fields are hidden regardless of whether a coupon is being applied via URL or not. So probably you should be having caching issues where you are seeing the cached version with the coupon field visible and a non-cached version with the fields hidden.
Maybe it could be happening because of the
?alg_apply_coupon
URL param. When we access a URL with a unique custom query string, the caching plugin will think it’s a new page and it will serve a more recent version of that page.Anyway, hiding the fields only when the coupon is being applied from the URL is a good idea for a new feature. We’ll add it to our to-do list.
May 21, 2022 at 7:14 pm #92568Darlene HildebrandtParticipantYes, the new feature would be great. Final note: no pages within my checkout system are cached. I’ll be monitoring it though, as it seems to be working for me. If I notice something, I’ll deactivate.
March 7, 2023 at 10:37 am #110805MoshtafizurParticipantHi Darlene,
I hope you are well today.
We have released a new version of the plugin (1.6.7), including a feature named Hide condition. with this new option, you would be able to set if you want to hide the coupon field only when a valid coupon is applied through the URL. This new feature is located under the General tab of the plugin’s settings, in the Hide Coupon Options section.
Please have a look and give it a try.
Kind regards,
Moshtafizur -
AuthorPosts
- You must be logged in to reply to this topic.