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

#   Products after import

##

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

Less More

- Posts: 30
- Thank you received: 1
-
-

6 years 2 days ago [\#325722](#325722) by [Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")  *[Products after import](/forum/26-product-category-display/901176-products-after-import#325722 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")* was created by *[Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22

Hello,

I've a problem with export and import products.

When i export products and use the exact same file as import, the product characteristics are messed up.
These are suddenly shown with an image (which is not linked to it) and a description) that is not there.
These are then taken over from the product itself. This does not happen with all products and characteristics

Kind regards,
Matthijs

- [ ![S400-Dgood-before.JPG](/forum/attachment/50968) ](/forum/attachment/50968 "...ood-before.JPG") [ ](/forum/attachment/50968?download=1 "...ood-before.JPG")
- [ ![S400-Dwrong-after.JPG](/forum/attachment/50969) ](/forum/attachment/50969 "...rong-after.JPG") [ ](/forum/attachment/50969?download=1 "...rong-after.JPG")

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

6 years 2 days ago [\#325727](#325727) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#325727 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

Hi,

Do you see the images linked to the variants in the backend too when you edit a variant under the variants tab of the product edition screen ?
And we would also need a copy of the CSV as well as a link to the page where you made that screenshot to check on the situation.

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

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

Less More

- Posts: 30
- Thank you received: 1
-
-

6 years 1 day ago [\#325749](#325749) by [Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")  Replied by *[Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#325749 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

HI,

No, these are not visible in the back-end.
In the appendix the export.
I can give the link to the site, but it is not "open" to the public yet because we have to solve this first.
Can I provide data to you somewhere without everyone being able to see it?

Kind Regards,
Matthijs

- [ ![S400-D.JPG](/forum/attachment/50984) ](/forum/attachment/50984 "S400-D.JPG") [ ](/forum/attachment/50984?download=1 "S400-D.JPG")

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

6 years 1 day ago [\#325760](#325760) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#325760 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

Hi,

If the images are not in the variants in the backend, then it's not an import issue.
Normally, there is a mechanism on the product details page to check if the variants have different images and if they do, the images column is displayed on the variants listing, and for variants without images, the system uses the images of the main product on the fly.
So what that means is that you must have at least one variant with an image, or that there is a problem in the view displaying the variants listing. It might come from an old view override.
So we'll need a backend access to check the variants and a link to a product page with the issue to check the situation.
You can provide that in private along with a link to this thread via our contact form:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 30
- Thank you received: 1
-
-

6 years 1 day ago [\#325781](#325781) by [Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")  Replied by *[Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#325781 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

Hi ,

It happens after the import, before the import the data was right/

I have emailed login details via the contact form.
You can try it yourself by exporting the product S1402-D and then importing it again.
I've made a backup, so you can try whatever you want ![:)](/media/kunena/emoticons/3.png ":)")

Kind regards,
Matthijs

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

6 years 1 day ago [\#325798](#325798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#325798 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

Hi,

I've run some tests on your website and as I expected the issue is with the mechanism on the product details page to check if the variants have different images.
After the import, you end up in an edge case of that algorithm for one of the variant.
So I made a patch to it so that it properly handle that edge case.
I've added the patch on your website and on our end.
So I can confirm it now displays fine on your website after the import, and we'll have that patch on our end for the next version of HikaShop too.

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

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

Less More

- Posts: 30
- Thank you received: 1
-
-

5 years 11 months ago [\#326018](#326018) by [Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")  Replied by *[Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#326018 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

HI,

That works!!! Thank you very much!!!

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

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

Less More

- Posts: 30
- Thank you received: 1
-
-

5 years 11 months ago [\#327196](#327196) by [Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")  Replied by *[Lambersm](/forum/user/49339-lambersm "View Lambersm's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#327196 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

HI,

The problem is back. Can you provide the patch, so I can install it?

Greetz

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

5 years 11 months ago [\#327208](#327208) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products after import](/forum/26-product-category-display/901176-products-after-import#327208 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.22  Hello,  I've a problem with export and import products.  When i export products and use the exact same file as import, the product characteristics are messed up. These are suddenly shown with an image (which is not linked to it) and a description) that is not there. These are then taken over from the product itself. This does not happen with all products and characteristics  Kind regards, Matthijs")*

Hi,

You need to change the code: Code:

foreach($this-&gt;element-&gt;variants as $variant) { foreach($display as $k =&gt; $v) { if(isset($variant-&gt;$k) &amp;&amp; !is_array($variant-&gt;$k) &amp;&amp; !empty($variant-&gt;$k)) $display[$k] = true; } $variant_images = ''; if(!empty($this-&gt;element-&gt;main-&gt;images) &amp;&amp; !empty($variant-&gt;images)) { foreach($variant-&gt;images as $image) { $variant_images .= '&#124;' . $image-&gt;file_path; } } if($variant_images != $main_images) $display['images'] = true; $variant_prices = ''; if(!empty($variant-&gt;prices)) { foreach($variant-&gt;prices as $price) { $variant_prices .= '&#124;' . $price-&gt;price_value . '_' . $price-&gt;price_currency_id; } } if($variant_prices!=$main_prices) $display['prices'] = true; }

to: Code:

foreach($this-&gt;element-&gt;variants as $variant) { if(!empty($variant-&gt;variant_name)) $display['variant_name'] = true; if(!empty($variant-&gt;product_description) &amp;&amp; $variant-&gt;product_description != $this-&gt;element-&gt;main-&gt;product_description) $display['product_description'] = true; if(!empty($variant-&gt;images)) { $variant_images = ''; foreach($variant-&gt;images as $image) { $variant_images .= '&#124;' . $image-&gt;file_path; } if($variant_images != $main_images) $display['images'] = true; } if(!empty($variant-&gt;prices)) { $variant_prices = ''; foreach($variant-&gt;prices as $price) { $variant_prices .= '&#124;' . $price-&gt;price_value . '_' . $price-&gt;price_currency_id; } if($variant_prices!=$main_prices) $display['prices'] = true; } }

in components/com_hikashop/views/product/view.html.php

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

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