AbanteCart Community
AbanteCart Development => Customization help => Topic started by: andrewatmcd on May 20, 2019, 03:19:39 PM
-
Hello all,
If I wanted to use HTML in the product blurb (inserting a bulleted list, for instance), what would I need to edit and where?
Many thanks,
Andrew.
-
all blurb stored in database as html-entities to prevent injections.
You should to change your tpl (product/product.tpl) and decode entities.
Just find variable $product_info['blurb'] and replace with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');
-
all blurb stored in database as html-entities to prevent injections.
You should to change your tpl (product/product.tpl) and decode entities.
Just find variable $product_info['blurb'] and replace with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');
Ah, excellent! Thank you!
-
all blurb stored in database as html-entities to prevent injections.
You should to change your tpl (product/product.tpl) and decode entities.
Just find variable $product_info['blurb'] and replace with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');
Hello Sir,
Sorry for bothering you. I still learning php so,
Can you tell me please what and where exactly should be changed on (PHP DB) the decode entities???
Thank you...
-
Hello.
If you have default template try to edit this file https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/product/product.tpl#L94
In the 3rd party templates files located in the public_html/extension/theme/
-
Hello.
If you have default template try to edit this file https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/pages/product/product.tpl#L94
In the 3rd party templates files located in the public_html/extension/theme/
Sir, I have the original file I edited that file and replaced the $product_info['blurb'] with html_entity_decode($product_info['blurb'], ENT_QUOTES, 'UTF-8');
but nothing changed. as also cleaned the browser and website cache memory too