1) Download api files for the version you need and unpack them: For version 3+ 2) Connect via FTP to the site on OpenCart (For example, via FileZilla) and go to the folder with the client's site (Hint: if you see the catalog folder or the config.php file, then you are where you need to be). We drop the api files for opencart into the folder where you are (in FileZilla, you just need to drag and drop the files) . 3) Fill in the host and apiKey in the catalog/onebox/cron.php file. Where host is a link to the opencart store, apiKey is the key in the client's opencart api. To fill, just paste your values into the file. Nothing else needs to be changed in it. 4) The catalog/onebox/cron.php file must be registered in crontab on the server where opencart is located, to be executed once an hour.
1) Download api files for the version you need and unpack them: For version 3+
2) Connect via FTP to the site on OpenCart (For example, via FileZilla) and go to the folder with the client's site (Hint: if you see the catalog folder or the config.php file, then you are where you need to be). We drop the api files for opencart into the folder where you are (in FileZilla, you just need to drag and drop the files) .
3) Fill in the host and apiKey in the catalog/onebox/cron.php file. Where host is a link to the opencart store, apiKey is the key in the client's opencart api. To fill, just paste your values into the file. Nothing else needs to be changed in it.
4) The catalog/onebox/cron.php file must be registered in crontab on the server where opencart is located, to be executed once an hour.
[file]3654[/file]
[quote]
BEC YURIY SERGEEVYCH wrote:
Please tell me for which versions of PHP this integration is suitable?
[/quote]
?
Also interested in this question.
On version ocStore 3.0.3.7 PHP 7.3.33 in logs:
PHP Notice: Undefined index: username in /var/www/extra/data/www/.../catalog/controller/api/oneboxsync.php on line 15
PHP Notice: Undefined index: password in /var/www/extra/data/www/.../catalog/controller/api/oneboxsync.php on line 15
PHP Notice: Undefined index: api_id in /var/www/extra/data/www/.../catalog/controller/api/oneboxsync.php on line 18
Is the token not received because of this?
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up