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

#   Bug in Product Export with Variants

##

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

Less More

- Posts: 28
- Thank you received: 2
-
-

14 years 7 months ago [\#45912](#45912) by [Mike2001](/forum/user/6462-mike2001 "View Mike2001's Profile")  *[Bug in Product Export with Variants](/forum/3-bug-report/45912-bug-in-product-export-with-variants#45912 "Hello Nicolas,  I have been debugging what I thought was an error in my product data when I discovered that there is an extra semicolon being added to each export record that is either a product with a variant or the variant itself. This causes the import function to fail.  I am on Joomla 2.5.3 Hikashop 1.5.7 clean install on a test machine.  I have not yet looked at the export code - thought you may be able to do that much faster.  Please let me know what you find, or if I missed a post describing this concern.  Thanks...")* was created by *[Mike2001](/forum/user/6462-mike2001 "View Mike2001's Profile")*

Hello Nicolas,

I have been debugging what I thought was an error in my product data when I discovered that there is an extra semicolon being added to each export record that is either a product with a variant or the variant itself. This causes the import function to fail.

I am on Joomla 2.5.3 Hikashop 1.5.7 clean install on a test machine.

I have not yet looked at the export code - thought you may be able to do that much faster.

Please let me know what you find, or if I missed a post describing this concern.

Thanks...

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

14 years 7 months ago [\#46122](#46122) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Bug in Product Export with Variants](/forum/3-bug-report/45912-bug-in-product-export-with-variants#46122 "Hello Nicolas,  I have been debugging what I thought was an error in my product data when I discovered that there is an extra semicolon being added to each export record that is either a product with a variant or the variant itself. This causes the import function to fail.  I am on Joomla 2.5.3 Hikashop 1.5.7 clean install on a test machine.  I have not yet looked at the export code - thought you may be able to do that much faster.  Please let me know what you find, or if I missed a post describing this concern.  Thanks...")*

Hi,

There indeed is a problem with the export when exporting products with characteristics.
Please change the code : Code:

foreach($characteristicsColumns as $characteristic){ echo '"'.@$characteristics[$characteristic].'"'.$separator; }

by the code: Code:

$chars = array(); foreach($characteristicsColumns as $characteristic){ $chars[] = '"'.@$characteristics[$characteristic].'"'; } echo implode($separator,$chars);

in the file "export" of the view "product" via the menu Display-&gt;Views and export again. That should solve the problem.

The following user(s) said Thank You: [Mike2001](/forum/user/6462-mike2001 "View Mike2001's Profile")

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

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