Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Location
    Colorado, USA
    Posts
    68
    Plugin Contributions
    0

    Default Allowing one free attribute

    I am facing a problem. I have an attribute setup for leash colors, you may choose up to 4 colors. (i already wrote the javascript to limit only 4 checkboxs) but here it the problem I am running into. They want the first color to be free. example:

    LEASH
    -color attribute:

    [] blue: $10.00
    [X] red: $10.00
    [] yellow: $10.00
    [X] orange: $10.00
    [X] purple: $10.00
    [] black: $10.00
    [] green: $10.00

    the total attribute charges should now be $20.00 (not $30.00)

    Any ideas? Much appreciated. Thanks

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

    Default Re: Allowing one free attribute

    There isn't anything to build in a Free One and force a total of 4 on checkboxes ...

    You could do dropdown sets where the first set is free and the other 3 cost $10 ... and force it so all 4 require 1 selection using the Default and Display only as one of the choices on each of the 4 sets ...
    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
    Sep 2007
    Location
    Colorado, USA
    Posts
    68
    Plugin Contributions
    0

    Default Re: Allowing one free attribute

    Hmm, that is an interesting approach to it. Thanks Linda.

    I ended up just modifying the /classes/shopping_cart.php file to look for this One-time-charge, and if there are more than one selected it will ignore one of them. Wish there was an easier way to do that then modifying a class file but that seemed to do the trick.

    If anyone wants a detailed description please let me know and I would be happy to post it here.

 

 

Similar Threads

  1. Checkout allowing free shipping randomly?
    By kbalona in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Feb 2009, 03:34 PM
  2. Only allowing users to access one item
    By pRS317 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jul 2008, 05:04 PM
  3. Allowing Customer to Login and download with one link
    By savage in forum Basic Configuration
    Replies: 4
    Last Post: 22 Jun 2007, 08:31 AM
  4. Attribute controller not allowing edits
    By Salina13 in forum Basic Configuration
    Replies: 2
    Last Post: 15 Aug 2006, 12:17 PM
  5. Coupon allowing more than one use!
    By Honeybee in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 25 Jun 2006, 08:15 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