Как массово удалить все товары в OpenCart ?
Как массово удалить все товары в OpenCart ?
Для этого необходимо войти в базу данных через phpMyadmin
И отправить следующий запрос
SET foreign_key_checks = 0; TRUNCATE TABLE `oc_product`; TRUNCATE TABLE `oc_product_attribute`; TRUNCATE TABLE `oc_product_description`; TRUNCATE TABLE `oc_product_discount`; TRUNCATE TABLE `oc_product_filter`; TRUNCATE TABLE `oc_product_image`; TRUNCATE TABLE `oc_product_option`; TRUNCATE TABLE `oc_product_option_value`; TRUNCATE TABLE `oc_product_recurring`; TRUNCATE TABLE `oc_product_related`; TRUNCATE TABLE `oc_product_reward`; TRUNCATE TABLE `oc_product_special`; TRUNCATE TABLE `oc_product_to_category`; TRUNCATE TABLE `oc_product_to_download`; TRUNCATE TABLE `oc_product_to_layout`; TRUNCATE TABLE `oc_product_to_store`;