[Skip to main content](#vessel-content)

#   After saving the product from front end - styling of custom fields gets erased

##

- **[solishop](/forum/user/58095-solishop "View solishop's Profile")**
- [![solishop's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58095-solishop "View solishop's Profile") Topic Author
- [ Offline](/forum/user/58095-solishop)

Less More

- Posts: 3
- Thank you received: 0
-
-

7 years 8 months ago -  7 years 8 months ago [\#303984](#303984) by [solishop](/forum/user/58095-solishop "View solishop's Profile")  *[\[SOLVED\] Styling of custom fields gets erased](/forum/3-bug-report/896946-after-saving-the-product-from-front-end-styling-of-custom-fields-gets-erased#303984 "Hi, I found a peculiar bug.  Here's the situation:  Our vendors can add some information about the product in a custom field. When they do add text in the field (front-end), it gets printed to the product page (Caractéristiques). For this print, everything is ok - the style is kept.  The issue comes when we want to echo this custom field again (under the title, at the top of the product page). When the vendor adds the text, it doesn't keep the styling in the second echo (the one at the top of the page). The thing is, when we do it through the administration, it keeps the styling.  I have no idea how to start debugging this.  The styling I'm talking about is some bullet points (ul and li).  Here's the code that echoes the custom field again at the top of the page:  There might be something wrong with that code.  Here are some visuals about this issue. Here it works Where it comes from View of the vendor The result The result in code  Thanks!")* was created by *[solishop](/forum/user/58095-solishop "View solishop's Profile")*

Hi,
I found a peculiar bug.

**Here's the situation:**

Our vendors can add some information about the product in a custom field.
When they do add text in the field (front-end), it gets printed to the product page (Caractéristiques).
For this print, everything is ok - the style is kept.

The issue comes when we want to echo this custom field again (under the title, at the top of the product page).
When the vendor adds the text, it doesn't keep the styling in the second echo (the one at the top of the page).
The thing is, when we do it through the administration, it keeps the styling.

I have no idea how to start debugging this.

The styling I'm talking about is some bullet points (ul and li).

Here's the code that echoes the custom field again at the top of the page: Code:

&lt;?php if (!empty ($this-&gt;element-&gt;product_particularites)) { echo '&lt;p&gt;' . $this-&gt;element-&gt;product_particularites . '&lt;/p&gt;'; } ?&gt;

There might be something wrong with that code.

Here are some visuals about this issue.
https://imgur.com/hzRWz11 Here it works
https://imgur.com/euOERmd Where it comes from
https://imgur.com/KqQXcrg View of the vendor
https://imgur.com/ixPEuU6 The result
https://imgur.com/rLYDMkV The result in code

Thanks!

- [ ![2-whereitcomesfrom.jpg](/forum/attachment/46146) ](/forum/attachment/46146 "...tcomesfrom.jpg") [ ](/forum/attachment/46146?download=1 "...tcomesfrom.jpg")
- [ ![4-theresult.jpg](/forum/attachment/46147) ](/forum/attachment/46147 "4-theresult.jpg") [ ](/forum/attachment/46147?download=1 "4-theresult.jpg")
- [ ![5-theresultincode.jpg](/forum/attachment/46148) ](/forum/attachment/46148 "...sultincode.jpg") [ ](/forum/attachment/46148?download=1 "...sultincode.jpg")
- [ ![1-hereitworks.jpg](/forum/attachment/46149) ](/forum/attachment/46149 "1-hereitworks.jpg") [ ](/forum/attachment/46149?download=1 "1-hereitworks.jpg")
- [ ![3-viewofthevendor.jpg](/forum/attachment/46150) ](/forum/attachment/46150 "...fthevendor.jpg") [ ](/forum/attachment/46150?download=1 "...fthevendor.jpg")

Last edit: 7 years 8 months ago by [solishop](/forum/user/58095-solishop "View solishop's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTY5NDYtYWZ0ZXItc2F2aW5nLXRoZS1wcm9kdWN0LWZyb20tZnJvbnQtZW5kLXN0eWxpbmctb2YtY3VzdG9tLWZpZWxkcy1nZXRzLWVyYXNlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

7 years 8 months ago [\#303985](#303985) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After saving the product from front end - styling of custom fields gets erased](/forum/3-bug-report/896946-after-saving-the-product-from-front-end-styling-of-custom-fields-gets-erased#303985 "Hi, I found a peculiar bug.  Here's the situation:  Our vendors can add some information about the product in a custom field. When they do add text in the field (front-end), it gets printed to the product page (Caractéristiques). For this print, everything is ok - the style is kept.  The issue comes when we want to echo this custom field again (under the title, at the top of the product page). When the vendor adds the text, it doesn't keep the styling in the second echo (the one at the top of the page). The thing is, when we do it through the administration, it keeps the styling.  I have no idea how to start debugging this.  The styling I'm talking about is some bullet points (ul and li).  Here's the code that echoes the custom field again at the top of the page:  There might be something wrong with that code.  Here are some visuals about this issue. Here it works Where it comes from View of the vendor The result The result in code  Thanks!")*

Hi,

You want to turn off the "input filtering" setting of your custom field so that you allow HTML tags on the frontend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTY5NDYtYWZ0ZXItc2F2aW5nLXRoZS1wcm9kdWN0LWZyb20tZnJvbnQtZW5kLXN0eWxpbmctb2YtY3VzdG9tLWZpZWxkcy1nZXRzLWVyYXNlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[solishop](/forum/user/58095-solishop "View solishop's Profile")**
- [![solishop's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58095-solishop "View solishop's Profile") Topic Author
- [ Offline](/forum/user/58095-solishop)

Less More

- Posts: 3
- Thank you received: 0
-
-

7 years 8 months ago [\#304006](#304006) by [solishop](/forum/user/58095-solishop "View solishop's Profile")  Replied by *[solishop](/forum/user/58095-solishop "View solishop's Profile")* on topic *[After saving the product from front end - styling of custom fields gets erased](/forum/3-bug-report/896946-after-saving-the-product-from-front-end-styling-of-custom-fields-gets-erased#304006 "Hi, I found a peculiar bug.  Here's the situation:  Our vendors can add some information about the product in a custom field. When they do add text in the field (front-end), it gets printed to the product page (Caractéristiques). For this print, everything is ok - the style is kept.  The issue comes when we want to echo this custom field again (under the title, at the top of the product page). When the vendor adds the text, it doesn't keep the styling in the second echo (the one at the top of the page). The thing is, when we do it through the administration, it keeps the styling.  I have no idea how to start debugging this.  The styling I'm talking about is some bullet points (ul and li).  Here's the code that echoes the custom field again at the top of the page:  There might be something wrong with that code.  Here are some visuals about this issue. Here it works Where it comes from View of the vendor The result The result in code  Thanks!")*

Thanks you, it worked! Apparently it wasn't a bug but a feature.

Have a nice day.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84OTY5NDYtYWZ0ZXItc2F2aW5nLXRoZS1wcm9kdWN0LWZyb20tZnJvbnQtZW5kLXN0eWxpbmctb2YtY3VzdG9tLWZpZWxkcy1nZXRzLWVyYXNlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
