Stock (quantity) auto update / sync from csv file

Stock (quantity) auto update / sync from csv file
This mod will update every visited product (before being displayed and before being displayed in cart) if its stock differs from the one in the csv file.
V1.0

######################

For Opencart 2.3.x

Install:
If you don't want to set up your ftp details:
Rename install.xml to qtyupdatefromcsv2x3x.ocmod.xml and upload only this xml file in extensions installer.

Refresh the modifications cash after install.

######################

For Opencart 3.x

Install:
Upload the whole archive in extensions installer.

Refresh the modifications cash after install.

######################

For any version add to config.php at the bottom:

define('UPDATE_STOCK_CSV_FILE', 'ftp/test.csv');

Replace ftp/test.csv with the path to your csv.
(ftp is in the same folder as config.php in this example, so it must be created.
You can use '../ftp/test.csv' to place this folder outside your opencart installation).
Please make sure the csv file is not accessible in browser via direct url.

Configure a regular update of the csv file via ftp from your ERP management program with the follosing structure:
ean,stock

Example:

1234567891234,10
1234567891235,0




Download
  • Developed by OpenCart Community
  • Documentation Included

Rating

Compatibility
2.3.0.2, 3.0.2.0

Last Update
13 Mar 2021

Created
3 Mar 2021
32 Downloads
1 Comments
marius-ciclistu
marius-ciclistu
Member since: 2 Feb 2013

View all extensions Get Support