Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Set global default value for attribute dropdowns

    Quote Originally Posted by mikestaps View Post
    For the dropdown to say "Please Select..." when the page is loaded.

    We have an amazing amount of people that don't even look at the dropdowns, and just add the item to cart. They then complain because they either don't get what they expect, or what they want. This is after it is clearly stated in the product description to please select said option in the drop down menus below, I have also moved the add to cart button below the product description, and attribute dropdowns to "force" the customer to see the dropdowns.

    I'm just trying to save time in the long run by eliminating exchanges.
    The solution that ajeh offered is the way to prevent these issues...

    I thought that there was a way to also copy the setting(s) (default/display only to an option value) to other places that option value is used (making the process quick) or of course a sql statement could be run to add that "feature" to all equivalent option values.

    What I described above would not solve your problem. It does sound like there is need to apply the default and display only option to your Please choose... option value (best to be sure that it is the lowest non-negative sort order so that no other option can be the default causing the problem above.)

    See this FAQ: https://www.zen-cart.com/content.php...to-my-products

    and take note of the section that says:

    It is also a good idea to make a Default Option Value that the Customer cannot add to the cart to force the Customer to make a proper choice
    And after that, take note of the author of the FAQ. :)
    Last edited by mc12345678; 31 Jul 2015 at 05:46 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Set global default value for attribute dropdowns

    Quote Originally Posted by mc12345678 View Post
    The solution that ajeh offered is the way to prevent these issues...

    I thought that there was a way to also copy the setting(s) (default/display only to an option value) to other places that option value is used (making the process quick) or of course a sql statement could be run to add that "feature" to all equivalent option values.

    What I described above would not solve your problem. It does sound like there is need to apply the default and display only option to your Please choose... option value (best to be sure that it is the lowest non-negative sort order so that no other option can be the default causing the problem above.)

    See this FAQ: https://www.zen-cart.com/content.php...to-my-products

    and take note of the section that says:
    I was afraid of that... not a major deal, but from a design standpoint I don't like the look of having "Please Select..." in the menu after it has ben "opened".

    My original idea was to run a check if the option was set to both default and display only to add the style="display:none;"
    Last edited by mikestaps; 31 Jul 2015 at 05:51 PM. Reason: add original idea

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Set global default value for attribute dropdowns

    If I recall correctly (probably don't) such styling would not be recognized/acted upon, hence the need for the additional javascript or other coding option.

    One thing of note, remember you are out to make money... Be sure you are devotng your resources to that which is not necessarily in the bells and whistles...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Set global default value for attribute dropdowns

    Quote Originally Posted by mc12345678 View Post
    If I recall correctly (probably don't) such styling would not be recognized/acted upon, hence the need for the additional javascript or other coding option.

    One thing of note, remember you are out to make money... Be sure you are devotng your resources to that which is not necessarily in the bells and whistles...
    Thanks for the ideas... and the reminder.

 

 

Similar Threads

  1. v151 Set an attribute as automatic default selection?
    By LindeeG in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 22 Oct 2014, 05:25 PM
  2. Set up a default attribute?
    By suecalvi in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Nov 2008, 05:46 AM
  3. How to set option value with a set image as default of an attribute?
    By PaulRiedel in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 16 Aug 2007, 04:21 AM
  4. set default value in cart to 1
    By usernamenone in forum Basic Configuration
    Replies: 5
    Last Post: 21 Sep 2006, 04:34 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