burdapraha/oc_default_option

OpenCart 2.x select option item as checked by default

1.0 2017-08-01 14:30 UTC

This package is not auto-updated.

Last update: 2024-04-23 00:48:13 UTC


README

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!