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

#   Вывод количества покупок товара

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

3 years 1 month ago [\#356020](#356020) by [DenisM](/forum/user/58114-denism "View DenisM's Profile")  *[Вывод количества покупок товара](/forum/2-general-talk-about-hikashop/907166-vyvod-kolicestva-pokupok-tovara#356020 "Здравствуйте! Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах? Спасибо!")* was created by *[DenisM](/forum/user/58114-denism "View DenisM's Profile")*

Здравствуйте!
Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах?
Спасибо!

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

3 years 1 month ago [\#356025](#356025) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Вывод количества покупок товара](/forum/2-general-talk-about-hikashop/907166-vyvod-kolicestva-pokupok-tovara#356025 "Здравствуйте! Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах? Спасибо!")*

Hi,

If I understand correctly, you want to display the number of sales on the product details page on the frontend, is that correct ?
You can do so by editing the file product / show_default.php (which is the layout for the product details page on the frontend) via the menu Display&gt;Views and add such code there: Code:

&lt;?php echo $this-&gt;element-&gt;product_sales; ?&gt;

The following user(s) said Thank You: [DenisM](/forum/user/58114-denism "View DenisM's Profile")

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

3 years 1 month ago [\#356032](#356032) by [DenisM](/forum/user/58114-denism "View DenisM's Profile")  Replied by *[DenisM](/forum/user/58114-denism "View DenisM's Profile")* on topic *[Вывод количества покупок товара](/forum/2-general-talk-about-hikashop/907166-vyvod-kolicestva-pokupok-tovara#356032 "Здравствуйте! Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах? Спасибо!")*

Да, Вы всё правильно поняли.
Спасибо получилось на Joomla 4.
С сайтом на Joomla 3 пока не получилось.
Если не сложно подскажите, пожалуйста, как дать название этой строчке. (Я пока что не очень понимаю PHP)

Yes, you understood everything correctly.
Thanks, it worked on Joomla 4.
It hasn't worked out yet with a Joomla 3 site.
If it’s not difficult, please tell me how to name this line. (I don't really understand PHP yet)

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

3 years 1 month ago [\#356033](#356033) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Вывод количества покупок товара](/forum/2-general-talk-about-hikashop/907166-vyvod-kolicestva-pokupok-tovara#356033 "Здравствуйте! Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах? Спасибо!")*

Hi,

The same modification will work on Joomla 3, Joomla 4 and Joomla 5.
If it doesn't work then either:
- you placed the code in a place which is not displayed by HikaShop and thus it's not displayed on the frontend. Moving the code elsewhere in the view file would be the solution.
- you placed the code in an invalid place of the code, which led to an error displayed on the frontend. Moving the code elsewhere in the view file would be the solution.
- you made the view override for a template which you're not using on your frontend. Making the change for the correct template would be the solution.
- you got an error when saving the modification due to a firewall on your website or a security extension / module. The simplest would be to make the override manually via FTP: [ www.joomlart.com/tutorials/joomla-4-tuto...omponents-and-layout](https://www.joomlart.com/tutorials/joomla-4-tutorials-how-to-create-override-for-modules-components-and-layout)

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

3 years 1 month ago [\#356057](#356057) by [DenisM](/forum/user/58114-denism "View DenisM's Profile")  Replied by *[DenisM](/forum/user/58114-denism "View DenisM's Profile")* on topic *[Вывод количества покупок товара](/forum/2-general-talk-about-hikashop/907166-vyvod-kolicestva-pokupok-tovara#356057 "Здравствуйте! Ищу плагин, который выводит количество покупок данного товара в карточке товара. В стандартных инструментах такого не нашел. Может быть кто-то встречал в сторонних плагинах? Спасибо!")*

Спасибо за помощь!

Thanks for the help!

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

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