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

#   Same product names get put together in result

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#160069](#160069) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  *[Same product names get put together in result](/forum/36-reports-statistics/868975-same-product-names-get-put-together-in-result#160069 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : Firefox  Hi,  Facing an problem when visiting my report page. (See attachment for the options i selected) The report i made shows how many times an product has been sold.  It seems that the system isnt checking the id's of the products and makes an result for every id. Instead i think the systems makes an result for every product name. Cause i have 2 products with the same name, in the report page they get put together and show as one result.  You can test it yourself by making 2 products and give them the exact same name the only difference is to change the alias so you dont get an error. Then make an order and see what happens ;)  Is there any solution to this problem?  Dear regards,  Fontijn")* was created by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.3.18
-- Browser(s) name and version -- : Firefox

Hi,

Facing an problem when visiting my report page. (See attachment for the options i selected)
The report i made shows how many times an product has been sold.

It seems that the system isnt checking the id's of the products and makes an result for every id. Instead i think the systems makes an result for every product name.
Cause i have 2 products with the same name, in the report page they get put together and show as one result.

You can test it yourself by making 2 products and give them the exact same name the only difference is to change the alias so you dont get an error. Then make an order and see what happens ![;)](/media/kunena/emoticons/24.png ";)")

Is there any solution to this problem?

Dear regards,

Fontijn

- [ ![habea355.jpg](/forum/attachment/17873) ](/forum/attachment/17873 "habea355.jpg") [ ](/forum/attachment/17873?download=1 "habea355.jpg")

Last edit: 12 years 5 months ago by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile").

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#160405](#160405) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  Replied by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")* on topic *[Same product names get put together in result](/forum/36-reports-statistics/868975-same-product-names-get-put-together-in-result#160405 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : Firefox  Hi,  Facing an problem when visiting my report page. (See attachment for the options i selected) The report i made shows how many times an product has been sold.  It seems that the system isnt checking the id's of the products and makes an result for every id. Instead i think the systems makes an result for every product name. Cause i have 2 products with the same name, in the report page they get put together and show as one result.  You can test it yourself by making 2 products and give them the exact same name the only difference is to change the alias so you dont get an error. Then make an order and see what happens ;)  Is there any solution to this problem?  Dear regards,  Fontijn")*

Solved!

Administrator\components\com_hikashop\classes\widget.php Line 1634 :
Code:

.$leftjoin.' '.$filters.' GROUP BY prod.order_product_name ORDER BY Total '.$order.' '.$limit;

Change to :
Code:

.$leftjoin.' '.$filters.' GROUP BY prod.product_id ORDER BY Total '.$order.' '.$limit;

Last edit: 12 years 5 months ago by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile").

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

12 years 5 months ago [\#160426](#160426) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same product names get put together in result](/forum/36-reports-statistics/868975-same-product-names-get-put-together-in-result#160426 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3.18 -- Browser(s) name and version -- : Firefox  Hi,  Facing an problem when visiting my report page. (See attachment for the options i selected) The report i made shows how many times an product has been sold.  It seems that the system isnt checking the id's of the products and makes an result for every id. Instead i think the systems makes an result for every product name. Cause i have 2 products with the same name, in the report page they get put together and show as one result.  You can test it yourself by making 2 products and give them the exact same name the only difference is to change the alias so you dont get an error. Then make an order and see what happens ;)  Is there any solution to this problem?  Dear regards,  Fontijn")*

Hi,

Thanks, we will add your fix in HikaShop.

Regards,

---

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

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

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