Attachments
Delete product images from the admin.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
When we set up OC, I thouhgt it would be easy to delete sold items and their images.
Problem is, we're selling xmas ornaments and collectibles. So if items are sold, we need to delete them total.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Do you mean to delete them from the database directly?straightlight wrote:The best approach would be to have a copied order images table so to get rid of the ones from the store at the same time as the FTP once set to a Complete order from the admin.
Sorry i'm re-asking the things.
On the attachment, you will find the XML file.
// Optional if you don't want to keep those images but at least to execute the following query below is what would be amended as an extra step so to also show the images amongst the order products and straight from the orders.
In your PHPMyAdmin console, under your OpenCart database in the SQL tab, execute the following query:
Code: Select all
CREATE TABLE `oc_order_product_image` (
`product_image_id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`image` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`sort_order` int(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`product_image_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 27 guests