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

#   Display in Frontend counter for nb products sold ?

##

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

Less More

- Posts: 190
- Thank you received: 0
-
-

11 years 7 months ago [\#196783](#196783) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  *[Display in Frontend counter for nb products sold ?](/forum/35-orders-management/876077-display-in-frontend-counter-for-nb-products-sold#196783 "-- HikaShop version -- : 2.2  Hi, I would like to display in the frontend a counter with total nb products sold. ie. there's an offer and I would like to display how much are sold on the period. How could it be possible in a module ?  Thanks for ideas. Regards")* was created by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")*

-- HikaShop version -- : 2.2

Hi,
I would like to display in the frontend a counter with total nb products sold.
ie. there's an offer and I would like to display how much are sold on the period.
How could it be possible in a module ?

Thanks for ideas.
Regards

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 7 months ago [\#196789](#196789) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Display in Frontend counter for nb products sold ?](/forum/35-orders-management/876077-display-in-frontend-counter-for-nb-products-sold#196789 "-- HikaShop version -- : 2.2  Hi, I would like to display in the frontend a counter with total nb products sold. ie. there's an offer and I would like to display how much are sold on the period. How could it be possible in a module ?  Thanks for ideas. Regards")*

Hello,
Their is no option to do that, so you'll have to use some custom code which will require development skills.

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

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

Less More

- Posts: 190
- Thank you received: 0
-
-

11 years 7 months ago [\#196977](#196977) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  Replied by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")* on topic *[Display in Frontend counter for nb products sold ?](/forum/35-orders-management/876077-display-in-frontend-counter-for-nb-products-sold#196977 "-- HikaShop version -- : 2.2  Hi, I would like to display in the frontend a counter with total nb products sold. ie. there's an offer and I would like to display how much are sold on the period. How could it be possible in a module ?  Thanks for ideas. Regards")*

OK no problem.
Could you put me on the way to develop it ?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3NjA3Ny1kaXNwbGF5LWluLWZyb250ZW5kLWNvdW50ZXItZm9yLW5iLXByb2R1Y3RzLXNvbGQ/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 7 months ago [\#196983](#196983) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display in Frontend counter for nb products sold ?](/forum/35-orders-management/876077-display-in-frontend-counter-for-nb-products-sold#196983 "-- HikaShop version -- : 2.2  Hi, I would like to display in the frontend a counter with total nb products sold. ie. there's an offer and I would like to display how much are sold on the period. How could it be possible in a module ?  Thanks for ideas. Regards")*

Hi,

You can use such module in order to add your PHP code inside a module on your Joomla website:
[ extensions.joomla.org/extension/blank-module](http://extensions.joomla.org/extension/blank-module)
In it, do first a query on the hikashop_order table in order to get the order_id of all the orders confirmed in that period and then do a second query to sum the order_product_quantity field of the hikashop_order_product table with the order_id in the list of the order_ids you got from the first query and you'll get your total number that you can just echo.

The following user(s) said Thank You: [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")

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

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