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

#   Product Cron Update seems to filer LineFeeds from the product\_description

##

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

Less More

- Posts: 80
- Thank you received: 8
-
-
-
-

6 years 10 months ago -  6 years 10 months ago [\#314319](#314319) by [bp54](/forum/user/33970-bp54 "View bp54's Profile")  *[Product Cron Update seems to filer LineFeeds from the product\_description](/forum/37-import-export-csv-xls/898920-product-cron-update-seems-to-filer-linefeeds-from-the-product-description#314319 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrom latest -- Error-message(debug-mod must be tuned on) -- : n/a  I'm testing with Hikashop - Product Cron Update and it works like a charm except for one thing. The import of the product&#95;description is missing the LineFeed characters. The csv file provided by my supplier uses LF characters to create new lines but the LF characters seem to be filtered by the Cron Update Plugin. For me it is no option to change the csv file manualy because i download the csv file every hour from the supplier and I would like to keep the shop content in sync.  Update: I checked the product&#95;description field in the database table and there the linefeeds are still okay (when copied to Notepad++ showing as CR LF). Why are these CR LF not visible in the editor?")* was created by *[bp54](/forum/user/33970-bp54 "View bp54's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.14
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrom latest
-- Error-message(debug-mod must be tuned on) -- : n/a

I'm testing with Hikashop - Product Cron Update and it works like a charm except for one thing.
The import of the product_description is missing the LineFeed characters. The csv file provided by my supplier uses LF characters to create new lines but the LF characters seem to be filtered by the Cron Update Plugin.
For me it is no option to change the csv file manualy because i download the csv file every hour from the supplier and I would like to keep the shop content in sync.

**Update**: I checked the product_description field in the database table and there the linefeeds are still okay (when copied to Notepad++ showing as CR LF). Why are these CR LF not visible in the editor?

Last edit: 6 years 10 months ago by [bp54](/forum/user/33970-bp54 "View bp54's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTg5MjAtcHJvZHVjdC1jcm9uLXVwZGF0ZS1zZWVtcy10by1maWxlci1saW5lZmVlZHMtZnJvbS10aGUtcHJvZHVjdC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

6 years 10 months ago [\#314353](#314353) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Cron Update seems to filer LineFeeds from the product\_description](/forum/37-import-export-csv-xls/898920-product-cron-update-seems-to-filer-linefeeds-from-the-product-description#314353 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrom latest -- Error-message(debug-mod must be tuned on) -- : n/a  I'm testing with Hikashop - Product Cron Update and it works like a charm except for one thing. The import of the product&#95;description is missing the LineFeed characters. The csv file provided by my supplier uses LF characters to create new lines but the LF characters seem to be filtered by the Cron Update Plugin. For me it is no option to change the csv file manualy because i download the csv file every hour from the supplier and I would like to keep the shop content in sync.  Update: I checked the product&#95;description field in the database table and there the linefeeds are still okay (when copied to Notepad++ showing as CR LF). Why are these CR LF not visible in the editor?")*

Hi,

Note that the description uses HTML and the editor you have to edit the description of a product is a HTML editor.
In HTML, CR and LF characters are not "displayed". To have a line return in HTML you need to have a HTML tag Code:

&lt;br/&gt;

So in that case, what you could do is change the "Description default format" setting to "markdown" instead of "HTML" in the HikaShop configuration.
In that case, for new products, the description will be added as markdown and the CR / LF characters will be taken into account. But you won't have a HTML editor when you edit these products anymore as you'll have instead just a text area with the use of the "markdown" format: [ en.wikipedia.org/wiki/Markdown](https://en.wikipedia.org/wiki/Markdown)

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

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

Less More

- Posts: 80
- Thank you received: 8
-
-
-
-

6 years 10 months ago -  6 years 10 months ago [\#314362](#314362) by [bp54](/forum/user/33970-bp54 "View bp54's Profile")  Replied by *[bp54](/forum/user/33970-bp54 "View bp54's Profile")* on topic *[Product Cron Update seems to filer LineFeeds from the product\_description](/forum/37-import-export-csv-xls/898920-product-cron-update-seems-to-filer-linefeeds-from-the-product-description#314362 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrom latest -- Error-message(debug-mod must be tuned on) -- : n/a  I'm testing with Hikashop - Product Cron Update and it works like a charm except for one thing. The import of the product&#95;description is missing the LineFeed characters. The csv file provided by my supplier uses LF characters to create new lines but the LF characters seem to be filtered by the Cron Update Plugin. For me it is no option to change the csv file manualy because i download the csv file every hour from the supplier and I would like to keep the shop content in sync.  Update: I checked the product&#95;description field in the database table and there the linefeeds are still okay (when copied to Notepad++ showing as CR LF). Why are these CR LF not visible in the editor?")*

Thanks you Nicolas. I think I missed something because I still do not see the LineFeeds.

What i did:

1. Deleted all the products
2. Under System&gt;Configuration&gt;Advanced Settings I changed Description format from HTML to Markdown.
3. Reimported all the products via the Cron Update plugin

Unfortunately I still see the editor and also the text without LineFeeds.

**Update:**: It seemed that only setting Markdown was not enough. I also had to set the editor to: plg_editors_none manualy.
Now the LineFeeds show up in the backend product_description however in the frontend the LineFeeds are not visible. I think this is because it is not html.

**Update 2:**
Finaly i think i solved it. In file product/show_default (around line 190) I enclosed the string representation of $this-&gt;element-&gt;product_description with nl2br:
Code:

&lt;div id="hikashop_product_description_main" class="hikashop_product_description_main" itemprop="description"&gt;&lt;?php echo nl2br(JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;product_description))); ?&gt;&lt;/div&gt;

Last edit: 6 years 10 months ago by [bp54](/forum/user/33970-bp54 "View bp54's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTg5MjAtcHJvZHVjdC1jcm9uLXVwZGF0ZS1zZWVtcy10by1maWxlci1saW5lZmVlZHMtZnJvbS10aGUtcHJvZHVjdC1kZXNjcmlwdGlvbj90bXBsPW1hcmtkb3du) 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.044 seconds

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