Can someone please help me with a query i can run to remove image links from the body description?
Following is a example:
<br><img src="image/catalog//products/homegarden/petsupplies/descriptionImage1.jpg"><br><br><img src="image/catalog//products/homegarden/petsupplies/descriptionImage2.jpg"><br>
I prefer not to export all products (200,000) and use excel, it would take to much time.
this query shouldnt be so difficult for someone who knows mysql.
Thanks
You could just hide them using CSS, including future ones

Code: Select all
.product-description img{display:none;}
<!--change selector accordingly-->
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
Hello,
If I am not mistaken, you want to remove the images from the product description?
If so, you must go to catalog/controller/catalog/product.php and replace the line below:
with
Hope it helps.
If I am not mistaken, you want to remove the images from the product description?
If so, you must go to catalog/controller/catalog/product.php and replace the line below:
Code: Select all
$data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
Code: Select all
$data['description'] = html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8');
$data['description'] = preg_replace("/<img[^>]+\>/i", "", $data['description']);
Who is online
Users browsing this forum: Google [Bot] and 9 guests