I'm implementing ddSlick dropdown images (http://designwithpc.com/Plugins/ddSlick) into product options.
I'm using select->option HTML object to provide a safe layer when JS is disabled / ddSlick not loaded..
I was able to add the images and styles: http://jdem.cz/9k779 (via "make it slick" function), but I have a problem with data validation when adding a product into cart because the selectedData is not transfered into the cart add() function (index.php?route=checkout/cart/add -> /controller/checkout/cart.php function add()).
I've even tried adding one default option into select with selected attribute, but still the card can't see it is selected when using ddSlick:
Code: Select all
<select><option value="23" selected="selected">value23</option></select>
How does the card determine that some option has been selected?
How should I send the selected option to cart?
Code: Select all
ddslick({onSelected: function(data){alert(data.selectedData.value);}, })