butopea / vue-storefront-opencart-vsbridge
Vue Storefront Connector Extension for OpenCart
Installs: 231
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 6
Forks: 10
Open Issues: 1
Type:opencart-extension
Requires
- butopea/composer-plugin-filecopier: ^1.1
- rbdwllr/reallysimplejwt: 2.0.2
- voku/urlify: 5.0.2
- dev-master
- v1.0.43
- v1.0.42
- v1.0.41
- v1.0.40
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- dev-develop
This package is auto-updated.
Last update: 2025-03-04 20:33:26 UTC
README
Compatible with: OpenCart 2.3.0.2
API Base URL: https://site_url/vsbridge/
API Credentials:
- Username: OC API Name
- Password: OC API Key
- Secret Key: Must be generated in VS Bridge module settings
- Token Format: JWT
Installation:
- Add the following line in the extra section of your OpenCart's composer.json:
Make sure to change the destination folder to match your upload/public folder.
"extra": { "filescopier": [ { "source": "vendor/butopea/vue-storefront-opencart-vsbridge/src", "destination": "upload", "debug": "true" } ] }
Notes about the source
and destination
paths:
- The destination element must be a folder. if the destination folder does not exists, it is recursively created using
mkdir($destination, 0755, true)
- If the destination folder is not an absolute path, the relative path is calculated using the vendorDir path (
$project_path = \realpath($this->composer->getConfig()->get('vendor-dir').'/../').'/'
;)- The source element is evaluated using the php function
\glob($source, GLOB_MARK)
and a recursive copy is made for every result of this function into the destination folder
- Run the following command to add the required composer packages, including the VS Bridge itself:
composer require butopea/vue-storefront-opencart-vsbridge
- Add the URL rewrite rule for VS Bridge (Nginx example):
location /vsbridge { rewrite ^/(.+)$ /index.php?route=$1 last; }
- Install the extension in OpenCart (Extensions -> Modules) and generate a secret key
This extension will create its own tables in the database. An overview of the database changes can be found here.
- Get the Vue Storefront OpenCart Indexer to import your data into ElasticSearch.
You need to whitelist your indexer's IP address in OpenCart at oc_url/admin/index.php?route=user/api
Tests:
- Edit
tests/test.php
and add the credentials and settings - Run
php tests/test.php
Development:
We're currently in the early stages of getting all the features working and would love other OpenCart developers to join in with us on this project!
If you found a bug or want to contribute toward making this extension better, please fork this repository, make your changes, and make a pull request.
Credits:
Made with ❤ by Butopêa
Support:
Please ask your questions regarding this extension on Vue Storefront's Slack https://vuestorefront.slack.com/ You can join via this invitation link.
License:
This extension is completely free and released under the MIT License.