Submit a request

Adcode needs option to apply discount as COUPON, not just discount (10)

Comments

10 comments

  • Avatar
    Brian Bell
    Jeremy, While it is true that adcode discounts don't currently have the ability to be exclusive discounts on the cart, I'd like to clarify something you mentioned about adcode discounts being perpetually available for a customer. Adcode based discounts are like any other discount method in the system, and can be configured to allow one one use per customer, so as long as you configured it as such, I don't believe that would be an issue.
  • Avatar
    Kathy Sechrist
    I've been with AC a LONG time and this is one of many things that was broken on the new platform we're now using (yeah I know it's a few yrs old now, but I was one of the last to move up, and they dragged me kicking and screaming....) I was very happy with the way it used to work - an adcode could trigger a discount rule, and could also be typed in as if it were a coupon code - it would work either way, but would not "double dip". This allowed me to send emails with discounts built into the links. In the email, I could say "just click this link or enter this coupon code" and either would work, but if they tried to do both, they still only got the discount once. NOW - I can no longer use adcode links in my emails. Of all the things I lost when I finally upgraded to this platform, the old adcode system is the thing I miss most.
  • Avatar
    Jeremy Roberts
    Hi Brian, The AdCode discount will be active until the session expires if not used, right? If the session is set to never expire (or to maximum which is approx 30 days), and the customer does not use the discount, and they come back tomorrow, the adcode will still be active. How can this happen? Use an AdCode on an exit-intent popup "IF YOU checkout now, save 20%, click here..." This offer is not available tomorrow. But it will be if the customer doesn't use it right now. Possible workarounds include shortening the session time - but this defeats other initiatives to keep a customer cart active and customer logged in... I'm actually building this out right now after solving a bunch of other related issues... such as hiding the coupon code field in checkout, if an inbound AdCode is active. I'll report back soon.
  • Avatar
    Jeremy Roberts
    I am updating this because I discovered an easier way to accomplish this!!!! Use the Affiliate system. The affiliate system has a built-in option for disabling coupon codes: Settings > Marketing > Affiliates > Coupon Scheme set to “Coupon Not Accepted” Done. Then, create an affiliate - set cookie duration to “After First Sale” (this solves the session duration question) Commission rate: 0% Pay for repeat sales: no Then for the discount, set to: strict, once per customer then, the link for the exit-intent popup will be: http://www.domain.com/store/shopcart.aspx?af=specialoffer It’s really that easy! We were trying to configure the space shuttle to go 3 blocks. And this was all built into AmeriCommerce all along. NOT that we won’t want to use AdCodes and SessionAdCode merges for other functions in the future, for the specific needs of the original question in this thread, THIS is the answer. And finally, Brian - the Affiliate cookie session length settings are very clear if using the affiliate module (which is pretty awesome). I should do a guest-blog post for you on this!! :-)
  • Avatar
    Jeremy Roberts
    I am updating this because I discovered an easier way to accomplish this!!!! Use the Affiliate system. The affiliate system has a built-in option for disabling coupon codes: Settings > Marketing > Affiliates > Coupon Scheme set to “Coupon Not Accepted” Done. Then, create an affiliate - set cookie duration to “After First Sale” (this solves the session duration question) Commission rate: 0% Pay for repeat sales: no Then for the discount, set to: strict, once per customer then, the link for the exit-intent popup will be: http://www.domain.com/store/shopcart.aspx?af=specialoffer It’s really that easy! We were trying to configure the space shuttle to go 3 blocks. And this was all built into AmeriCommerce all along. NOT that we won’t want to use AdCodes and SessionAdCode merges for other functions in the future, for the specific needs of the original question in this thread, THIS is the answer. And finally, Brian - the Affiliate cookie session length settings are very clear if using the affiliate module (which is pretty awesome). I should do a guest-blog post for you on this!! :-)
  • Avatar
    Jeremy Roberts
    I am updating this because I discovered an easier way to accomplish this!!!! Use the Affiliate system. The affiliate system has a built-in option for disabling coupon codes: Settings > Marketing > Affiliates > Coupon Scheme set to “Coupon Not Accepted” Done. Then, create an affiliate - set cookie duration to “After First Sale” (this solves the session duration question) Commission rate: 0% Pay for repeat sales: no Then for the discount, set to: strict, once per customer then, the link for the exit-intent popup will be: http://www.domain.com/store/shopcart.aspx?af=specialoffer It’s really that easy! We were trying to configure the space shuttle to go 3 blocks. And this was all built into AmeriCommerce all along. NOT that we won’t want to use AdCodes and SessionAdCode merges for other functions in the future, for the specific needs of the original question in this thread, THIS is the answer. And finally, Brian - the Affiliate cookie session length settings are very clear if using the affiliate module (which is pretty awesome). I should do a guest-blog post for you on this!! :-)
  • Avatar
    Bryan D.
    If I could vote this up more times, I would. This is a pretty huge headache when we are offering multiple, different discounts for the same product. Jeremy, your solution may work but also has limitations if I am understanding it properly. Right now we currently use a coupon to trigger free shipping, but only for specific items and under certain scenarios. This would stop that from being effective, I believe.
  • Avatar
    Bryan D.
    I'm going to post some script here, I hope it works! I have found a temporary alternate solution using jQuery. My jquery knowledge isn't the best, so someone may have a better method than I have found to do this. However, this is working for the time being: In your Theme Editor, add this to your cart: function getUrlParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } } var homeadcode = getUrlParameter('a'); var cartdc = getUrlParameter('dc'); if ( homeadcode == 'vcpop' && cartdc == 'vchallenge' ) { $(function(){ $("#ctl26_txtCouponCode").val("vokechallenge"); $('#ctl26_btnAddCoupon').click(); }); } What does this do? This checks for URL parameters that you pass to your cart and then assigns them to a variable. So in my case, it checks for the URL paramter 'a=' and also 'dc='. I use these for redundancy, and because using 'a=' allows me to track the adcode as well! After storing those in a variable, it uses the 'IF' statement to check what those variables are equal to. I have them passed along as 'a=vcpop' and 'dc=vchallenge' in my URL, and then stored as the variables homeadcode and cartdc. Next from your theme editor, you need to get the DIV ID's for both the Coupon Code Box as well as the 'Add Code' button, which you can see above as "#ctl26_txtCouponCode" and "#ctl26_btnAddCoupon", respectively. The last part of the Jquery auto-populates the coupon code and then submits it for you. For reference, here is a snippet of my custom URL to make this work: blah .com/store/addtocart.aspx?itemid=69&qty=1&a=vcpop&dc=vchallenge The disadvantages are that you need a special link with these values in it, and also it causes the page to refresh. However, those are both relatively minor considerations in comparison to the multiple discount codes the adcode can provide!
  • Avatar
    Jeremy Roberts
    Based on Bryan's idea, we explored a way to solve this... This can easily be done with some minor scripting... Please see: https://americommerce.zendesk.com/hc/en-us/articles/202902310-How-to-add-a-discount-to-the-cart-by-clicking-a-link and look for my post from Aug 17 that has a complete commented solution. Now, there are some defects and minor imperfections that a professional coder may know how to work around. But this works.
  • Avatar
    Kathy Sechrist
    I need to test to be sure, but I was just working with discounts and saw something that might fix this - "Action is Exclusive". If I'm understanding this correctly, you could put two actions - adcode and coupon - and the first one used will trigger the discount, the 2nd one will not. I would need to thoroughly test though, because we have some sneaky customers who will find any bugs or loopholes they can take advantage of to get double discounts. Has anyone else tried this already?

Please sign in to leave a comment.

We're Here To Help


Standard Support Hours: Monday-Friday 8AM-6PM CST
Looking for Premium Support? Just ask!

Speak to a live person
1 (800) 936-9006
Submit A Support Ticket
Submit Your Ticket Here