Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Gift certificates with custom prefix

Gift certificates with custom prefix

Locked

Views: 1,597

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Jan 2009, 7:32 PM
#1
jfrizzo avatar

jfrizzo

New Zenner

Join Date:
Nov 2008
Location:
Rockford, MI
Posts:
3
Plugin Contributions:
0

Gift certificates with custom prefix

I've read numerous places that gift certificate product numbers need to start with GIFT-

The problem is I have a customer who insists their current product numbers are required ... they have a printed catalog and the product numbers must match.

What do I need to do to allow them to start with GV?

1.3.8

Thanks for any help you can provide ...

20 Jan 2009, 8:50 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificates with custom prefix

First, no other product can have a products_model that starts with: GV

If you do a search in the Developers Tool Kit on:
GIFT

You will locate the most likely files that will need changing ...

Be aware that all Add-ons that might work with Gift Certificates in any manner will most likely be coded for: GIFT

umm ... how many catalogs have they mailed out? :lamo:

20 Jan 2009, 9:31 PM
#3
jfrizzo avatar

jfrizzo

New Zenner

Join Date:
Nov 2008
Location:
Rockford, MI
Posts:
3
Plugin Contributions:
0

Re: Gift certificates with custom prefix

50k, of course. I'm pretty sure I won't be convincing them to change their mind.

I did the ones looking for the first four letters of "GIFT" and that wasn't enough. I guess I need to keep looking.

Thanks.

20 Jan 2009, 9:53 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificates with custom prefix

Do you have a list of all of the files that you touched from that?

20 Jan 2009, 10:26 PM
#5
jfrizzo avatar

jfrizzo

New Zenner

Join Date:
Nov 2008
Location:
Rockford, MI
Posts:
3
Plugin Contributions:
0

Re: Gift certificates with custom prefix

I did wrap it up.
I had to look for more than the code looking for the first 4.
The files I had to edit were:

admin/includes/functions/functions_prices.php
admin/products_price_manager.php
admin/specials.php
includes/classes/shopping_cart.php
includes/functions/functions_general.php
includes/functions/functions_prices.php
includes/languages/english/modules/order_total/ot_gv.php
includes/modules/order_total/ot_gv.php

Thanks for your help. I think I just needed the the confidence I was thinking along the right lines.

21 Jan 2009, 3:21 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificates with custom prefix

Thanks for letting us know you were able to make the changes and the list of files that required updating to make this work ...

Just be sure that GV is not used for any other products_model or you may run into issues ... :smile: