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

#   HikaMarket Product options in random order

##

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 8 months ago [\#141733](#141733) by [Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")  *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141733 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")* was created by *[Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.4.22
-- Browser(s) name and version -- : Mozilla Firefox 20.0.1

Hi guys,

I have an issue with Hikamarket in combination with Hikashop business.
When customers order a product with specific options its fine, when the only order one product.

But lets say, the customer orders more products with various options in it.
When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order.
So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant
exactly connect the product with the options!

Could you please have a look on this?
Thanks.

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 8 months ago [\#141734](#141734) by [Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")  Replied by *[Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141734 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Oh no, I just saw, that I even cant tell from the backend -&gt; orders which product belongs to which option...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY1NDI2LWhpa2FtYXJrZXQtcHJvZHVjdC1vcHRpb25zLWluLXJhbmRvbS1vcmRlcj90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#141735](#141735) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141735 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hi,

There is an option in HikaShop to "group options".
At this moment, the "option" won't be a product in the cart but a sub element of the main product.

Regards,

---

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

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 8 months ago [\#141738](#141738) by [Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")  Replied by *[Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141738 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hi Jerome,

thanks for your lightning fast support!
The option: Configuration -&gt;Cart-&gt; Group options with product is already set to yes.

May you have another idea?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY1NDI2LWhpa2FtYXJrZXQtcHJvZHVjdC1vcHRpb25zLWluLXJhbmRvbS1vcmRlcj90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#141771](#141771) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141771 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hi,

I am working on a view modification for that.

Regards,

---

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

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 8 months ago [\#141772](#141772) by [Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")  Replied by *[Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141772 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hey,

that would be great Jerome.
Because now I'am afraid that I cannot satisfly my costumers without that.

Do you have an idea how long it would take? So I can prepare myself and the costumers?
Its really an big issue for us.

Thank you Jermoe,
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODY1NDI2LWhpa2FtYXJrZXQtcHJvZHVjdC1vcHRpb25zLWluLXJhbmRvbS1vcmRlcj90bXBsPW1hcmtkb3du) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#141774](#141774) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141774 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hi,

In the file "components/com_hikamarket/view/ordermarket/view.html.php".
Replace : Code:

if(empty($order-&gt;customer)) { $userClass = hikamarket::get('shop.class.user'); $order-&gt;customer = $userClass-&gt;get($order-&gt;order_user_id); } $this-&gt;assignRef('order', $order);

By: Code:

if(empty($order-&gt;customer)) { $userClass = hikamarket::get('shop.class.user'); $order-&gt;customer = $userClass-&gt;get($order-&gt;order_user_id); } if(!empty($order-&gt;products)) { $options = false; $products = array(); foreach($order-&gt;products as &amp;$product) { if(!empty($product-&gt;order_product_option_parent_id)) { if(empty($products[$product-&gt;order_product_option_parent_id])) $products[$product-&gt;order_product_option_parent_id] = array(); if(empty($products[$product-&gt;order_product_option_parent_id]['options'])) $products[$product-&gt;order_product_option_parent_id]['options'] = array(); $products[$product-&gt;order_product_option_parent_id]['options'][] = &amp;$product; $options = true; } else { if(empty($products[$product-&gt;order_product_id])) $products[$product-&gt;order_product_id] = array(); $products[$product-&gt;order_product_id]['product'] = &amp;$product; } } unset($product); if($options) { $order-&gt;products = array(); foreach($products as &amp;$product) { if(!empty($product['product'])) $order-&gt;products[] = $product['product']; if(!empty($product['options'])) { foreach($product['options'] as &amp;$opt) { $order-&gt;products[] = $opt; } unset($opt); } } unset($product); } } $this-&gt;assignRef('order', $order);

In the file "components/com_hikamarket/views/ordermarket/tmpl/show_products.php".
Replace: Code:

foreach($this-&gt;order-&gt;products as $k =&gt; $product) { ?&gt; &lt;tr&gt; &lt;td class="hikamarket_order_item_name_value"&gt;

By: Code:

foreach($this-&gt;order-&gt;products as $k =&gt; $product) { $td_class = ''; if(!empty($product-&gt;order_product_option_parent_id)) $td_class = ' hikamarket_order_item_option'; ?&gt; &lt;tr&gt; &lt;td class="hikamarket_order_item_name_value&lt;?php echo $td_class; ?&gt;"&gt;

And you can add some CSS like : Code:

table.hikam_table td.hikamarket_order_item_option { padding-left: 10px; border-left: 2px solid; }

In order to see the product options.

These modifications will be in the next HikaMarket release.

Regards,

---

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

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

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

Less More

- Posts: 23
- Thank you received: 0
-
-

12 years 8 months ago [\#141779](#141779) by [Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")  Replied by *[Mikemike](/forum/user/30063-mikemike "View Mikemike's Profile")* on topic *[HikaMarket Product options in random order](/forum/19-hikamarket/865426-hikamarket-product-options-in-random-order#141779 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.4.22 -- Browser(s) name and version -- : Mozilla Firefox 20.0.1  Hi guys,  I have an issue with Hikamarket in combination with Hikashop business. When customers order a product with specific options its fine, when the only order one product.  But lets say, the customer orders more products with various options in it. When I go to Hikamarket and have a look on the order, all products and options display in kind of an random order. So I cannot tell which product belongs to which option. That is really an big issue here. I cannot deliver the right product if I cant exactly connect the product with the options!  Could you please have a look on this? Thanks.")*

Hey Jerome,

awesome! Now the products get sorted.
Would be cool, if the products get shown like in the cart on the homepage. (So you can identify them really as group)

But awesome, now I can at least identify the products and options!

-Super support -fast and what I needed!

Cheers,

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.233 seconds

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

[](#top)
