Zen Cart Logo

Disable Gift Certificates

Locked

Views: 27,491

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
17 May 2006, 4:20 PM
#1
cienwen avatar

cienwen

New Zenner

Join Date:
May 2006
Posts:
37
Plugin Contributions:
0

Disable Gift Certificates

Hello.

I am new to Zen Cart and so far I love it.

Nonetheless, no mater were I looked I have not been able to find how to disable Gift Certificates.

I do not want people to be able to purchase them or read the Gift Certificate FAQ. I attempted to use the Define Page Status option in Configuration to remove the link but it is not listed there.

Does anyone know how to get rid of the link, etc.

Thanks a bunch,
Cienwen

17 May 2006, 5:07 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: Disable Gift Certificates

Admin> Modules> Order Totals> Gift Certificates> uninstall

17 May 2006, 6:51 PM
#3
cienwen avatar

cienwen

New Zenner

Join Date:
May 2006
Posts:
37
Plugin Contributions:
0

Re: Disable Gift Certificates

That was sooooo easy!!! Thank you very much. :thumbsup:

22 May 2006, 10:07 AM
#4
tanky avatar

tanky

New Zenner

Join Date:
Mar 2006
Posts:
28
Plugin Contributions:
0

Re: Disable Gift Certificates

That is a very easy way to do it. Thanks

18 Aug 2006, 3:34 AM
#5
getreload avatar

getreload

New Zenner

Join Date:
Jul 2006
Location:
Singapore
Posts:
44
Plugin Contributions:
0

Re: Disable Gift Certificates

Kim:

Admin> Modules> Order Totals> Gift Certificates> uninstall

Thanks.. I was looking for it high and low....ha ha

28 Aug 2006, 6:51 PM
#6
fymbscu avatar

fymbscu

New Zenner

Join Date:
Jan 2006
Posts:
38
Plugin Contributions:
0

Re: Disable Gift Certificates

Hi folks,

I also want to disable Gift Certificates, but when I follow along to Admin> Modules> Order Totals> Gift Certificates> I find the following mess:

<quote> Order Total Modules

Warning: main(/Library/WebServer/Documents/rnc/zencart1302/includes/languages/english/modules/order_total/ot_coupon.php.bak.php): failed to open stream: No such file or directory in /Library/WebServer/Documents/rnc/zencart1302/admin/modules.php on line 188

