Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Opencart coupon history not working with Paypal

in catalog/model/checkout/coupon.php


  public function getCoupon($code) {



 public function getCoupon($code,$noverify=0) {

AND change


       if ($status) {
             return array(



       if (($status)||($noverify)) {
             return array(

Next, in catalog/model/total/coupon.php in the confirm function right near the bottom change


    $coupon_info = $this->model_checkout_coupon->getCoupon($code);



    $coupon_info = $this->model_checkout_coupon->getCoupon($code,1);

Here is the VQMod xml file:

<?xml version="1.0" encoding="utf-8"?>
<id>Fix Coupon Codes (so they register after using paypal or similar payment gateway)</id>
<author>Sanjoy Roy </author>
<file name="catalog/model/checkout/coupon.php">
<search position="replace"><![CDATA[ public function getCoupon($code) { ]]></search>
<add><![CDATA[ public function getCoupon($code, $verify = true) { ]]></add>
<search position="replace"><![CDATA[ if ($status) { ]]></search>
<add><![CDATA[ if ($status || $verify === false) { ]]></add>

<file name="catalog/model/total/coupon.php">
<search position="replace"><![CDATA[ $coupon_info = $this->model_checkout_coupon->getCoupon($code); ]]></search>
<add><![CDATA[ $coupon_info = $this->model_checkout_coupon->getCoupon($code, false); ]]></add>

7 responses to “Opencart coupon history not working with Paypal

  1. Mike 24/09/2012 at 9:03 AM

    THANK YOU SOOOO MUCH!!! THIS FIXED MY ISSUE. NOW I CAN ACTUALLY SEE WHAT COUPON CODES ARE BEING USED VIA THE COUPON HISTORY REPORT. Previous to this fix, there was no data being inserted into the coupon_history table. Thanks thanks thanks!

  2. YouTube 17/03/2013 at 9:03 AM

    You can also save money by using coupons.
    Store physical credit cards virtually on your mobile device ‘ For starters, it simplifies shopping and checkout because of the tap and pay feature. Here are some questions to ask yourself or family members as they work on their list:.

  3. ejaculation by command pdf 01/05/2013 at 7:27 AM

    Hello, always i used to check blog posts here in the early hours in
    the morning, for the reason that i love to find out more and more.

  4. Http://acnenomaspdf.Blogspot.Com/ 24/09/2013 at 9:02 AM

    and also to those who have a condition which is harmless until
    it affects the eye and that condition is called Rosacea common
    in both sexes it peak onset is during 30-60 years of
    life. Some have controlled or prevented this type of acne by
    dietary change. To be precise and specific the Eczema symptoms
    can be the following:.

  5. inteligator download 15/12/2013 at 5:35 AM

    I’m nоt that much of a onlіne reader to be honest but your blogs
    гeally nіce, keep it up! I’ll go aheaԁ and bookmark your site to come back later.

  6. Emmanuel 11/10/2014 at 6:26 AM

    Feng Shui tea (9): This tea is a combination of traditional
    oriental herbs designed to help reduce the body’s susceptibility
    to electromagnetic stresses. Arteriosclerose nosode (Staufen-Pharma) (2):
    Physicians licensed to use nosodes may prescribe an individual potency or
    use a potency chord. Apart from being used in jewelry making quartz beads are used in making watches, radios,
    and in numerous mechanical devices as oscillators.

  7. Phil Lindsay (@pl) 26/07/2016 at 7:06 PM

    This was a great help to me – thanks!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: