osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-06-2008, 11:58 AM
New Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dunester is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 07-06-2008, 11:34 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,982
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Attribute Dropdown

You need to add a mod:
osCommerce Community Add-Ons

or
osCommerce Community Add-Ons
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-07-2008, 05:30 PM
New Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dunester is on a distinguished road
Default Re: Attribute Dropdown

Thanks Michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-07-2008, 05:36 PM
osCMax Testing Team
 
Join Date: Nov 2006
Location: Southern New Jersey
Posts: 35
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 0
Bassmaster
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-08-2008, 05:30 AM
New Member
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dunester is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 01:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax