Option selected by default for OpenCart 2.x
Better UX for your visitors! You can setup a default options for add to the cart from homepage or category.
- Requiring installed vQmod because vQmod doesn't support installing via composer itself.
composer require burdapraha/oc_default_option
composer require sasedev/composer-plugin-filecopier
for files manipulating- Add this code to your composer.json project file, extra section:
"extra": {
"filescopier": [
{
"source": "vendor/burdapraha/oc_default_option/upload",
"destination": "upload",
"debug": "true"
}
]
}
It will move vQmod xml file to correct folder.
- run SQL command from sql file
- optionally you can add row to your
.gitignore
file with path to svg.xml (example: upload/vqmod/xml/oc_default_option.xml) - celebrate!