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

#   Product option linked to the right product

##

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

Less More

- Posts: 105
- Thank you received: 2
-
-

11 years 1 month ago [\#217004](#217004) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  *[Product option linked to the right product](/forum/35-orders-management/879803-product-option-linked-to-the-right-product#217004 "-- HikaShop version -- : Business 2.2.3 -- Browser(s) name and version -- : A  Hello, how can we know that an option added to a main product in the product page is linked to that product?  for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this: M1 - OA M2 - OB M3 - OB How do I know that option OA is &quot;linked&quot; to M1, (and not M2 for example?)")* was created by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")*

-- HikaShop version -- : Business 2.2.3
-- Browser(s) name and version -- : A

Hello,
how can we know that an option added to a main product in the product page is linked to that product?

for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this:
M1 - OA
M2 - OB
M3 - OB
How do I know that option OA is "linked" to M1, (and not M2 for example?)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTgwMy1wcm9kdWN0LW9wdGlvbi1saW5rZWQtdG8tdGhlLXJpZ2h0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

11 years 1 month ago [\#217023](#217023) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product option linked to the right product](/forum/35-orders-management/879803-product-option-linked-to-the-right-product#217023 "-- HikaShop version -- : Business 2.2.3 -- Browser(s) name and version -- : A  Hello, how can we know that an option added to a main product in the product page is linked to that product?  for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this: M1 - OA M2 - OB M3 - OB How do I know that option OA is &quot;linked&quot; to M1, (and not M2 for example?)")*

Hi,

The options are grouped with the product that you add to the cart together.
So you know that automatically.
That is unless you turned off the "group options with product" of the HikaShop configuration so that the options don't get grouped with the products ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 105
- Thank you received: 2
-
-

11 years 1 month ago [\#217064](#217064) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  Replied by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")* on topic *[Product option linked to the right product](/forum/35-orders-management/879803-product-option-linked-to-the-right-product#217064 "-- HikaShop version -- : Business 2.2.3 -- Browser(s) name and version -- : A  Hello, how can we know that an option added to a main product in the product page is linked to that product?  for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this: M1 - OA M2 - OB M3 - OB How do I know that option OA is &quot;linked&quot; to M1, (and not M2 for example?)")*

thanks. my question was maybe not clear enough.
I can clearly see the grouping. however what i try to know is another piece of code of my website can see it also: is there a variable (or some variables linked in a database row) that can be read from another function nof my website to see this grouping?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3OTgwMy1wcm9kdWN0LW9wdGlvbi1saW5rZWQtdG8tdGhlLXJpZ2h0LXByb2R1Y3Q/dG1wbD1tYXJrZG93bg==) 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: 86587
- Thank you received: 14325
-
-

11 years 1 month ago [\#217073](#217073) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product option linked to the right product](/forum/35-orders-management/879803-product-option-linked-to-the-right-product#217073 "-- HikaShop version -- : Business 2.2.3 -- Browser(s) name and version -- : A  Hello, how can we know that an option added to a main product in the product page is linked to that product?  for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this: M1 - OA M2 - OB M3 - OB How do I know that option OA is &quot;linked&quot; to M1, (and not M2 for example?)")*

Hi,

From a database structure perspective, here is my answer:
The product data of an order is stored in the table hikashop_order_product.
There, you can see the column order_product_option_parent_id
Each row of the table hikashop_order_product is a product in an order. And if there is something in that order_product_option_parent_id column, it means that the row is an option of another product and the value of that column is actually the id of that other product to which the current row is attached as an option.

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

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

Less More

- Posts: 105
- Thank you received: 2
-
-

11 years 1 month ago [\#217103](#217103) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  Replied by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")* on topic *[Product option linked to the right product](/forum/35-orders-management/879803-product-option-linked-to-the-right-product#217103 "-- HikaShop version -- : Business 2.2.3 -- Browser(s) name and version -- : A  Hello, how can we know that an option added to a main product in the product page is linked to that product?  for example, if I order in the same order several main products (M1, M2, M3) which may have several options (OA, OB) chosen in each individual product page like this: M1 - OA M2 - OB M3 - OB How do I know that option OA is &quot;linked&quot; to M1, (and not M2 for example?)")*

thanks a lot; exactly what I needed ![:)](/media/kunena/emoticons/3.png ":)")

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

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