Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: HTML in the Blurb?  (Read 7677 times)

Offline andrewatmcd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
HTML in the Blurb?
« 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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: HTML in the Blurb?
« Reply #1 on: May 21, 2019, 04:48:41 AM »
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');
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline andrewatmcd

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: HTML in the Blurb?
« Reply #2 on: May 21, 2019, 01:04:40 PM »
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!

Offline HADY

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: +27/-5
    • View Profile
Re: HTML in the Blurb?
« Reply #3 on: January 17, 2022, 03:10:49 AM »
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...
Thank you In Advanced
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: HTML in the Blurb?
« Reply #4 on: January 17, 2022, 03:18:28 AM »
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/

Offline HADY

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: +27/-5
    • View Profile
Re: HTML in the Blurb?
« Reply #5 on: January 17, 2022, 03:40:07 AM »
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
« Last Edit: January 17, 2022, 03:41:38 AM by HADY »
Thank you In Advanced
Regards
HADY

 

Powered by SMFPacks Social Login Mod