Results 1 to 10 of 15

Hybrid View

  1. #1
    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

  2. #2
    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?]

  3. #3
    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.

  4. #4
    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

  5. #5
    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

  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?

    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.

  7. #7
    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

  8. #8
    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?

    You need to make the null attribute Default *and* Display Only. Are you sure you have done this? A link to your site would help if you need more assistance.

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

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

    OK - I created a Please Select and set it as Display only and Default, it comes up and warns when it someone doesn't choose this attribute. The only issue is that it is a checkbox and it shows it selected - any way to remove the check box from this null attribute?

    Rhonda

 

 

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