Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2009
    Posts
    6
    Plugin Contributions
    0

    Default Update price via TEXT Attribute

    We're trying to sell gift cards that can be of any value, It's an actual card that is loaded with the amount the customer requested and then mailed.


    This is what I tried:
    Set up Gift Certificates per the FAQ
    Add Value as a TEXT attribute

    Now when someone enters an amount in the Value field, the total doesn't adjust, which means the way I was trying to set it up is wrong (my guess is a text attribute is treated as a string and as such isn't added to the total).

    Questions:
    Is there any way to set up the gift certificate where a customer can type in an amount and have that amount update the total?

    Or is there any way to set up a physical product where the customer can set its price? (sounds odd but that's exactly what a gift card is)

    Or can I make changes to the code to have the text attribute update the total? (least preferred option)

    Either way will work in this situation.


    Thanks in advance,
    Trini


    Additional Info:
    The gift card is the only product we plan to sell online.
    Zen-Cart version: 1.3.8a/v1.3.8 new install

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Update price via TEXT Attribute

    Make a Product ...

    Set the Price to $1.00 ...

    Set the Model to: GIFTcustom (anything you want providing it starts with: GIFT) ...

    Look at the products_id ... let's say it is products_id 27 ...

    Customize your template that when the products_id is 27 that the Add to Cart: uses different text and reads: How Much?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Update price via TEXT Attribute

    That is brilliant! Thanks!

 

 

Similar Threads

  1. v139g Attribute Price Batch Update
    By jdm719 in forum General Questions
    Replies: 1
    Last Post: 12 Mar 2012, 11:15 PM
  2. v150 Changing Price via Attribute (not incremental)
    By poetryjoe in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 26 Feb 2012, 11:14 PM
  3. Ability to update stock levels per attribute via live data feed?
    By Stevis2002 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 20 Oct 2010, 03:58 PM
  4. Text Attribute Access via Code
    By j7r7c in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Apr 2010, 10:11 PM

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