| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
make users choose | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
Version 5.3.1 |
|||||||
#3
|
|||||||
|
|||||||
![]() thanks but code not for 4.2
__________________
Version 5.3.1 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() you will need to use JavaScript validation for this.
__________________
xcart 5.1.2 |
|||||||||
#5
|
|||||||
|
|||||||
![]() to be fair am not good with JavaScript so would not know were to begin
__________________
Version 5.3.1 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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;
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|