Page 1 of 1

Deselect radio button in image option for products

Posted: Sun Jan 15, 2012 4:28 am
by bryan7878
I want to use the image option for all of my products. It provides a picture of the option which I feel is a great sales advantage. The problem that I am finding is that when I add an image option to a product there is no way to de-select it if I change my mind. What am I missing?

Re: Deselect radio button in image option for products

Posted: Sun Jan 15, 2012 5:13 am
by Qphoria
Radio buttons were designed with 2 or more options in mind.

Re: Deselect radio button in image option for products

Posted: Sun Jan 15, 2012 11:13 pm
by bryan7878
But if you have more that one image then you can click both of them, having two options added to the cart. What if a customer clicks on an image adding it to the cart and then changes their mind and wants to remove the choice before going to the cart?

Id there a way to have images with check boxes, those you can deselect.
Thanks!!

Re: Deselect radio button in image option for products

Posted: Mon Jan 16, 2012 2:14 am
by straightlight
To avoid further confusions on this, I created a VQMod file so to only show each active option values from no matter which type of form option they may be relying on.

Additionally, from PHPMyAdmin's SQL tab under your OpenCart database, run the following query:

Code: Select all

ALTER TABLE oc_option_value ADD status TINYINT(1) NOT NULL DEFAULT '0';
Note: Rename oc_ to your real prefix name if invalid.