Zen Cart Logo
Forums / General Questions / Gift certificate ammount?

Gift certificate ammount?

Locked

Views: 3,260

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
17 Aug 2006, 12:42 PM
#1
dianna11 avatar

dianna11

New Zenner

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

Gift certificate ammount?

Is there a way for the customer to manually add the ammount of the gift certificate they would like to purchase?

My store items range in price from $288, $355, $1300, etc. and often people like to send gift certificates for half of the ammount of a product, or something of the like and totals may come to a wonky price like $167.34

In my other Zen shop, people select the ammount from a pul down menu and that works fine because the ammounts are in denominations of $10, $25, $50, $100 and it works for that store, but the pull down menu won't work for this other store I'm working on.

Any ideas?

Thanks!

17 Aug 2006, 1:26 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

You could make a Product that is a Gift Certificate where the Add to Cart would be the amount ...

With some customization, you could also make this display as something different than Add to Cart to make it more meaningful ...

One methods is to use a different product type such as Document Product and customize that ...

The other is to customize the Product General to display differently when the products_id = XXX and XXX is the Gift Certificate Product you want then to be able to enter their own amount ...

Note: you would need to change the Minimum Units to allow for the change Configuration ... Stock ... settings for the:

Product Quantity Decimals
Allow how many decimals on Quantity

0= off

0
1
2
3

17 Aug 2006, 1:38 PM
#3
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

That would work if the person wanted to buy the gift certificate for the total ammount of the product, but a lot of people only want to pay for part or most of an item because it is so expensive. Sometimes, they will want to pay $50, sometimes $564.32, sometimes $3255.54

See the dilemma? I'm so stumped.

17 Aug 2006, 1:40 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

There is no dilema ...

Make the Product 1.00

Set the Units to 0.01

Set the Model to GIFTcustom or GIFTwhatever

Set the decimals to 2 in Stock

Now order 169.94

17 Aug 2006, 2:02 PM
#5
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Hmm, I just put all of that information in and all the product page shows under the description is :

. Model: GIFTcustom

and the product shows up as $1 under the product name.

I must be missing something. Do I have to change something other than the product page in the admin? I am somewhat un-technical, so please bear with me.

17 Aug 2006, 2:29 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

Do you have an URL to this Product that we can look at?

17 Aug 2006, 6:15 PM
#7
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Huh, I guess my reply didn't come through earlier.

Anyhoo, I futzed with it a bit and I now have a box that the person enters their ammount in - COOL!

The problem now is that 1) The price of the Gift Certtificate is showing up as $1 under the Gift Certificate title and I don't know how to get rid of that on just that one product and 2) A yellow warning box comes up in the shopping cart saying:


! Warning Please update your order ...
Product Name: Gift Certificate ... Quantity Units errors -
You ordered a total of: 543.54


I'm pretty sure that is because the shopping cart doesn't do 0.00 so I need to figure out how to set the decimal there.

This is exactly what I was looking for - thanks so much!!!!

I would show you the site, but it's under password protection and my admin guy coughhusbandcough has been a little crusty lately and I don't want to push my luck by asking for more technical assistance ;)

17 Aug 2006, 6:46 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

You need to adjust the Product units to 0.01

Adjust the Configuration ... Stock ... Product Quantity Decimals to 2

Then on the products _info page you need to adjust the display of price so it doesn't show the $1.00 when the products_id = your GV Product ...

I don't know if you have a minimum or not, but this will allow for pennies ...

17 Aug 2006, 7:44 PM
#9
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Awesome!! It's showing up in the right ammount in the cart, but that dratted yellow warning is still there.

Is there a way of removing the product price in just the one product, for instance, removing the $1 that appears for the Gift Certificate, but leaving the price showing for the other products? I have a feeling it's an all or nothing sort of deal, is that right?

This is looking fantastic - thank you so much for your assistance!!

17 Aug 2006, 8:46 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

If you do not edit the Product Units to read:

0.01

You cannot add pennies on the Product ... and will get errors ...

If you do not edit the Stock Setting for Decimal Places on the Qty to 2 ... you cannot add pennies ...

17 Aug 2006, 9:05 PM
#11
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Awesome - that did the trick!!

...although now it says

Units: 0.01
Mixed ON

under the quantity box :P

Can I remove that through the admin?

18 Aug 2006, 4:18 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

Find the function on the tpl_product_info_display.php for this and you could skip it for that products_id ...

zen_get_products_quantity_min_units_display

NOTE: be sure to use your templates and overrides directory ...

18 Aug 2006, 11:50 AM
#13
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Thanks so much for your patience and help with this. As I said, I'm not very technical, ao any assistance is very much appreciated.

I searched the developers toolkit and there doesn't seem to be a tpl_product_info_default.php but there is a tpl_product_info_display.php and a tpl_document_general_info_display.php that both have the zen_get_products_quantity_min_units_display . What exactly am I looking to change here, to me it all looks so complicated and I'm worried about changing the wrong thing (of course I do know to make a back-up first ;) )

I have been loking for three hours now and I haven't been able to find a templates and overrides directory in either the file system or the admin :(

18 Aug 2006, 12:19 PM
#15
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

Ah, so it's not a directory that's already there, I have to create one in my_template ?

I'm not quite clear on that. The info isn't very intuitive to technically-challenged people :P

I don't se anything there about the zen_get_products_quantity_min_units_display either, so I'm not sure what part of my question that link was meant for.

18 Aug 2006, 12:29 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: Gift certificate ammount?

Sorry ... I meant to explain the link.

The link is a starting point of several links explaining the overrides system. Yes, you will have to create the new folder for the name of your template ... which could be "silkysoft", "brenda", "honeylemon", "supercalifragilisticexpialidocious" ... whatever you like, as long as you use it consistently.

18 Aug 2006, 12:33 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Gift certificate ammount?

so, to add on to Ajeh's point ....

you have:
includes/templates/template_default/templates/tpl_product_info_display.php

copy that file to a new folder located at:
includes/templates/brenda/templates/tpl_product_info_display.php

edit the file

around line 101 you'll see:```
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);

Change it by adding /* and */ like this:

    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . **/***zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . ***/ **'<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
18 Aug 2006, 1:00 PM
#18
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

HA! Thanks for explaining that :)

I didn't realize the my_template ('brenda', whatever) was the templates and overrides directory! I had that set up already, so just dropping the file in there wasn't a problem.

I made the changes in the right place and added the file to the directory, but the

Units: 0.01
*Mixed OFF

still shows up under the quantity box. Is there a reason I can't make the /* */ changes in includes/templates/template_default/templates/tpl_product_info_display.php ? I can't imagine any circumstances where I would want that Units thing showing up. Would that make the Unit: 0.01 etc go away?

18 Aug 2006, 1:12 PM
#19
dianna11 avatar

dianna11

New Zenner

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

Re: Gift certificate ammount?

...so I made the changes in the original includes/templates/template_default/templates/tpl_product_info_display.php and the Unit: ... thing goes away! WOO!

I guess it's not reading my override properly. Hrm.

The Unit: thing is still showing up in my cart though, would I add the same line in a tpl something about the cart.php?

18 Aug 2006, 1:14 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Gift certificate ammount?

yes, that was a typo on tpl_product_info_display.php ... glad DrByte was able to get you straightened out ... :smile: