Click image to download plugin:
Plugin requires OT API Key which you can buy separately according to set rates. |
Installation of WooCommerce plugin for Wordpress with API Key integration:
2. Download and extract archive into \wp-content\plugins\ folder.
You can upload archive by the following ways:
3. Through hosting file manager or FTP client rename \wp-content\plugins\ot-external\config-example.php file to \wp-content\plugins\ot-external\config.php file.
4. Through hosting file manager or FTP client enter your OT API Key into define constant ('CFG_SERVICE_INSTANCEKEY', ' ') in \wp-content\plugins\ot-external\config.php file. Please note that you can receive an API Key after purchasing it according to set rates.
5. Activate plugin in Wordpress admin panel in "Plugins" section:
6. Go to Settings -> Permalinks /wp-admin/options-permalink.php in your WordPress admin panel, select any Clean (friendly) URL for "Permalink structure" setting (for example, "Day and name")
7. Go to /wp-admin/plugins.php?page=otcommerce in admin panel of your WordPress website and click Reset cache button!
8. You can check categories page on your WordPress site http://site-name/category-external/.
OT Commerce does not provide maintenance or support for Wordpress CMS or WooCommerce plugin. OT Commerce provides and maintains API for catalog, search and product information. Setting up Wordpress and WooCommerce, as well as working with customers and processing orders is carried out by the site owner (or hired third-party programmers or managers). |
Php 7.0+
Php extension: mbstring
OT plugin (WooCommerce for Wordpress with API Key OT integration) allows to get and display product information of popular marketplaces on your WooCommerce site from OpenTrade Commerce database by API.
OT plugin works on the principle of product information broadcasting. This means that all goods are stored in OpenTrade Commerce database. Information about goods is transferred to WooCommerce online store via API.
User can add any product to the shopping cart. Product is added to WooCommerce database when client adds it to the cart. At this stage, OT plugin work is rolled up. Business logic of WooCommerce plugin for Wordpress starts working, which will allow user to place an order. OT plugin does not take part in order formation, it is only required to display and update product information.
OT plugin adds 3 pages to your WordPress site:
All products and categories available in OpenTrade Commerce database are displayed on the site by API. They are not stored in WordPress online store database. |
This operation principle allows to accomplish the following tasks:
Goods are added to the shopping cart according to the following principles:
There is a special button in details of each order to sell item at current price (or offer an analog if seller has run out of item).
Click "Update Price and Balances" under each item before processing the order and notify customer if something has changed.
First of all it's necessary to configure API Key. Use OT Key API documentation: https://docs.otcommerce.com/pages/viewpage.action?pageId=23889041.
Log into admin panel to configure OT API Key.
Go to http://open-demo.otcommerce.com/ik.php
Enter your key:
Enter login and password that you received with the Key:
Now you can configure various API functions in admin panel.
Go to OT Key admin panel to Pricing → Currency section to specify currency for goods prices.
Choose currency from the list on the right.
The currency you choose will be used in your WooCommerce online store.
You can work only with 1 currency. You can select multiple currencies in OT Key settings but only the first active currency you select will work on your WooCommerce site. |
Select currency in the list on the right.
Then click "Save" button at page bottom.
Now you need to finish currency setup in admin panel of your WooCommerce site.
Go to WordPress admin panel under WooCommerce → Settings → Basic → Currency to set up currency in WooCommerce.
or /wp-admin/admin.php?page=wc-settings&tab=general
It's necessary to select language in OT Key admin in Configuration → Languages → Multilanguage in the column on the right. Translations will be in the first language from the list for buyers on WooCommerce site.
Then click "Save" button.
To set language in WooCommerce plugin you need to go to WordPress admin panel to WooCommerce → Settings → General → Site Language section.
or /wp-admin/options-general.php
Request | Example for your website | Пример с демо-сайта ОпенТрейд Коммерс |
Display catalog (all categories) | https://yoursite/category-external/ | https://woocommerce-plugin-demo.otcommerce.com/category-external/ |
Display products by category or search page by category | https://yoursite/search-external/?cid=categoryID | https://woocommerce-plugin-demo.otcommerce.com/search-external/?cid=otc-2 |
Display product card or product search page | https://yoursite/product-external/productID There are prefixes for products from different providers in OT API. Check documentation. | https://woocommerce-plugin-demo.otcommerce.com/product-external/656217897037/ |
Display product search page by word, phrase, description, etc. | https://yoursite/search-external/?search=word,phrase,description,etc. | https://woocommerce-plugin-demo.otcommerce.com/search-external/?search=dress |
[[ot_search]] - block with search bar for products in OTcommerce catalog
[[ot_drop_down_menu_categories]] - icon with drop-down menu of OTcommerce categories
The list of plugin versions: https://data.otcommerce.com/public/ot-external/CHANGELOG.txt