Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to create new option type with value for gift certificate

How to create new option type with value for gift certificate

Locked

Views: 3,500

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
6 Sep 2006, 2:52 PM
#1
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

How to create new option type with value for gift certificate

I'm working on a modification to be able to set the price on a gift certificate from an input field. The costumer enters the value in and that vale is the price for the gift certificate.

I want to have a new Option type for this. I've succeeded to create Option type in the database with ID 6. But I cant' figure out how and were the constant i.e. "PRODUCTS_OPTIONS_TYPE_TEXT" is defined. I want to have PRODUCTS_OPTIONS_TYPE_VALUE to work in the same way as PRODUCTS_OPTIONS_TYPE_TEXT.

Could someone please help me?

6 Sep 2006, 2:55 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: How to create new option type with value for gift certificate

Why not set the gift certificate to value of $1 and simply instruct them to enter the desired amount in the Quantity field beside Add to Cart button?

6 Sep 2006, 3:12 PM
#3
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

I don't like that they then get 250 gift certificates at $1 a piece... I rather have i gift certificate with the value of 250$...

So, that's why I'm getting into this monstrous work :-) Could you give some pointers on where I can set the PRODUCTS_OPTIONS_TYPE_VALUE? I've succeeded to get the new option type in the admin along with a new product type. Now the problem is to create an input field... Then to get the value from the input field into the price, but that's the next step...

Thanx!

6 Sep 2006, 4:13 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: How to create new option type with value for gift certificate

In the demo products there are gift certificates with preset amounts and configured by attributes. You could use those as an example.

However, there is nothing that recalculates the product price based on the numerical value entered in an attribute text field.

6 Sep 2006, 4:40 PM
#5
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

Yes, I know but I want to let the costumer decide the exact value for them self, without having to go though infinite dropdowns... So I want to get an input field that sets the price for the product.

I'm wondering where the constant i.e PRODUCTS_OPTIONS_TYPE_TEXT is defined.

6 Sep 2006, 5:11 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: How to create new option type with value for gift certificate

Beez:

I'm wondering where the constant i.e PRODUCTS_OPTIONS_TYPE_TEXT is defined.
It is set in the database -- the configuration table. Be careful about changing it...

6 Sep 2006, 5:41 PM
#7
vike avatar

vike

New Zenner

Join Date:
May 2006
Location:
Göteborg
Posts:
17
Plugin Contributions:
0

Re: How to create new option type with value for gift certificate

thank you! didnt manage to figure that out on our own.. hm.. thanks again. :yes:

21 Sep 2006, 3:54 PM
#8
elfboy avatar

elfboy

New Zenner

Join Date:
Sep 2005
Posts:
79
Plugin Contributions:
0

Re: How to create new option type with value for gift certificate

Beez:

I'm working on a modification to be able to set the price on a gift certificate from an input field.

This sounds great. Any luck?

I'm tinkering on a related issue (Gift Certs)
http://www.zen-cart.com/forum/showthread.php?p=264850#post264850

21 Sep 2006, 4:15 PM
#9
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

In a matter of fact, Yes! :D Me and vike are almost ready with a Mod that makes you choose an input field as an attribute where the customer can enter the value of the Gift certificate. Inculded in the package is a new Product Type for gift certificates...

We're laying the last hand on right now, so it should be ready within the next couple of days. I'll make a post in this thread when it's uploaded...

Cheers!

21 Sep 2006, 4:59 PM
#10
elfboy avatar

elfboy

New Zenner

Join Date:
Sep 2005
Posts:
79
Plugin Contributions:
0

Re: How to create new option type with value for gift certificate

Excellent! How is the "Product Type for gift certificates" different from other product types?

29 Oct 2006, 12:17 PM
#11
firehorse avatar

firehorse

Zen Follower

Join Date:
Oct 2004
Posts:
98
Plugin Contributions:
0

Re: How to create new option type with value for gift certificate

Hi,> Beez:

In a matter of fact, Yes! :D Me and vike are almost ready with a Mod that makes you choose an input field as an attribute where the customer can enter the value of the Gift certificate. Inculded in the package is a new Product Type for gift certificates...Great idea :thumbsup:

Alan

31 Oct 2006, 3:38 AM
#12
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

Elfboy:

Excellent! How is the "Product Type for gift certificates" different from other product types?

It's no different at all from the free shipping product type, just made a new product type to easier work with this special function... The Value-mod and the new product type is two separate mod in one package.

8 Nov 2006, 12:43 PM
#13
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

The thread for a mod that allows the customer to enter a value for the gift certificate. You can download the mod from the download section under product types and the support thread is here

See you there!

5 Dec 2006, 7:15 AM
#14
empirenine avatar

empirenine

New Zenner

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

Re: How to create new option type with value for gift certificate

Beez:

The thread for a mod that allows the customer to enter a value for the gift certificate. You can download the mod from the download section under product types and the support thread is here

See you there!

I'm waiting to install this mod because it doesn't appear to mesh with the "attributes controller" mod at the moment.

My question to you is: can this new product type be changed into a product other than a gift certificate?

I currently sell on eBay as well as my own site and I need a means of allowing my eBay customers to checkout via the site.

I could easily setup a new shipping module for this product type, and if customers can manually enter the final value of their auction in the price field, I could easily have them checkout using this mod.

Am I missing anything? This new product type is only being described as a gift certificate, correct? Or is there a reason my idea wouldn't work?

Thank in advance!

7 Dec 2006, 1:44 PM
#15
beez avatar

beez

Zen Follower

Join Date:
Sep 2005
Location:
Malmö, Sweden
Posts:
117
Plugin Contributions:
4

Re: How to create new option type with value for gift certificate

You can read in the support thread here.

If I understand you correctly I can't see any reason why it shouldn't work. The Gift Certificate Product Type is not a direct part of the value field mod, but we've make some small changes to it. But it should work with any product type.

I'll be posting a new version in a couple of hours with some small changes. Watch the support thread.