| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product Options Pulldown | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I modified /skin1/modules/Product_Options/customer_options.tpl with the code below to display "Select an option..." in the product options select menu. How/where do I modify the javascript to require a selection before adding to the cart?
Code:
__________________
X-Cart Pro 4.1.5 |
|||||||
#2
|
|||||||
|
|||||||
![]() Not sure about the pro 4.1 version, but in 4.0.x it is done with validation scripts. Have a look at the manual which gives some examples.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I checked the manual, and it appears to be product specific. My providers are going to be totally lost if I try to explain the necessity and procedure of adding javascript validation scripts for products with options. Anything easier I could do?
__________________
X-Cart Pro 4.1.5 |
|||||||
#4
|
|||||||
|
|||||||
![]() I just had X-Cart write me a global product option validation, but it was done for 4.0.18, so that won't help you in 4.1
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Any chance you'd be willing to share that global validation script? I'm in need of that functionality for a 4.0.18 site.
thanks, Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
#6
|
|||||||
|
|||||||
![]() Yea, I've been meaning to post it in the Completed Custom Mods forum, but haven't had time to extract the custom code out. I may just post the revised files instead of the step by step code edits. I'll post here when I have added the thread.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
Hi Balinor, Do you mind sharing it now?
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#8
|
|||||||
|
|||||||
![]() use DOM...
some pseudocode to get you started (for onsubmit of the add to cart button) Code:
|
|||||||
|
|||
X-Cart forums © 2001-2020
|