![]() |
Product Options Pulldown
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:
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}> |
Re: Product Options Pulldown
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.
|
Re: Product Options Pulldown
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?
|
Re: Product Options Pulldown
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 :(
|
Re: Product Options Pulldown
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 |
Re: Product Options Pulldown
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.
|
Re: Product Options Pulldown
Quote:
Hi Balinor, Do you mind sharing it now? |
Re: Product Options Pulldown
use DOM...
some pseudocode to get you started (for onsubmit of the add to cart button) Code:
var selall = boolean(true); |
All times are GMT -8. The time now is 05:08 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.