Как удалить все товары в опенкарт?
Нужно зайти в управление вашей базой данных через phpmyadmin, выбрать её и найти раздел для запуска SQL запросов:
TRUNCATE TABLE oc_product;TRUNCATE TABLE oc_product_attribute;TRUNCATE TABLE oc_product_description;TRUNCATE TABLE oc_product_discount;TRUNCATE TABLE oc_product_image;TRUNCATE TABLE oc_product_option;TRUNCATE TABLE oc_product_option_value;TRUNCATE TABLE oc_product_related;TRUNCATE TABLE oc_product_related;TRUNCATE TABLE oc_product_reward;TRUNCATE TABLE oc_product_special;TRUNCATE TABLE oc_product_tag;TRUNCATE TABLE oc_product_to_category;TRUNCATE TABLE oc_product_to_download;TRUNCATE TABLE oc_product_to_layout;TRUNCATE TABLE oc_product_to_store;TRUNCATE TABLE oc_review;DELETE FROM oc_url_alias WHERE query LIKE 'product_id=%'; Если вы получили ошибку из-за того, что не привязывали метки к товарам ( теги ) запустите такие запросы:
TRUNCATE TABLE oc_product;TRUNCATE TABLE oc_product_attribute;TRUNCATE TABLE oc_product_description;TRUNCATE TABLE oc_product_discount;TRUNCATE TABLE oc_product_image;TRUNCATE TABLE oc_product_option;TRUNCATE TABLE oc_product_option_value;TRUNCATE TABLE oc_product_related;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;TRUNCATE TABLE oc_review;DELETE FROM oc_url_alias WHERE query LIKE 'product_id=%';

