🛒 OpenCart 2.3.x selected product option by default in checkout process
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
sql
upload/vqmod/xml
.gitignore
LICENSE
README.md
composer.json

README.md

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.

Preview

Category add to cart

Admin

Catalog

Installation

  1. Requiring installed vQmod because vQmod doesn't support installing via composer itself.
  2. composer require burdapraha/oc_default_option
  3. composer require sasedev/composer-plugin-filecopier for files manipulating
  4. 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.

  1. run SQL command from sql file
  2. optionally you can add row to your .gitignore file with path to svg.xml (example: upload/vqmod/xml/oc_default_option.xml)
  3. celebrate!