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

#   How to list the serial's order number and attached product

##

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

Less More

- Posts: 5
- Thank you received: 1
-
-

4 years 8 months ago [\#340281](#340281) by [elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")  *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340281 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")* was created by *[elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")*

-- HikaSerial version -- : 4.0.1

We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle?
Thanks.

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

4 years 8 months ago [\#340287](#340287) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340287 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")*

Hello,

The table "order_product" is not part of the serial export for performance reasons.
But we can see to add a setting in the export window in order to enable the inclusion of that database table, which will allow you to access some elements such as the "product_id" or "product_code / product_name".
Since it require the modification of a core file (a view.html.php), it's not something which can be done using just view overrides (like it's possible if you want to select more columns in the available tables during the export).

Regards,

---

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

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

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

Less More

- Posts: 5
- Thank you received: 1
-
-

4 years 8 months ago [\#340289](#340289) by [elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")  Replied by *[elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")* on topic *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340289 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")*

Thanks for the quick answer. If you modify the setting, please let me know. Would there be a way to export then the table that unites order_product with serails, and then we can do the join separately on a different system?

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

4 years 8 months ago [\#340300](#340300) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340300 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")*

Hello,

The idea is to complete the export of serials with data coming from the "order_product" table, like you can have columns for the order id (or order number), it would allow you to have the order product name (or order product code).

Regards,

---

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

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

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

Less More

- Posts: 5
- Thank you received: 1
-
-

4 years 8 months ago [\#340302](#340302) by [elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")  Replied by *[elifaskha](/forum/user/63971-elifaskha "View elifaskha's Profile")* on topic *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340302 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")*

It would be something similar to this...
SELECT &#96;db_hikaserial_serial&#96;.&#96;serial_id&#96;,&#96;db_hikaserial_serial&#96;.&#96;serial_data&#96;, &#96;db_hikashop_product&#96;.&#96;product_name&#96;, &#96;db_hikaserial_serial&#96;.&#96;serial_order_product_id&#96;, &#96;db_hikashop_user&#96;.&#96;user_name&#96;, &#96;db_hikaserial_serial&#96;.&#96;serial_user_id&#96; FROM &#96;db_hikashop_product&#96; , &#96;db_hikaserial_serial&#96;, &#96;db_hikashop_order_product&#96;,&#96;db_hikashop_user&#96; where &#96;db_hikaserial_serial&#96;.&#96;serial_order_product_id&#96; = &#96;db_hikashop_order_product&#96;.&#96;order_product_id&#96; and &#96;db_hikashop_order_product&#96;.&#96;product_id&#96; = &#96;db_hikashop_product&#96;.&#96;product_id&#96; and &#96;db_hikaserial_serial&#96;.&#96;serial_user_id&#96; = &#96;db_hikashop_user&#96;.&#96;user_id&#96; order by &#96;db_hikashop_product&#96;.&#96;product_name&#96;, &#96;db_hikashop_user&#96;.&#96;user_name&#96; ;

That would give me the info I need. I can now get it from phpadmin, but I think it's a feature hikaserial should have...

Thanks.

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

4 years 8 months ago -  4 years 8 months ago [\#340337](#340337) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to list the serial's order number and attached product](/forum/17-serial-how-to/904147-how-to-list-the-serials-order-number-and-attached-product#340337 "-- HikaSerial version -- : 4.0.1  We are using hikaserial to sell raffle tickets for different raffles that we will have (50+ raffles). In the listing and in the export, it only says the order number, no the product that the serial is attached to. How can I get that in an exportable list so that we can differentiate the serials according to the product raffle? Thanks.")*

Hello,

We prefer using "INNER JOIN" (and "LEFT JOIN") for database performances. Code:

SELECT * FROM db_hikaserial_serial AS serial INNER JOIN db_hikaserial_pack AS pack ON serial.serial_pack_id = pack.pack_id LEFT JOIN db_hikashop_user AS user ON serial.serial_user_id = user.user_id LEFT JOIN db_hikashop_order AS shop_order ON serial.serial_order_id = shop_order.order_id LEFT JOIN db_hikashop_order_product AS shop_order_product ON serial.serial_order_product_id = shop_order_product.order_product_id AND shop_order_product.order_id = shop_order.order_id

Regards,

---

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

Last edit: 4 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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