Bug in Product Export with Variants

  • Posts: 28
  • Thank you received: 2
12 years 3 weeks ago #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...

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
12 years 3 weeks ago #46122

Hi,

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

foreach($characteristicsColumns as $characteristic){
					echo '"'.@$characteristics[$characteristic].'"'.$separator;
				}
by the 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->Views and export again. That should solve the problem.

The following user(s) said Thank You: Mike2001

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum