luca07 Posted February 28, 2020 Share Posted February 28, 2020 hi, I uploaded all my products in the catalog and they are all active (about 8000) but I need to display only certain seasonal products for sale, so I need a module that allows me to upload a csv file in which I will insert two columns: one for ID and one for active / inactive (0/1). Does it exist?? I already have the CSV updater module that I use for updating stocks and prices, but if I'm not mistaken it is not usable for this I ask. I would be infinitely grateful to anyone who can help me Link to comment Share on other sites More sharing options...
Guest Posted February 29, 2020 Share Posted February 29, 2020 https://addons.prestashop.com/en/data-import-export/20579-import-update-bulk-product-from-any-csv-excel-file-pro.html But this module is unnecessarily extensive. It's like a cannon to kill a butterfly. But there is no problem writing a small script to update the status of the product according to csv file. I don't have time to program the module for you, I'll write a script here that will do everything for you. You upload a CSV file to FTP, change the CSV file path, the product ID column number, the Active column number, and the column delimiter in the script. Link to comment Share on other sites More sharing options...
Guest Posted February 29, 2020 Share Posted February 29, 2020 (edited) When the first line of a CSV file contains a column heading change line number: To: Full code: CSV structure: id product;active 46;0 48;0 45;1 Edited March 1, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now