Coupon Issue

Views: 2,759

Results 1 to 20 of 22
27 Mar 2014, 6:39 PM
#1
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Coupon Issue

Hello All,

I have zen cart website that offers 100% discounts to staff members using an authorized coupon code. Everything works fine except that if the total is zero and they click to confirm the order, the next page gives a 500 server error message.

The order actually goes through and into queue but the user has no way of knowing that because their next page is the 500 server error.

Any suggestions on what could be the problem??

27 Mar 2014, 11:06 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

Could you please hit Reply and answer all of the questions that are asked?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 12:42 AM
#3
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

This is the first post about this issue. I have read just about every post in this forum and have found nothing about this.
I'm using ver 1.5.1 with no upgrades and I have no plug ins. I'm using the Lavender template and I've only customized the images and background colors.
The server ver is PHP 5.3.13 and the MySQL ver is 5.5.32
I installed the cart using the zc_install. No problems with the host or FTP or anything.
The cart was installed and has been working perfectly since Sept of 2013.
I recently added the staff discount and thought that the discount coupon would work as well.
As I stated in the first post, everything works fine except, when the user clicks the Confirm Order button.
If the total is $0.00, instead of returning the confirmation page I get the Internal Server error.
I'm not a super programmer but I do well with PHP and MySQL and I am sure that this fix is I a line of code somewhere.
If you can help with please reply

Thanks

28 Mar 2014, 12:50 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

So far, I cannot reproduce this issue in v1.5.1 ...

Can you look in the directory:
/logs

and see what debug logs are generated when you try to go through the checkout?

If you find any, post their content ...

What Payment module(s) do you have installed?

What Shipping module(s) do you have installed?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 1:09 AM
#5
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

My payment module is Paypal Payments Standard and the shipping module is Frre Shipping.
I just tried again and the logs appear to be empty. I have error reporting turned on on the server and those logs are empty as well.
The message on the opage reads........

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

If you want I can email you a test log on so that you can actually see what I am trying to relay here.

If you would like, I can send you a log on to the site and let you see

28 Mar 2014, 1:18 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

You should really use the PayPal Express shipping module, as it works a lot better than PayPal Standard ...

I will try setting up a site with just those two Modules and see if I can break things ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 1:24 AM
#7
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Please correct me if I am wrong but the Paypal express module does not allow the customer to pay without having a paypal account and the Paypal Standard does. I think??

I have customers who do not have a paypal account and don't want to set one up.

Anyway thanks for your help and anything that you come up with would be greatly appreciated.

28 Mar 2014, 1:31 AM
#8
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

I actually tried the express mod yesterday it seems like the paypal module doesn't respond to the zero total.

Again, the transaction goes through because I can see it on the admin page but the staff member gets the server error page and doesn't know that the transaction was completed.

Is there a way to tell the cart that if the total is $0.00 then redirect to a thank you page or something???

28 Mar 2014, 1:32 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

You can use PayPal or Credit Card via PayPal Express

Also, I tried with just PayPal Standard and FREE SHIPPING! freeshipper and I still cannot reproduce the error ...

Are you able to use something like Beyond Compare from scootersoftware.com to see if you have any bad files on the Server?

If, as a test, you install the Check/Money Order a and try checkout if you select Check/Money Order and enter your 100% Discount Coupon, does it work?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 1:52 AM
#10
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Just installed the money order module and I get the same results if the total is $0.00. I get the right confirmation when the total is other than $0.00.

Also, I will use the paypal express module if you don't need a paypal account !! Changing it now.

28 Mar 2014, 2:08 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

It really sounds like you have a bad file or files on the server ...

The point being, you should not get the 500 server error message or any bad page ...

Try reloading the files for:
/includes/modules/checkout_whatever.php

there are a few in there ...

Are you using any kind of SEO/rewrites? If so, turn them off and see if that is the issue ...

If that still doesn't fix things, temporarily switch to the Classic Template and test your checkout ... this will rule out your templates and override files ...

Also, can you post all of your settings on the Discount Coupon for the 100%? You can mask out the discount code itself ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 2:33 AM
#12
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Well, back to square 1!!

With the paypal express module installed I cannot see where the customer can use a credit card without logging in to paypal.

Re-installed the standard.

Also, those darn zeros seem to be the culprit in the checkout because everything works just fine until the order total equals $0.00,

The money order module is the same.

28 Mar 2014, 2:43 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

You are not reading the screen when you get to PayPal if you do no see where to make a Payment without a PayPal account ...

On the screen you should find the link for:

Don't have an account? Check out as a guest

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 2:45 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

The darn 0.00 has nothing to do with this ...

I am trying to find what is causing this issue ... I will try to do another install of Zen Cart v1.5.1 and see if there is anything different between that install and mine that I am forget about ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Mar 2014, 2:51 AM
#15
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Reloaded the checkout files and switched the template to the classic one. same results!!

Here is the coupon configuration.............
Name - Temp Staff
Description - for volunteers and temp staff
Coupon Amount - 100.0000%
Coupon Minimum Order - 0.0000
Free Shipping - Unchecked
Coupon Code - 0001
Uses Per Coupon - Blank (unlimited)
Uses Per Customer - Blank (unlimited)
Start Date - 1 February 2014
End Date - 1 June 2014
Coupon Zone Restrictions - None

28 Mar 2014, 2:54 AM
#16
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Thank you

28 Mar 2014, 3:01 AM
#17
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Will take another look at the express checkout. I think that will be better for our customers!!

29 Mar 2014, 5:44 AM
#18
bmalex56 avatar

bmalex56

New Zenner

Join Date:
Mar 2014
Location:
East Bay, Ca
Posts:
15
Plugin Contributions:
0

Re: Coupon Issue

Hello again Ajeh,
Any news on this ??

29 Mar 2014, 1:08 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Coupon Issue

I still cannot recreate this issue ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Mar 2014, 1:44 PM
#20
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Coupon Issue

bmalex56:

Any suggestions on what could be the problem??

I've not been able to reproduce either, but only two things really come to mind.

File or folder permissions is the 1st thing I think of when I see 500 Server errors (either too restrictive or not restrictive enough).
However, I don't think that this would be the case here due to the fact that it is (apparently) only with order totals of zero. This may be a red herring though, so check the permissions anyway.

My other idea has already been covered by Ajeh......

"Are you using any kind of SEO/rewrites? If so, turn them off and see if that is the issue ..."

If neither of these ideas are applicable you will probably need to contact your host for help. Their log files will provide more specific information as to the exact cause. The '500 Server Error' is a generic error response designed to not leak information that could be used to compromise the server.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.