2

How can i set product radio option's default value in opencart? Is there any way we can set the first option value to be default.

If not, then what will be the proper way to set in controller, view?

Anmol singh
  • 158
  • 1
  • 12

1 Answers1

1

Option selected by default for OpenCart 2.x

You can seems as video as well:

https://drive.google.com/file/d/18Amj0HwgSyQDg_THKBRcJciG7KEFvp_l/view?usp=sharing

Download here Extension :

https://drive.google.com/open?id=1Q267HVk_IxfvGlDsTtj6OPtKjVcZPjyg

Better UX for your visitors! You can set up a default options for add to the cart from homepage or category.

Steps for installing extension:

  1. Requiring installed vQmod because vQmod doesn't support installing via the composer itself.

  2. run update_structure.sql file from SQL folder

  3. optionally you can add your downloaded file with the path set (example: /vqmod/xml/oc_default_option.xml

halfer
  • 19,824
  • 17
  • 99
  • 186
Mujahid Bhoraniya
  • 1,518
  • 10
  • 22