X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Make product options required? (https://forum.x-cart.com/showthread.php?t=68900)

taponitrof 03-20-2014 01:31 PM

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.

sportsmomict 06-21-2014 01:38 PM

Re: Make product options required?
 
Did you ever find out if product options can be required? I also need to make them required.

carpeperdiem 06-21-2014 02:10 PM

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?

sportsmomict 06-21-2014 02:50 PM

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.

cflsystems 06-21-2014 06:29 PM

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


All times are GMT -8. The time now is 10:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.