Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Related producted options Rate Topic   - - - - -

 
  • ehenderichs
  • Advanced Member
  • Members
  • Join Date: 08-Oct 12
  • 104 posts

Posted 22 March 2013 - 12:10 PM #1

I have a few product options which include the following two:
  • non standard color -> checkbox
  • desired color -> textfield
The texfield "desired color" is mandatory when the checkbox "non standard color" is enabled. Can this be achieved with standard CS-Cart 3.0.6 functionality? If yes, then how?

Or do we need to edit tpl and php files to get these options related? If yes, then can you point me into the right direction?

Thanks in advance,
Eelco

PS: would even be better if texfield "desired color" because visible and is mandatory when the checkbox "non standard color" is enabled
The first cs-cart project for our new dutch company Sooned was a dutch erotic webshop called eely.nl.

 

Posted 23 March 2013 - 05:47 AM #2

You can use JQuery Form Event Handlers

http://jsfiddle.net/...eative/KVRnF/1/

Jeremy
Requin Creative Group
CS-Cart License | CS-Cart Addons


 
  • ehenderichs
  • Advanced Member
  • Members
  • Join Date: 08-Oct 12
  • 104 posts

Posted 23 March 2013 - 09:31 PM #3

Thx, will have a look into this
The first cs-cart project for our new dutch company Sooned was a dutch erotic webshop called eely.nl.

 

Posted 23 March 2013 - 10:25 PM #4

Updated the code.

http://jsfiddle.net/...ative/KVRnF/23/

Jeremy
Requin Creative Group
CS-Cart License | CS-Cart Addons


 
  • Magpie Don
  • Senior Member
  • Members
  • Join Date: 01-Apr 09
  • 839 posts

Posted 24 March 2013 - 04:49 PM #5

Can you set up your unchecked checkbox and textarea as forbidden combinations?

edit: wait... I don't think you can add a textarea to a forbidden combination - it's not really an "option"

CS-Cart Ultimate ver 4.11.3