Forums / Templates, Stylesheets, Page Layout / Question Regarding $0.00 Gift Certificate Balance Fix

Question Regarding $0.00 Gift Certificate Balance Fix

Locked

Views: 731

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 Feb 2010, 11:40 PM
#1
moonlight avatar

moonlight

New Zenner

Join Date:
Jan 2010
Location:
South Carolina, USA
Posts:
15
Plugin Contributions:
0

Question Regarding $0.00 Gift Certificate Balance Fix

Zen Cart 1.3.8a on Local (not live yet, still learning).

I've done all the security patches, and I'm doing the fixes in the "Known Bugs (and fixes) with v1.3.8 / v1.3.8a" thread. I've reached post #27, about the $0.00 Gift Certificate balance, on page 3. It doesn't tell me where in general.php to add the function shown in the post. I don't want to add the code in the wrong place and mess up everything.

I've found the section // Update the Customers GV account on line 1695, but I don't know if the code goes under there, or maybe it should just be added on at the very end of the file. May I have some direction on this? Thank you for your time.

Gail

Known Bugs thread: http://www.zen-cart.com/forum/showthread.php?t=82619&page=3

14 Feb 2010, 12:41 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Question Regarding $0.00 Gift Certificate Balance Fix

You can add the function anywhere in that file ...

The function file is a group of functions that can be used anywhere in the Admin ... by adding the function to the file:
/includes/functions/general.php

It is now available to use ...

The only rule is to add it before the closing php bracket ?> and the end of the file and be sure that there are no space(s) or blank line(s) after the closing bracket ...

The line that reads:
// Update the Customers GV account

is just a comment about the function below it and not related to this fix ...

Just add the new function to the bottom of the file, before the closing php bracket ?> and is should work for you ...

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!

14 Feb 2010, 1:01 AM
#3
moonlight avatar

moonlight

New Zenner

Join Date:
Jan 2010
Location:
South Carolina, USA
Posts:
15
Plugin Contributions:
0

Re: Question Regarding $0.00 Gift Certificate Balance Fix

Thank you, Ajeh. I really appreciate your quick response. I will add it, and continue on down the thread. I'm learning so much, but have a lonnnggg way to go. :)

Thanks, again.

Gail

14 Feb 2010, 1:38 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Question Regarding $0.00 Gift Certificate Balance Fix

You are most welcome ... just take your time and you will get the hang of it ... :smile:

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!