Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

CCGV - Coupons before shipping?


Recommended Posts

Ran into a slight problem. Right now we calculate qualifying for free shipping based on having $50 or more with of products in the cart. Problem is, you have to pick your shipping option at checkout_shipping before you have the chance to enter coupon codes on checkout_payment. So we've gotten into a few situations where someone has $50 in thier cart, picks free shipping, and then enters a 30% off coupon code, so they're getting free shipping on $35.


Is is possible to move the CCGV prompts and processing to checkout_shipping, and have the page refresh itself so that the calculation for free shipping can be run correctly?

Link to comment
Share on other sites

  • 2 years later...

I am also having the same problem . Any body has the solution?


I got a solution for this.

Add the following code in includes/classes/order_total.php, in function process(), after the line $GLOBALS[$class]->process();

if ($GLOBALS['ot_coupon']->enabled)



That will get the value of cc_id again so we dont need to refresh the page.

This is for oscommerce RC2

Hope this will be of use to somebody

Deepa Devan

Project Manager

Euphontec Solutions and Services

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...