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

#   Get all products with variants

##

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

Less More

- Posts: 58
- Thank you received: 0
-
-

10 years 8 months ago [\#230933](#230933) by [iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")  *[Get all products with variants](/forum/31-development/882521-get-all-products-with-variants#230933 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Chrome 41.0.2272.118  Hi,  Wondering if there is a script or a sql query to get all products with or without variants?  I want to get a list of all the products and associated variants with the product.  Would be nice if the product had multiple variants to list them beside each other: .e.g Product ID, Product Name, Variant 1, Variant 2  Dummy text: 1, T Shirt (main product) 2, T Shirt, Small, Black (Variant) 3, T Shirt, Medium, Black (Variant) 4, T Shirt, Large, Black (Variant) 5, T Shirt, Small, Blue (Variant) 6, T Shirt, Medium, Blue (Variant) 7, T Shirt, Large, Blue (Variant)  etc  Thanks")* was created by *[iconvisual](/forum/user/30593-iconvisual "View iconvisual's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : Chrome 41.0.2272.118

Hi,

Wondering if there is a script or a sql query to get all products with or without variants?

I want to get a list of all the products and associated variants with the product.

Would be nice if the product had multiple variants to list them beside each other:
.e.g
Product ID, Product Name, Variant 1, Variant 2

Dummy text:
1, T Shirt (main product)
2, T Shirt, Small, Black (Variant)
3, T Shirt, Medium, Black (Variant)
4, T Shirt, Large, Black (Variant)
5, T Shirt, Small, Blue (Variant)
6, T Shirt, Medium, Blue (Variant)
7, T Shirt, Large, Blue (Variant)

etc

Thanks

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

Less More

- Posts: 86541
- Thank you received: 14304
-
-

10 years 8 months ago [\#230935](#230935) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Get all products with variants](/forum/31-development/882521-get-all-products-with-variants#230935 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Chrome 41.0.2272.118  Hi,  Wondering if there is a script or a sql query to get all products with or without variants?  I want to get a list of all the products and associated variants with the product.  Would be nice if the product had multiple variants to list them beside each other: .e.g Product ID, Product Name, Variant 1, Variant 2  Dummy text: 1, T Shirt (main product) 2, T Shirt, Small, Black (Variant) 3, T Shirt, Medium, Black (Variant) 4, T Shirt, Large, Black (Variant) 5, T Shirt, Small, Blue (Variant) 6, T Shirt, Medium, Blue (Variant) 7, T Shirt, Large, Blue (Variant)  etc  Thanks")*

Hi,

So you want one line for the main product and then one line for each variant ?*
In that case, just click on the "export" button of the products listing and you'll get jsut that.

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

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