Overview
This script facilitates importing product data from an XML file into an OpenCart website, including the handling of categories and products. It ensures data synchronization by adding new items, updating existing ones, and removing outdated entries.
Steps to Run the Script
-
Download the latest XML by running the following link:
https://www.impamark-promotional-merchandise.co.uk/webupdater/public/index.php?action=download_supplier_one
The page will display a message indicating the download completion.
-
Run the script to import and process the XML:
https://www.impamark-promotional-merchandise.co.uk/webupdater/public/index.php?action=import_supplier_one
During this process, you'll see a table allowing you to assign new categories under parent categories. Once completed, the script proceeds automatically until it displays:
"All processes are completed successfully."
Important Notes for OpenCart
- Products and subcategories imported from the XML (Advantage) should not be deleted manually, as the script relies on cached IDs.
- Custom categories outside parent categories are safe from deletion and can be created or edited freely.
- To protect custom products, enter 'notdelete' in the 'Location' field during product creation.
- For Excel Sheet import we have left some free IDs. For categories we have IDs from 12-100 free (main categories from 1-11) and for products we have IDs from 0-999.
Special Notes
- Categories under Advantage are managed entirely by the script and should not be altered manually.
- Custom Christmas categories or other special needs can be created independently of Advantage categories.