How to Delete All Image of Selected Products
With well use of Import
function in back office, some extra batch editing function can be applied, delete all image of selected products is one of them.
Just revoke your memory, this function is located at
Advanced Parameters
→Import
Still have no idea? Check out our video!
So, let see how we do this.
Simple! We just need to prepare a CSV file with two columns only, product ID and a column of 1
An example is shown below:
Product ID | Delete img |
---|---|
3 | 1 |
5 | 1 |
10 | 1 |
23 | 1 |
41 | 1 |
101 | 1 |
The image of products with ID 3, 5, 10, 23, 41, 101 will be removed after importing, if you do it correctly
Caution: It is highly recommended you to backup the database first before continue!
- Go to
Advanced Parameters
→Import
page in back office - Select
Products
underWhat do you want to import?
and select your csv file - Set
Field separator
to,
andMultiple value separator
to;
* - Check
Force all ID numbers
and clickNext Step
- Match
ID
with 1st column andDelete existing images (0 = No, 1 = Yes)
with 2nd column - Click
Import
* Depends on you CSV, usually values are divided by comma, but sometimes it may be semi-colon instead
You may need to check the format of your CSV file. As it is called Comma Separated Values, the values in each row are separated with commas. However, sometimes it may be semi-colons instead. For example, the CSV file exported from PrestaShop Back Office is using semi-colon as the separator
You can simply check it by opening with a text editor like below.
And you can find what is the separator.
Go into the page under Advanced Parameters
→ Import
, and let’s see how should we set the corresponding settings:
Then we click Next Step
and follow the below:
Click Import
and…Done! The images of the products with those ID are removed. Yay!
Related Post
How to Configure General setting like ssl and Maintenance enablement in Prestashop
Deprecated: Function create_function() is deprecated in /opt/lampp/htdocs/genkiware/wp-content/themes/optima/single.php on line 185
How to configure “Email” setting in Prestashop
Deprecated: Function create_function() is deprecated in /opt/lampp/htdocs/genkiware/wp-content/themes/optima/single.php on line 185