Warning: main(): Failed opening '/Library/WebServer/Documents/rnc/zencart1302/includes/languages/english/modules/order_total/ot_coupon.php.bak.php' for inclusion (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/rnc/zencart1302/admin/modules.php on line 188

Fatal error: Cannot redeclare class ot_coupon in /Library/WebServer/Documents/rnc/zencart1302/includes/modules/order_total/ot_coupon.php.bak.php on line 10
Modules Sort Order Action
COD Fee ot_cod_fee Info
Discount Coupon ot_coupon 280</quote>

I am very new to php and am not sure what is happening to cause the error. Further, I don't see "Gift Certificates" listed or a way to uninstall them.

I am working on a Macintosh local server with the intention to upload the live store to a linux machine. Not sure if this could be a Mac issue or something else. Any help or insight greatly appreciated.

Regards,

Mark

28 Aug 2006, 7:20 PM
#7
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Disable Gift Certificates

Have you changed the files? :smile:

Please note that the file extension is not normal.

ot_coupon.php.bak.php

.

28 Aug 2006, 7:31 PM
#8
fymbscu avatar

fymbscu

New Zenner

Join Date:
Jan 2006
Posts:
38
Plugin Contributions:
0

Re: Disable Gift Certificates

Hi folks,

Please disregard my previous message. Although I don't understand why this should create the issue it did, when I applied the latest security patch on 8/18, I created backup files of the ones that needed patched with the extension .bak. Upon closer scrutiny of the errors, I recognized that one of these files was being identified (ot_coupon.php.bak.php), although it is not named with the final .php extension on my system. I dropped this and the other backup files created for the patch into "backup" folders and the admin module began working and I got a long list of options including the previously missing "Gift Certificates" item. I have now removed the item.

Sorry to have taken your time, but I guess I panicked. What is a best practices procedure for making backups for files that need to be patched for security reasons?

Regards,

Mark Harrison

28 Aug 2006, 7:37 PM
#9
fymbscu avatar

fymbscu

New Zenner

Join Date:
Jan 2006
Posts:
38
Plugin Contributions:
0

Re: Disable Gift Certificates

Hi seethrou,

Quote:```
Have you changed the files?


I did duplicate the file to create a backup and then changed the original file. My question back to you is, if the original file and filename were present in the same directory, why would zen cart try to call the .bak version of the file as well/instead? I am not the most savvy computer user, but I thought the .bak extension would prevent this from happening. Is this a matter of having to shut down php or the webserver and then restart it? 

Although I did find some resolution, the experience is bewildering to me still.

Regards,

Mark
28 Aug 2006, 8:03 PM
#10
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: Disable Gift Certificates

Just suggestions, make copies in your local pc or another computer.

If you prefer to keep a copy of the file in the same directory for cross reference, you may name it with some different.
In my development, I sometimes take the approach below.
e.g. 1.
for the original file, change it to
ot_coupon_org.php - at least make it different
ot_coupon.ph_org - to disable it from execute
and something like that

e.g. 2.
for file under modifications with revision
ot_coupon.ph_v01 - also disable it from execute
ot_coupon.ph_v02
and going on

For why it is not the original file to be taken to execute, this is not the issue of Zen Cart, but the server. This also happen to me for the execute file under win system.

.

28 Aug 2006, 8:12 PM
#11
fymbscu avatar

fymbscu

New Zenner

Join Date:
Jan 2006
Posts:
38
Plugin Contributions:
0

Re: Disable Gift Certificates

Thanks seethrou,

I appreciate your time. Have a great day.

Regards,

Mark

28 Aug 2006, 8:13 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Disable Gift Certificates

fymbscu:

I did duplicate the file to create a backup and then changed the original file. My question back to you is, if the original file and filename were present in the same directory, why would zen cart try to call the .bak version of the file as well/instead?
It's looking for filename similarity matches, not exact filenames. Adding .bak doesn't prevent the problem. Changing .php to .bak would be better, as seethrou indicated.

22 May 2008, 9:43 AM
#13
laydiefa avatar

laydiefa

New Zenner

Join Date:
May 2008
Posts:
13
Plugin Contributions:
0

Re: Disable Gift Certificates

thank you!
i'm very new to zen cart, i rely a lot on this forum.
:yes:

27 Jun 2008, 11:32 PM
#14
trapthreads avatar

trapthreads

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Re: Disable Gift Certificates

i also want to disable my gift certificates... i was able to uninstall as instructed above, but that only removed it from the information menu on the right... i still have FAQ in the menu at top. how can i get rid of that??

thanks

28 Jun 2008, 12:45 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Disable Gift Certificates

trapthreads:

i also want to disable my gift certificates... i was able to uninstall as instructed above, but that only removed it from the information menu on the right... i still have FAQ in the menu at top. how can i get rid of that??

Are you referring to a link in your EZ-pages menu bar? If so, you can change the status of those via Admin->Tools->EZ-Pages

28 Jun 2008, 2:09 AM
#16
trapthreads avatar

trapthreads

New Zenner

Join Date:
Jun 2008
Posts:
2
Plugin Contributions:
0

Re: Disable Gift Certificates

um no i don't think so because when i go to admin-tools-ex pages there is nothing there... i haven't created any ez pages, this was a page already established in my zen cart template

28 Jun 2008, 6:19 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Disable Gift Certificates

Where did you get your Zen Cart template from?
If you bought it from someone who "hardcoded" it into your template instead of following the Zen Cart coding logic which would obey the admin switches, then you're going to have to ask them how to take it out ... or go digging throught the files looking for it yourself.