Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Make product options required?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 03-20-2014, 01:31 PM
 
taponitrof taponitrof is offline
 

Senior Member
  
Join Date: Dec 2007
Posts: 105
 

Default Make product options required?

I have two attribute groups: size and color and neither change the price or inventory.

Is there a way to make these options required? eg, so the user HAS to select a size and color before adding to cart? Otherwise, it's easy for the user to forget and order wrong size/ color.

Also, is there a way to have simple options with no variants; eg, I don't need inventory control or price difference on the options, but I have to create variants for every option possibility before the product is available for sale.
__________________
X-Cart Version 4.1.10, 4.1.11, 4.2, 4.3, 4.4.5
Linux
Reply With Quote
  #2  
Old 06-21-2014, 01:38 PM
 
sportsmomict sportsmomict is offline
 

Member
  
Join Date: Jun 2007
Posts: 20
 

Default Re: Make product options required?

Did you ever find out if product options can be required? I also need to make them required.
__________________
xcart 4.7.2
Reply With Quote
  #3  
Old 06-21-2014, 02:10 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Make product options required?

In version 4.x, option validation is a stock and very important part of product setup.

http://help.x-cart.com/index.php?title=X-Cart:Product_Options#Product_options_validation

and

http://help.x-cart.com/index.php?title=X-Cart:Product_Options#How_to_prohibit_customers_fro m_adding_a_product_without_making_an_option_select ion.3F

Is this functionality missing from version 5.x?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 06-21-2014, 02:50 PM
 
sportsmomict sportsmomict is offline
 

Member
  
Join Date: Jun 2007
Posts: 20
 

Default Re: Make product options required?

I was hoping to avoid having to write any JavaScript to validate but can if that is the only way. I was just hoping for a "required" checkbox in the product option. I just updated my signature - I am still on 4.x also.
__________________
xcart 4.7.2
Reply With Quote
  #5  
Old 06-21-2014, 06:29 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Make product options required?

This is very easily achieved with html5/css3 without any js scripts, just pure html code. Of course XC is not even close to be html5/css3 coded.... maybe in 5-6 years...

So your only option right now with stock XC is to use js validation code as Jeremy suggested
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:29 PM.

   

 
X-Cart forums © 2001-2020