Support

Home Forums Multiple Event Registration Add-on Remove promo code from cart

Remove promo code from cart

Posted: February 25, 2020 at 11:26 am


botanicwise

February 25, 2020 at 11:26 am

Is there a way to remove a promo code from a cart from the front-end? LEt’s say that a customer has applied the wrong code and wants to change it…


Josh

  • Support Staff

February 25, 2020 at 11:48 am

Hi,

There actually isn’t. Once the promo code is accepted for a transaction there isn’t a way to remove it.


botanicwise

February 25, 2020 at 12:04 pm

OK, but the problem that I am actually having is that the promo card is being applied automatically to transactions occurring after the transaction where the coupon was applied. Here’s the scenario:

1) User applied promo code on transaction and completed transaction
2) User comes back later to purchase additional tickets. Coupon code is automatically applied.

Is this the intended behavior? Is there any way to prevent this from occurring?


Josh

  • Support Staff

February 25, 2020 at 12:10 pm

That’s not normal or intended behavior. Is the user hitting the back button after completing the transaction. Or is the registration-checkout page & thank you page served from a cache?


botanicwise

February 25, 2020 at 12:29 pm

Hi Josh,

We are hosted on SiteGround and using their SuperCache. I did exclude the necessary pages from cache, but it still seems to be picking up the coupon. I will try disabling cache altogether to see if it makes any difference.

In the meantime, is there any specific guidance for SuperCache / Siteground?


Josh

  • Support Staff

February 25, 2020 at 1:20 pm

If disabling the cache doesn’t help (as you’ve alluded to in your other topic), then the next step is to rule out a plugin conflict. You could also check and make sure any server level caching isn’t interfering with WordPress transient storage (you may need to check with your host about this).

Normally sessions need to clear when a transaction is completed.


botanicwise

March 9, 2020 at 12:11 pm

Josh – is there any way to make a request to be able to remove coupons from a cart?


Josh

  • Support Staff

March 10, 2020 at 8:45 am

Hi,

That’s not a feature we plan on adding. The way forward for your site will be to figure out why sessions are not clearing when the transaction is completed.

The support post ‘Remove promo code from cart’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Status: closed

Updated by  Josh 7 months, 2 weeks ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[gravityform id=80 title=false description=false ajax=false]
<div class='gf_browser_unknown gform_wrapper' id='gform_wrapper_80' ><form method='post' enctype='multipart/form-data' id='gform_80' action='/topic/remove-promo-code-from-cart/'> <div class='gform_body'><ul id='gform_fields_80' class='gform_fields top_label form_sublabel_below description_below'><li id='field_80_1' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_1' >First name<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_text'><input name='input_1' id='input_80_1' type='text' value='' class='medium' aria-required="true" aria-invalid="false" /></div></li><li id='field_80_2' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_2' >Email address<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_email'> <input name='input_2' id='input_80_2' type='email' value='' class='medium' aria-required="true" aria-invalid="false" /> </div></li><li id='field_80_3' class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' >GDPR Agreement<span class='gfield_required'>*</span></label><div class='ginput_container ginput_container_checkbox'><ul class='gfield_checkbox' id='input_80_3'><li class='gchoice_80_3_1'> <input name='input_3.1' type='checkbox' value='I consent to have this website store my submitted information so they can respond to my inquiry.' id='choice_80_3_1' /> <label for='choice_80_3_1' id='label_80_3_1'>I consent to have this website store my submitted information so they can respond to my inquiry.</label> </li></ul></div></li><li id='field_80_4' class='gfield gform_validation_container field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_80_4' >Name</label><div class='ginput_container'><input name='input_4' id='input_80_4' type='text' value='' autocomplete='off'/></div><div class='gfield_description' id='gfield_description_80_4'>This field is for validation purposes and should be left unchanged.</div></li> </ul></div> <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_80' class='gform_button button' value='Download Now' onclick='if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} ' onkeypress='if( event.keyCode == 13 ){ if(window["gf_submitting_80"]){return false;} if( !jQuery("#gform_80")[0].checkValidity || jQuery("#gform_80")[0].checkValidity()){window["gf_submitting_80"]=true;} jQuery("#gform_80").trigger("submit",[true]); }' /> <input type='hidden' class='gform_hidden' name='is_submit_80' value='1' /> <input type='hidden' class='gform_hidden' name='gform_submit' value='80' /> <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' /> <input type='hidden' class='gform_hidden' name='state_80' value='WyJbXSIsIjBiNjdjZjkyMDUzOWUxOWY5Y2NiZjIwMzM4YjA1Mjk4Il0=' /> <input type='hidden' class='gform_hidden' name='gform_target_page_number_80' id='gform_target_page_number_80' value='0' /> <input type='hidden' class='gform_hidden' name='gform_source_page_number_80' id='gform_source_page_number_80' value='1' /> <input type='hidden' name='gform_field_values' value='' /> </div> </form> </div><script type='text/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 80) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [80, 1]) } ); </script>
[i]
[i]