X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Gift certificates? (https://forum.x-cart.com/showthread.php?t=7544)

spoonernyc 05-12-2004 04:09 AM

Gift certificates?
 
Hi there

does anyone know of a good way to sell gift certificates in set amounts like $20, $50 , $100?

thanks

JS

machnhed1 05-18-2004 07:40 AM

JS,

Open the file skin1/modules/Gift_Certificates/giftcert.tpl

Around line 174 you'll see this:
Code:

<input type=text name=amount size=10 maxlength=9 value="{$giftcert.amount}">

Replace it with this:
Code:

<select name="amount">
  <option value="20"{if $giftcert.amount eq "20"} selected{/if}>$20.00</option>
  <option value="50"{if $giftcert.amount eq "50"} selected{/if}>$50.00</option>
  <option value="100"{if $giftcert.amount eq "100"} selected{/if}>$100.00</option>
</select>


Also, make sure that your minimum amount allowed for gift certificates is set at or below the lowest amount in the drop down box.

Hope that helps :!:

Bella Forma 03-10-2005 05:50 AM

Going to drag this up from the depths of the forum as I have just implemented it and it works very nicely indeed.

Thank You :D

kirsten 03-10-2005 03:36 PM

If you impliment this mod does a customer still have the option of typing in amount other than these amounts??
Or would that involve another modification?

Thanx

Kirsten

Bella Forma 03-10-2005 03:44 PM

Hi kirsten

No this just changes the free text box to a drop down list. You would need another mod to be able to do both.

My thinking on this is that if I get gift vouchers printed out for particular values I only want those amounts to be selectable and if I give them enough options then they shouldn't need free for all amounts.

You can change the amounts shown in the drop down list by just editing the code and adding more as you need them.

kirsten 03-10-2005 04:33 PM

Thanx Bella,

Yes it would be better if you are wanting to use printed gift certificates and send them via mail and it would also help to keep the customer buying certificates of certain values and perhaps spend more than they wanted if the incriments were greater apart, but that would also depend upon the stock you sell and the prices.

Currently I just have my Gift Certificate value set at minimum AUD $ 100
so I may set certs for 100, 150, 200, 250 and then possibly do a jump to 500 and 1000, but I will see how this looks .
I am just tossing up the rational whether to go for a cheaper cert of 50 as well, even though there would be nothing anyone could buy on my site for 50 but it may get anotrher customer to purchase something using this cert and then paying the difference.

Anyway I will ponder some more about this

Keep well

Kirsten

Latino 04-12-2008 04:14 PM

Re: Gift certificates?
 
It is not working for me, would you help me?
I changed giftcert.tpl
From:
<td align="left"><input type="text" name="amount" size="10" maxlength="9" value="{$giftcert.amount|formatprice}" />
To:
<td align="left">
<select name="amount">
<option value="25"{if $giftcert.amount eq "25"} selected{/if}>$25.00</option>
<option value="50"{if $giftcert.amount eq "50"} selected{/if}>$50.00</option>
<option value="100"{if $giftcert.amount eq "100"} selected{/if}>$100.00</option>
<option value="200"{if $giftcert.amount eq "200"} selected{/if}>$200.00</option>
</select>

Latino 04-12-2008 04:52 PM

Re: Gift certificates?
 
It is working now!!! But it works when a customer wants to purchase a Gift Certificate. GREAT!!! :-)

I would like to know how I can have the same result when a customer wants to convert BONUS POINTS into a certificate????? :roll:


All times are GMT -8. The time now is 01:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.