Small Fix To An Update Script

This project is for “creativity”.

The update script in my cs-cart store has been working but not as good as I would like. I mean, it updates the prices and adds new items, but it doesn’t remove the items that were in stock and now are not. that’s where it fails.
On the other hand my host keeps telling me that the script sould be better optimized.
Mahesh told me once that the best way to update the store with the supplier’s csv was to empty the catalog each night and load it with the content of the csv again. At least, that is what I undertood.
There’s an inconvenient with this, the items that do not belong to the csv are deleted each night too, but it is a small sacrifice to pay if the update finally improves.

Also, I’d like to have a line of code in the script so I can add specific product codes to be automatically removed (or just not uploaded) with each update. I need this because there’re errors in the csv that I do not want to transfer to my store. I know the code of those items with errors.
Please, let me know if you can make the fix. In case you didn’t save the update script you made for my store I can give it to you.

Leave a Reply

Your email address will not be published. Required fields are marked *