Zen Cart Logo
Forums / General Questions / Invalid Coupon code error does not show to customer

Invalid Coupon code error does not show to customer

Views: 630

Results 1 to 4 of 4
26 Feb 2015, 3:37 PM
#1
grillandpatio avatar

grillandpatio

New Zenner

Join Date:
Feb 2015
Location:
Florida
Posts:
3
Plugin Contributions:
0

Invalid Coupon code error does not show to customer

When a customer puts in an invalid coupon code they are redirected back to Step 2 of 3 during checkout. The alert message "Invalid Coupon Code" does not display for the customer. I have multiple sites using zen cart and it works on those sites. I have even done a file comparison on the includes folder between the sites and the order total and coupon files are the same. I checked the PHP settings and they were the same as well. I displayed all the defined variables and noticed certain items were not passed back to the array.

Array from the working site

Array
(
[messageStack] => messageStack Object
(
[messages] => Array
(
[0] => Array
(
[params] => class="messageStackCaution larger"
[class] => redemptions
[text] => Warning Invalid Coupon Code
)

            )

    )

[module_list] => Array
    (
        [0] => ot_subtotal.php
        [1] => ot_coupon.php
        [2] => ot_group_pricing.php
        [3] => ot_tax.php
        [4] => ot_shipping.php
        [5] => ot_loworderfee.php
        [6] => ot_gv.php
        [7] => ot_total.php
    )

[value] => ot_coupon.php
[lang_file] => includes/languages/english/modules/order_total/ot_coupon.php
[module_file] => includes/modules/order_total/ot_coupon.php
[class] => ot_subtotal

)

Array from the site that is not working

Array
(
[messageStack] => messageStack Object
(
[messages] => Array
(
)

    )

[module_list] => Array
    (
        [0] => ot_subtotal.php
        [1] => ot_coupon.php
        [2] => ot_group_pricing.php
        [3] => ot_tax.php
        [4] => ot_shipping.php
        [5] => ot_loworderfee.php
        [6] => ot_gv.php
        [7] => ot_total.php
    )

[value] => ot_coupon.php
[lang_file] => includes/languages/english/modules/order_total/ot_coupon.php
[module_file] => includes/modules/order_total/ot_coupon.php
[class] => ot_subtotal

)

I am new to zen cart and php so any help would be greatly appreciated. I am even wondering if this is a godaddy server issue.

26 Feb 2015, 3:52 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Invalid Coupon code error does not show to customer

Do you have any checkout-related plugins installed on the store where the message is not displayed?

26 Feb 2015, 5:49 PM
#3
grillandpatio avatar

grillandpatio

New Zenner

Join Date:
Feb 2015
Location:
Florida
Posts:
3
Plugin Contributions:
0

Re: Invalid Coupon code error does not show to customer

I do not believe so. I came on after this has been in production. The main things that I have done is move servers on Go Daddy, they were on a server without cpanel, and upgrade from 1.5.1 to 1.5.3

26 Feb 2015, 9:30 PM
#4
grillandpatio avatar

grillandpatio

New Zenner

Join Date:
Feb 2015
Location:
Florida
Posts:
3
Plugin Contributions:
0

Re: Invalid Coupon code error does not show to customer

Problem solved! Need to upgrade php version to 5.4. Currently 5.3.