Delete all products

$product_ids = db_get_fields('SELECT product_id FROM ?:products'); if(!empty($product_ids)){ foreach ($product_ids as $product_id) { fn_delete_product($product_id); } } //db_query('TRUNCATE ?:products');

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.