![]() |
make users choose
I have many products on my site with people to choose colours but people don't pic the colours and just have the selected one. how can i make users to have to chose a colour before adding to cart.
thanks |
Re: make users choose
try this
|
Re: make users choose
thanks but code not for 4.2
|
Re: make users choose
you will need to use JavaScript validation for this.
|
Re: make users choose
to be fair am not good with JavaScript so would not know were to begin
|
Re: make users choose
this should still work. javascript is version independent.
You will just need to replace po3 with appropriate ID. Note that the first selection in your dropdown should not be an actual option, but a generic place holder such as select or please choose. if (document.getElementById('po3').selectedIndex == 0) { alert('Please select a size for your item.'); return false; } else return true; |
All times are GMT -8. The time now is 02:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.