Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Apr 2007
    Posts
    69
    Plugin Contributions
    0

    Default how can i require a customer to select an attribute?

    Hi all- Ive come across a few postings relating to this, and it seems they all say the only options are to either set a default attribute to be selected, or to create an extra null 'attribute' option like "select from below"... and hope that people will be astute enough to select something.

    So, ive gone ahead and created a null attribute option. I'm a bit worried, however, that someone may accidentally forget to choose an option because a) in some cases there are 5+ things to select, and b) my null attribute options all have unique names because I removed the option names from the page and put them as the first option value in each dropdown. Since my first/null attribute options are all unique in name, I'm worried customers may accidentally think they've selected one b/c they're not seeing a generic 'select from below'.

    So i had a thought. Since all my null attrib options are set to sort order = 0, could one theoretically write a php/javascript error that will recognize when a customer has 'selected' something with attrib sort order =0 upon pushing the 'add to cart' button? I dont actually know how to do this, but if this is doable, and if anyone might know how, I'd be eternally grateful..

  2. #2
    Join Date
    Jan 2007
    Location
    1.5 miles from Home
    Posts
    674
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    It is already done in Zen-Cart.
    All you have to do is set the Attribute Flags:--> Used For Display Purposes Only:--> to "YES".
    So for me, I have a attribute option called "Colors" I have a Option Value --> "Please Select" -->Sort -->0 and I have the Attribute Flag --> Used For Display Purposes Only:--> set to "YES".
    If the customer doesn't make color a selection, but tries to add the product to the shopping cart. The product page will show this error:
    Please correct the following:
    On the Option for: Select Color You picked an Invalid Selection: Please Select


    M

  3. #3
    Join Date
    Apr 2007
    Posts
    69
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    Lovely! Thanks for explaining that to me, its going to be a huge help.

  4. #4
    Join Date
    Feb 2006
    Posts
    326
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    Quote Originally Posted by tophand View Post
    It is already done in Zen-Cart.
    All you have to do is set the Attribute Flags:--> Used For Display Purposes Only:--> to "YES".
    So for me, I have a attribute option called "Colors" I have a Option Value --> "Please Select" -->Sort -->0 and I have the Attribute Flag --> Used For Display Purposes Only:--> set to "YES".
    If the customer doesn't make color a selection, but tries to add the product to the shopping cart. The product page will show this error:
    Please correct the following:
    On the Option for: Select Color You picked an Invalid Selection: Please Select


    M
    This is exactly what I do, with one more step. I also set the PLEASE SELECT option value to "Default Attribute to be Marked Selected". This way, if they don't make a selection, they will be prompted to do so as in the above example, but it also insures that no other option will be marked by default (which might be the WRONG option)
    Give us your best shot!
    http://www.photoimprints.com

  5. #5
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    I find this solution works fine in Firefox, but I'm having problems in IE7.

    The 'Please select colour:' attribute isn't shown as selected by default in IE7.

    If the customer just clicks 'Add to cart' without selecting a colour, ZenCart allows him to checkout without displaying an error.

    Even if the customer DOES select an attribute, it is not passed through to the checkout, and is not displayed on the order.

    Also, stock levels are not adjusted.

    This only happens in IE7 as far as I can see - everything works as expected in Firefox.

    [PS. I am using Stock by Attribute 4.7MULTIADD, so maybe I should post this in that forum too?]

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how can i require a customer to select an attribute?

    Since I find it hard to believe that this standard Zen Cart function would not work in IE7 (or there would be a lot of threads complaining about it already), it seems likely that there is something about that version of the mod, or something else unique to your site, that is the cause of the reported problem. A link to your site might give some clues.

    You are including the step in post #4, right? This was overlooked in the description in post #2.
    Last edited by gjh42; 29 Nov 2008 at 08:15 AM.

  7. #7
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    Hi Glenn,

    Thanks for your prompt response (sorry, I forgot to turn on email notifications, so I didn't see it earlier).

    Yes, I have the 'Please select colour:' attributes set as Display Only and Default.

    I also have the Sort Order set to -1, to get them to the top of the list, because I don't assign a sort order for the real attributes (they are all sort order = 0).

    I have tried changing the Sort Order for the 'Please select a colour:' attribute to 0, instead of -1, in case this was the problem, but it didn't seem to make any difference.

    My site is www.wooladdiction.com.au/shop

    Thanks,
    Sheila

  8. #8
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    As a total coincidence, the solution for my problem has just been posted on the Wishpot Wishlist Management support thread

    Quote Originally Posted by amazeme View Post
    yes - can confirm this problem. works ok in Firefox but IE prevents ability to add to cart.....BUT only if you have the wishpot code included anywhere BEFORE the attributes module code in tpl_product_info_display.php
    I have just relocated the Wishpot code, and all appears to be working fine now.

    Thanks for your help,
    Sheila

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: how can i require a customer to select an attribute?

    The default/display only seems to work in IE6. I can't get IE7 on my computer.

    Glad you got it fixed. It sounded like it had to be a less-common mod (or a quirk of mod installation in your case).
    Last edited by gjh42; 30 Nov 2008 at 02:03 AM.

  10. #10
    Join Date
    Aug 2006
    Posts
    36
    Plugin Contributions
    0

    Default Re: how can i require a customer to select an attribute?

    I went ahead and set my attribute flag Display to Yes and it still puts it in the cart without requiring the customer to choose it. Did I need to do something else? I am using v. 1.3.8

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. CAN select attribute - CANNOT select it's quantity
    By amrami in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Dec 2010, 02:29 PM
  2. when i require a customer to select an attribute
    By Ms_X in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 11 Nov 2010, 02:32 PM
  3. How can I require a customer to select from a list of attribute options?
    By beyre in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 13 Aug 2010, 04:25 AM
  4. HOW CAN I AUTO-SELECT SINGLE-ATTRIBUTE CHOICES DURING ADD-TO-CART process?
    By wweyland in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 1 Dec 2009, 02:06 AM
  5. How do you require the customer to select an attribute?
    By litepockets in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 8 May 2008, 12:03 AM

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