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

#   Order variants in Cart

##

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 8 months ago [\#289526](#289526) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289526 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")* was created by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")*

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 5.6.33
-- Browser(s) name and version -- : Chrome 64.0.3282.186
-- Error-message(debug-mod must be tuned on) -- : No error

The webshop of my client has 3 variants per product. Size, color and cup.
When selecting multiple products the outcome in the cart can be:
PrimaDonna Deauville BH: 85 E Natuur
PrimaDonna Deauville BH: 80 Caffé latte D

Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 8 months ago [\#289534](#289534) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289534 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

In the specification area of your products you can choose the order you want for the characteristics:
[ monosnap.com/file/XDw0AjH6uSHV48akwQDC6Lh0XTIYcd](https://monosnap.com/file/XDw0AjH6uSHV48akwQDC6Lh0XTIYcd)
Regarding the order of the products in the cart, it is not alphabetically but based on the date you added the product to the cart.

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 8 months ago -  8 years 8 months ago [\#289582](#289582) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289582 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

That's correctly set
[ ](https://ibb.co/b2Hj2x)[ ibb.co/b2Hj2x](https://ibb.co/b2Hj2x)

The problem is within the same product.
Are you suggesting to delete all the variants and re-add them?

Last edit: 8 years 8 months ago by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 8 months ago [\#289610](#289610) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289610 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hello,

Strange...Can you provide an **url link** in order to process some test by ourself ?
In order to be sure you have to recreate the cart an re-add the product.
Awaiting news from you.

Regards

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 8 months ago [\#289613](#289613) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289613 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

I started off with an empty cart. Added 2 products:
[ digiwacht-klanten.nl/jasmijn/webshop/pro...madonna-deauville-bh](http://digiwacht-klanten.nl/jasmijn/webshop/product/primadonna-deauville-bh)
1 with 85, E, Natuur and
1 with 65, E, Caffé latte

The cart looks like:
[ ](https://ibb.co/dn8QAH)[ ibb.co/dn8QAH](https://ibb.co/dn8QAH)

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 8 months ago -  8 years 8 months ago [\#289627](#289627) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289627 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hello,

At the begin, we believe that the variant settings was the **root issue** and leads to generate automatically **product + variant** name, but we forget one point to check.
Can you check in your **product variant** tab the **variant name** as show on this screenshot :

[ ![&#91;img](https://cdn.pbrd.co/images/HbQnqNh.png) ](https://cdn.pbrd.co/images/HbQnqNh.png "&#91;img")

Hope this will help you to get the root issue.
Regards

Last edit: 8 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 8 months ago [\#289691](#289691) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289691 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

The name field is blank, so thats the root issue?
Shouldn't the variant names automagically fill the name fields?

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 8 months ago [\#289695](#289695) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289695 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hello,

Sure, it should automatically fill the good name for variants without name. It's also weird that you're only having that issue with the following product :
PrimaDonna Deauville BH: 65 E Caffé latte

Can you for the variant's name to "65 E Caffé latte" and test it again ? Thank you.

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago [\#289886](#289886) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289886 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

> Mohamed Thelji wrote: Can you for the variant's name to "65 E Caffé latte" and test it again ? Thank you.

What do you want me to do for the variant?

I see differences in other products as well. For instance the product Anita BH Safina. The order from the product shows Omvang, Cup, kleur and it displays as Omvang, kleur, Cup
[ ](https://imgur.com/a/RQJRg)[ imgur.com/a/RQJRg](https://imgur.com/a/RQJRg)

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 7 months ago [\#289932](#289932) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289932 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

I think I know what is the issue albeit I'm not able to reproduce it on my end.
Try to change the code: Code:

if(empty($mainCharacteristics[$product-&gt;product_id])) $mainCharacteristics[$product-&gt;product_id] = array(); if(empty($mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id])) $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id] = array(); $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id][$characteristic-&gt;characteristic_id] = $characteristic; if($product-&gt;product_type === 'variant') { if(empty($product-&gt;characteristics)) $product-&gt;characteristics = array(); $product-&gt;characteristics[] = $characteristic; }

to: Code:

if($product-&gt;product_type === 'variant') { if(empty($product-&gt;characteristics)) $product-&gt;characteristics = array(); $product-&gt;characteristics[] = $characteristic; } else { if(empty($mainCharacteristics[$product-&gt;product_id])) $mainCharacteristics[$product-&gt;product_id] = array(); if(empty($mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id])) $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id] = array(); $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id][$characteristic-&gt;characteristic_id] = $characteristic; }

in the file administrator/components/com_hikashop/classes/cart.php
Let us know how it goes.
If that doesn't help, we'll need a backend and a FTP access to debug the issue on your website.

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago [\#289955](#289955) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289955 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

That broke the site a bit.
I'll PM you the credentials

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 7 months ago [\#289969](#289969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289969 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

I've tested the code on my end before giving it to you. So it's not possible it will break the website unless you didn't do the exact modification I gave.

And I wasn't able to access your FTP server with the access you provided.
Please try again the modification and make sure you do exactly what I wrote in my previous message, without forgetting any curly braket or other.

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago [\#289991](#289991) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#289991 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

I tried it again, copy and pasted your code, but still breaks. I don't know what i am doing wrong.

I made a typo in the password. Thats corrected now.

Here the cart.php in a zip. Look at line 993, thats where it starts
*This attachment is hidden for guests.
Please log in or register to see it.*

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

8 years 7 months ago -  8 years 7 months ago [\#290042](#290042) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290042 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hello,

For a reason I'm not able to connect via ftp... But I analyze your **cart.php** with your modification and I find maybe the error.
From your code, you have remove a condition : Code:

if($product-&gt;product_id == $characteristic-&gt;variant_product_id) {

just after the Code:

foreach($characteristics as $characteristic) {

it's around line **992** That may explain your error, you have to see this :
Code:

foreach($characteristics as $characteristic) { if($product-&gt;product_id == $characteristic-&gt;variant_product_id) { /* Adjustment Nicolas */ if($product-&gt;product_type === 'variant') { if(empty($product-&gt;characteristics)) $product-&gt;characteristics = array(); $product-&gt;characteristics[] = $characteristic; } else { if(empty($mainCharacteristics[$product-&gt;product_id])) $mainCharacteristics[$product-&gt;product_id] = array(); if(empty($mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id])) $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id] = array(); $mainCharacteristics[$product-&gt;product_id][$characteristic-&gt;characteristic_parent_id][$characteristic-&gt;characteristic_id] = $characteristic; } /* End Adjustment Nicolas */

Screenshot review :

[ ![&#91;img](https://cdn.pbrd.co/images/HcUcwmF.png) ](https://cdn.pbrd.co/images/HcUcwmF.png "&#91;img")

Hope this will help you to move forward.
Regards

Last edit: 8 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago [\#290055](#290055) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290055 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Tnx. I missed that.
Unfortunately that didn't resolve the order problem.
[ ](https://imgur.com/a/6dT53)[ imgur.com/a/6dT53](https://imgur.com/a/6dT53)

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 7 months ago [\#290137](#290137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290137 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

Ok, we'll have to check directly on your website.
WhenI try to access your FTP, I get the error:
U heeft geen toegang! Meer info: [ whitelist.host-ed.eu](http://whitelist.host-ed.eu)
I tried to add our office IP address there, and the website said that it was added.
However, I still can't connect to your FTP server.
Could you manually white list the IP address or deactivate the white list filter on your FTP server ?
If you need our IP address, please use our contact form to request it:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago -  8 years 7 months ago [\#290232](#290232) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290232 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

I had contact with my provider. They claim the login attempt may have crossed the addition to the whitelist.
Your IP address is now on that whitelist, so can you try again?

Last edit: 8 years 7 months ago by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile"). Reason: typo

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 7 months ago [\#290275](#290275) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290275 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

Thank you for the access.
I was able to debug the issue and apply the necessary patch.
It's working fine on your website now and we'll include that on our end too.

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

- **[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")**
- [![Digiwacht's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar12729.jpg)](/forum/user/12729-digiwacht "View Digiwacht's Profile") Topic Author
- [ Offline](/forum/user/12729-digiwacht)

Less More

- Posts: 61
- Thank you received: 1
-
-

8 years 7 months ago [\#290301](#290301) by [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")  Replied by *[Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290301 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Tnx for checking. It's not entirely solved. The size is now shown twice.

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 7 months ago [\#290314](#290314) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order variants in Cart](/forum/27-checkout/894101-order-variants-in-cart#290314 "-- HikaShop version -- : 3.3.0 -- Joomla version -- : 3.8.5 -- PHP version -- : 5.6.33 -- Browser(s) name and version -- : Chrome 64.0.3282.186 -- Error-message(debug-mod must be tuned on) -- : No error  The webshop of my client has 3 variants per product. Size, color and cup. When selecting multiple products the outcome in the cart can be: PrimaDonna Deauville BH: 85 E Natuur PrimaDonna Deauville BH: 80 Caffé latte D  Notice that the order is probably alphabetical. But both should have Size, Cup and Color, like the first one.")*

Hi,

Thanks. I've added a second patch. Download the install package on our website and install it on yours to get that second patch too.

The following user(s) said Thank You: [Digiwacht](/forum/user/12729-digiwacht "View Digiwacht's Profile")

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

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