Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2012
    Posts
    14
    Plugin Contributions
    0

    Default Adding error message if no attribute is selected!

    Hi Newbie here!

    I would like to show an error message, and not let customers add to cart if they don't select an attribute, I have found the tutorial to add another choice and make it display only, but this looks unprofessional with radio boxes, how does this site do it so that the display only radio box is not showing up on the list, I can only do it so there is an default selected radio box which says please select for eg!

    http://www.sparksdirect.co.uk/stealt...ght-p-595.html

    I have tried to find the answer please help me I am stuck
    Thank-you..

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

    Default Re: Adding error message if no attribute is selected!

    You could make your Attributes Option Values:
    Please select a Color - display only yes default yes sort order 0
    Red
    Yellow
    Green

    Please Select a Size - display only yes default yes sort order 0
    Small
    Medium
    Large

    and turn off the Please Choose with something like:
    Code:
    #attribsOptionsText {
      display: none;
    }
    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
    Jan 2012
    Posts
    14
    Plugin Contributions
    0

    Default Re: Adding error message if no attribute is selected!

    Thank-you for your help - took me a while to work it out but in the end I hid the radio button for the first selection, with help from what you suggested, from finding the id that zen cart automatically creates for that radio button.

    Can you advise how i will be able to do this in one go for nearly 2000 products which I am putting into the shop I am building

    Thanks again

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

    Default Re: Adding error message if no attribute is selected!

    I am not following what you are asking ... just set the Attribute up when you put the Products in ...
    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!

  5. #5
    Join Date
    Jan 2012
    Posts
    14
    Plugin Contributions
    0

    Default Re: Adding error message if no attribute is selected!

    its just that my options are not universal like small medium and large, its for a lights shop and I need to make fresh attributes for each product with model numbers for variations of the lights etc and I managed to hide the radio box in the css file but would need to do this for each new attribute list. I think??

    I'm new to this so excuse me if I sound confusing. thanks for your help anyhow!

  6. #6
    Join Date
    Jan 2012
    Posts
    14
    Plugin Contributions
    0

    Default Re: Adding error message if no attribute is selected!

    I think I can see something I have done that makes it harder,

    hopefully now that I have hidden the #attribsOptionsText and #optionsname I can list the option values all under one option name and just add the one which I have hidden going to try thanks!

 

 

Similar Threads

  1. v155 Attribute controller - error message when adding attribute values
    By rustwood in forum General Questions
    Replies: 8
    Last Post: 11 Jul 2016, 10:26 PM
  2. No error when forced attribute not selected
    By nacnac in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Aug 2011, 05:31 AM
  3. Preventing Default Attribute from Being Selected when adding to cart
    By pazazmar in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 20 Oct 2008, 07:47 AM
  4. If attribute not selected - ERROR in the shopping cart
    By mikajlo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Apr 2007, 03:48 AM
  5. attribute error message
    By blainbci in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 7 Mar 2007, 09:52 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