Results 1 to 10 of 28

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default How to Disable Add to Cart if no Attribute is Selected?

    Hi, I have quite a no. of products with attributes. How can I advise a customer that s/he has not selected an attribute when they click on the "Add to Cart" button? I suppose a pop-up is not advisable since there are pop-up blockers. Any advise is much appreciated.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How to Disable Add to Cart if no Attribute is Selected?

    Make at least one of the attributes required.

  3. #3
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: How to Disable Add to Cart if no Attribute is Selected?

    Thank for your reply Kim, I suppose you are refering to the Attribute Flag: "Attribute Required for Text". What I did was:

    1. None of the attributes are selected as default
    2. Set the "Attribute Required for Text:" to "Yes" for 1 of the attribute
    3. Test by clicking on the "Add to Cart".

    Unfortunately, I am still able to add the item to the cart without selected any of the attributes. Is there anything that I might have left out? TIA.

    P.S. I read this posting but wasn't able to fully comprehend it.
    Last edited by Stenrique; 11 Jul 2006 at 04:19 PM.

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

    Default Re: How to Disable Add to Cart if no Attribute is Selected?

    Let's say you have Colors ...

    Option Name: Colors

    Option Values:
    Red - sort order 10
    Yellow - sort order 20
    Green sort order 30
    Select a color ... - sort order 0, Default, Display Only

    What this will do is make the Option Value for the Colors:
    Select a color ...

    Be the Default (selected) option value, but not allow it to be added to the cart because it is marked Display Only
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Apr 2005
    Posts
    392
    Plugin Contributions
    0

    Default Re: How to Disable Add to Cart if no Attribute is Selected?

    Hi Linda, thanks for your clarification. I kinda understand the concept after reading it and another reply of your in this posting.

    Correct me if I am mistaken. Your suggestion is more for the use of a dropdown rather than Radio buttons right? Coz I did as you recommended using radio buttons and the result looks a little funny. I had a default radio button called "Select Color" along with a number of radio buttons with different colors name. The "Select Color" radio button looked out of place

    Wld you mind elaborating on Kim's suggestion to make at least 1 attribute required? I tried that w/o much success.

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

    Default Re: How to Disable Add to Cart if no Attribute is Selected?

    Do you have an URL to this Product?
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. How do I add a text statement if a attribute is selected?
    By mhollibush in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Feb 2014, 07:36 PM
  2. In product price by attribute selected and quantity button disapper from add to cart
    By ronaldlb in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Feb 2011, 05:08 PM
  3. Disable Add-to-cart when Display-only Attribute is Selected
    By david_johns in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 May 2010, 10:00 PM
  4. How do I disable banners on selected pages?
    By mauryg in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 25 Nov 2009, 04:20 PM
  5. Replies: 2
    Last Post: 16 Sep 2009, 10:23 AM

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