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

#   Hikashop Export

##

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

Less More

- Posts: 32
- Thank you received: 0
-
-

12 years 7 months ago [\#151399](#151399) by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")  *[Hikashop Export](/forum/37-import-export-csv-xls/867294-hikashop-export#151399 "Hi,  When using the Hikashop Export system to export the products we have in our database, when we open the exported CSV file in either notepad or excel the data is slightly corrupted because some of the database fields contain carriage return/line feeds (i.e. &#92;r&#92;n) and so this pushes the remainder of the line onto the next line in the CSV and so excel thinks that this is a new record. I am therefore trying to create a custom plugin to fire just as the export button is pressed that will scan the database columns for each record and replace the &#92;r&#92;n characters if found. In order to do this i followed the instructions on the following page   www.hikashop.com/support/support/documen...nBeforeProductExport . I can successfully install the plugin without any problems. However when i enable the plugin and navigate to any page on the hikashop component, the screen simply goes blank and nothing happens. I have just added the functions to the plugin without adding any code in the function and yet its still broken. I have attached my plugin to this post - perhaps someone can shed some light on why this is happening?  Thanks in advance")* was created by *[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")*

Hi,

When using the Hikashop Export system to export the products we have in our database, when we open the exported CSV file in either notepad or excel the data is slightly corrupted because some of the database fields contain carriage return/line feeds (i.e. \r\n) and so this pushes the remainder of the line onto the next line in the CSV and so excel thinks that this is a new record. I am therefore trying to create a custom plugin to fire just as the export button is pressed that will scan the database columns for each record and replace the \r\n characters if found. In order to do this i followed the instructions on the following page [ www.hikashop.com/support/support/documen...nBeforeProductExport](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onBeforeProductExport). I can successfully install the plugin without any problems. However when i enable the plugin and navigate to any page on the hikashop component, the screen simply goes blank and nothing happens. I have just added the functions to the plugin without adding any code in the function and yet its still broken. I have attached my plugin to this post - perhaps someone can shed some light on why this is happening?

Thanks in advance

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 7 months ago [\#151424](#151424) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Hikashop Export](/forum/37-import-export-csv-xls/867294-hikashop-export#151424 "Hi,  When using the Hikashop Export system to export the products we have in our database, when we open the exported CSV file in either notepad or excel the data is slightly corrupted because some of the database fields contain carriage return/line feeds (i.e. &#92;r&#92;n) and so this pushes the remainder of the line onto the next line in the CSV and so excel thinks that this is a new record. I am therefore trying to create a custom plugin to fire just as the export button is pressed that will scan the database columns for each record and replace the &#92;r&#92;n characters if found. In order to do this i followed the instructions on the following page   www.hikashop.com/support/support/documen...nBeforeProductExport . I can successfully install the plugin without any problems. However when i enable the plugin and navigate to any page on the hikashop component, the screen simply goes blank and nothing happens. I have just added the functions to the plugin without adding any code in the function and yet its still broken. I have attached my plugin to this post - perhaps someone can shed some light on why this is happening?  Thanks in advance")*

Hi,

If you got a blank page, please change the "PHP error reporting" level in your Joomla global configuration.
At this moment you will see the PHP error messages instead of a blank page. It will give more more details to debug your plugin.

About your main problem, You totally can have some carriage return in a CSV file without any problem.
HikaShop use the CSV rules with quotes to have some delimiter between values.
If you open your CSV file correctly, saying that only the coma is the separator, your CSV file will be open nice.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 32
- Thank you received: 0
-
-

12 years 7 months ago [\#151462](#151462) by [diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")  Replied by *[diesel1984](/forum/user/30999-diesel1984 "View diesel1984's Profile")* on topic *[Hikashop Export](/forum/37-import-export-csv-xls/867294-hikashop-export#151462 "Hi,  When using the Hikashop Export system to export the products we have in our database, when we open the exported CSV file in either notepad or excel the data is slightly corrupted because some of the database fields contain carriage return/line feeds (i.e. &#92;r&#92;n) and so this pushes the remainder of the line onto the next line in the CSV and so excel thinks that this is a new record. I am therefore trying to create a custom plugin to fire just as the export button is pressed that will scan the database columns for each record and replace the &#92;r&#92;n characters if found. In order to do this i followed the instructions on the following page   www.hikashop.com/support/support/documen...nBeforeProductExport . I can successfully install the plugin without any problems. However when i enable the plugin and navigate to any page on the hikashop component, the screen simply goes blank and nothing happens. I have just added the functions to the plugin without adding any code in the function and yet its still broken. I have attached my plugin to this post - perhaps someone can shed some light on why this is happening?  Thanks in advance")*

Hi

Thanks for your response. Can you let me know if I'm going down the right track with my custom hikashop plugin I.e. will the plugin function I have written fire just before the export runs as I expect it to?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjcyOTQtaGlrYXNob3AtZXhwb3J0P3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

12 years 7 months ago [\#151488](#151488) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Export](/forum/37-import-export-csv-xls/867294-hikashop-export#151488 "Hi,  When using the Hikashop Export system to export the products we have in our database, when we open the exported CSV file in either notepad or excel the data is slightly corrupted because some of the database fields contain carriage return/line feeds (i.e. &#92;r&#92;n) and so this pushes the remainder of the line onto the next line in the CSV and so excel thinks that this is a new record. I am therefore trying to create a custom plugin to fire just as the export button is pressed that will scan the database columns for each record and replace the &#92;r&#92;n characters if found. In order to do this i followed the instructions on the following page   www.hikashop.com/support/support/documen...nBeforeProductExport . I can successfully install the plugin without any problems. However when i enable the plugin and navigate to any page on the hikashop component, the screen simply goes blank and nothing happens. I have just added the functions to the plugin without adding any code in the function and yet its still broken. I have attached my plugin to this post - perhaps someone can shed some light on why this is happening?  Thanks in advance")*

Hi,

As Jerome said, that's not necessary as Excel should be able to handle the \r\n in the CSVs as long as you import it with the correct options in Excel.
But yes, you can use that onBeforeProductExport trigger if you want to process the data before it is displayed in the CSV. You can just modify the data in the $products array in your plugin.

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

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