osCmax v2.5 User Manual
Results 1 to 5 of 5

Attribute Dropdown

This is a discussion on Attribute Dropdown within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Does anyone know how I can force a customer to choose an attribute? At the moment they can click buy ...

      
  1. #1
    New Member
    Join Date
    Dec 2007
    Posts
    12
    Rep Power
    0


    Default Attribute Dropdown

    Does anyone know how I can force a customer to choose an attribute? At the moment they can click buy now, and the first attribute is automatically used - which in my case is 'please select' Is there no way to validate if the dropdown has been selected?

    Thanks in advance

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Attribute Dropdown

    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Dec 2007
    Posts
    12
    Rep Power
    0


    Default Re: Attribute Dropdown

    Thanks Michael

  4. #4
    osCMax Testing Team
    Join Date
    Nov 2006
    Location
    Southern New Jersey
    Posts
    35
    Rep Power
    0


    Default Re: Attribute Dropdown

    Is there a way to have customers pick multiple Attribute at once? I have 66 colors for 1 soft plastic bait. Right now the customers have to pick the colors one at a time. I would like them to pick several at once. Maybe using check boxes.

  5. #5
    New Member
    Join Date
    Dec 2007
    Posts
    12
    Rep Power
    0


    Default Re: Attribute Dropdown

    Quote Originally Posted by michael_s View Post
    I couldn't find some of the code in the first one, in oscmax, but the second one works fine. The only problem I have is that if I add two sets for verification it only recognizes the first set:

    <script language="javascript"><!--
    // az - Start Enforce Attribute Select
    function validate() {

    if (cart_quantity.elements['id[9]'].value == 242) {
    alert('Please select a size option before adding your product to the shopping cart.');
    cart_quantity.elements['id[9]'].focus();
    return false;
    }

    if (cart_quantity.elements['id[12]'].value == 240) {
    alert('Please select a size option before adding your product to the shopping cart.');
    cart_quantity.elements['id[12]'].focus();
    return false;
    }

    }
    // az - End Enforce Attribute Select
    //--></script>

    This only verifies the id 9, value 242, and lets the id 12, value 240 checkout without verification.

Similar Threads

  1. Customer Title Dropdown
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 12-31-2007, 01:10 PM
  2. Sort Products By Dropdown
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-09-2007, 09:00 AM
  3. Needing: Attribute Weight, Hide Price if 0, Actual Attribute
    By crystina in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2006, 04:08 PM
  4. Catagorie dropdown has disappeared?
    By delphi1 in forum osCommerce 2.2 Discussion
    Replies: 2
    Last Post: 01-18-2006, 03:28 AM
  5. How toCreate Dropdown menu
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-24-2002, 08:28 PM

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
  •