Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Sep 2005
    Location
    Malmö, Sweden
    Posts
    120
    Plugin Contributions
    4

    Default 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?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Malmö, Sweden
    Posts
    120
    Plugin Contributions
    4

    Default 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!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2005
    Location
    Malmö, Sweden
    Posts
    120
    Plugin Contributions
    4

    Default 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. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

    Quote Originally Posted by 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...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    May 2006
    Location
    Göteborg
    Posts
    17
    Plugin Contributions
    0

    Default 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.

  8. #8

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

    Quote Originally Posted by 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/showth...850#post264850

  9. #9
    Join Date
    Sep 2005
    Location
    Malmö, Sweden
    Posts
    120
    Plugin Contributions
    4

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

    In a matter of fact, Yes! 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!

  10. #10

    Default 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?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Only show gift certificate option on payment page if customer has a gift certificate
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 25
    Last Post: 21 Jul 2014, 08:03 PM
  2. How can I create a Gift Certificate of varying values?
    By gpsupps10 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 8
    Last Post: 5 Mar 2013, 03:09 AM
  3. How to disable the send gift certificate option
    By w3dir in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 16 Feb 2010, 11:54 PM
  4. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM
  5. Need help on how to create gift certificate
    By virtue in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 13 May 2006, 07:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR