Forums / Bug Reports / [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

[DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Locked

Started by pae2008 on 14 May 2010, 8:36 PM · Views: 3,814

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
14 May 2010, 8:36 PM
#1
pae2008 avatar

pae2008

New Zenner

Join Date:
Jul 2008
Posts:
28
Plugin Contributions:
0

[DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Hi everyone,
I was searching around on the forums but I could not seem to find a solution (or even a mention) of my problem.

Whenever one of my customers place an order for a free PDF download of our site's catalog, the payment method always results as a Gift Certificate/Coupon instead of using the Zen Cart Free Charge Card. The website is located here: http://www.beryls.com. This issues does not seem to be effecting any other part of the website that I can tell but I would really appreciate it if someone could help me troubleshoot the error.

The version of Zen Cart we are using is a clean install of 1.3.9b with updated tables of the mysql database from 1.3.8a to 1.3.9b. The configuration table was not copied over - we set the settings using the admin on 1.3.9b.

Thanks,
PAE2008

17 May 2010, 6:35 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Any answer on this?

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

17 May 2010, 9:26 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

First, I would go to the Modules for Payment, Shipping and Order Total and save the settings to NotePad and then do a REMOVE, INSTALL and reconfigure to ensure all are setup with the current version keys ...

What are your settings on the Free PDF Download Product for the:
Always Free Shipping
Product is Virtual
Product Model

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!

17 May 2010, 10:27 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Ajeh:

First, I would go to the Modules for Payment, Shipping and Order Total and save the settings to NotePad and then do a REMOVE, INSTALL and reconfigure to ensure all are setup with the current version keys ...

What are your settings on the Free PDF Download Product for the:
Always Free Shipping
Product is Virtual
Product Model

Fresh install of 1.3.9 on my test server;
no add-ons;
The Zen Cart FREE CHARGE CARD - installed; (no additional payment modules installed)
gift certificates - disabled;
discount coupons - disabled.

product(s) are free

Always Free Shipping - No, Normal Shipping Rules
Product is Virtual - No, Shipping Address Required
Product Model - depends on the product but would be similar to (CDGSNM01)

When processing an order
the payment method page shows The Zen Cart FREE CHARGE CARD as expected.
The order confirmation page shows no payment method.

Order completes normally and product can be downloaded.

When checking admin -> customers -> orders
payment method shows as Gift Certificate/Coupon

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

17 May 2010, 11:43 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

If you are not using the Gift Certificates and Discount Coupons you should uninstall them not just disable them ...

If you only have The Zen Cart FREE CHARGE CARD freecharger installed does this mean everything on the site is free?

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!

17 May 2010, 11:45 PM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Ajeh:

If you are not using the Gift Certificates and Discount Coupons you should uninstall them not just disable them ...

If you only have The Zen Cart FREE CHARGE CARD freecharger installed does this mean everything on the site is free?

I clicked the remove button on both Gift Certificates and Discount Coupons

This is a test site and yes, all the products are free.

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

18 May 2010, 12:12 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Just for grins and giggles ... switch to the Classic template ...

Same 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!

18 May 2010, 12:13 AM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Ajeh:

Just for grins and giggles ... switch to the Classic template ...

Same issue?

I'm using the classic template

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

18 May 2010, 3:53 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Yes it is a bug ... it may be a day or two before we work out a resolve to this ... :unsure:

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!

18 May 2010, 4:35 AM
#10
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Ajeh:

Yes it is a bug ... it may be a day or two before we work out a resolve to this ... :unsure:

Thanks, Linda

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

24 May 2010, 2:45 PM
#11
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Any progress on this problem?

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

26 May 2010, 9:31 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Slow but not forgotten ...

Try changing in the order_total.php class around line 196:

      $order->info = $orderInfoSaved;
//      echo "orderTotal = {$order->info['total']}";
//      echo "TotalDeductions = {$total_deductions}";
//      do not set when Free Charger is being used
      $difference = $order->info['total'] - $total_deductions;
      if ( $difference <= 0.009 && $_SESSION['payment'] != 'freecharger') {
        $credit_covers = true;
      }

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!

26 May 2010, 4:20 PM
#13
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

Ajeh:

Slow but not forgotten ...

Try changing in the order_total.php class around line 196:

  $order->info = $orderInfoSaved;

// echo "orderTotal = {$order->info['total']}";
// echo "TotalDeductions = {$total_deductions}";
// do not set when Free Charger is being used
$difference = $order->info['total'] - $total_deductions;
if ( $difference <= 0.009 && $_SESSION['payment'] != 'freecharger') {
$credit_covers = true;
}


Thanks Linda,

That fixed it.

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

31 May 2010, 3:39 AM
#14
roystik avatar

roystik

New Zenner

Join Date:
Mar 2008
Posts:
16
Plugin Contributions:
0

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

PAE2008:

Hi everyone,
I was searching around on the forums but I could not seem to find a solution (or even a mention) of my problem.

Whenever one of my customers place an order for a free PDF download of our site's catalog, the payment method always results as a Gift Certificate/Coupon instead of using the Zen Cart Free Charge Card. The website is located here: http://www.beryls.com. This issues does not seem to be effecting any other part of the website that I can tell but I would really appreciate it if someone could help me troubleshoot the error.

The version of Zen Cart we are using is a clean install of 1.3.9b with updated tables of the mysql database from 1.3.8a to 1.3.9b. The configuration table was not copied over - we set the settings using the admin on 1.3.9b.

Thanks,
PAE2008

Hi Everyone,

I have almost the same problem as the OP, the only difference is that the shopping cart was correctly showing payment method as "Free item" instead of "Gift Certificate/Coupon" until a couple of days ago.

I tried to look for the codes Linda posted in this thread for the order_total.php file but I couldn't find them. Any help would be appreciated.

Our version of the shopping cart is 1.3.8a.

31 May 2010, 8:26 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: [DONE v1.3.9d] Free Charge Card appears as Gift Certificate/Coupon

This fix is for v1.3.9 not v1.3.8 ...

Have you changed anything recently on your shop?

Are your Free Products Downloads or regular products?

Are these new products or old ones that have always worked in the past ... meaning does the order have new products in it or old ones that previously worked?

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!