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

#   Setting the number of product items per category

##

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

Less More

- Posts: 19
- Thank you received: 0
-
-

12 years 8 months ago [\#146145](#146145) by [Helveticus](/forum/user/20683-helveticus "View Helveticus's Profile")  *[Setting the number of product items per category](/forum/26-product-category-display/866257-setting-the-number-of-product-items-per-category#146145 "-- url of the page with the problem -- localhost -- HikaShop version -- : 2.2.3 -- Joomla version -- :2.5.17 -- PHP version -- : 5.3.13 -- Browser(s) name and version -- : FreFox 27.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Is it possible to restrict the number of product elements being shown in a HK products listing?  For instance, I created a &quot;HK Products listing by category&quot; module to show items grouped by category (img 1). Would it be possible to restrict the number of items to say 3 items at the most for each category and have an anchor baked in the category header to allow users to directly jump to the relevant category (img 2)?  TIA, MS  1. HK product listing setup  2. Product listing by category display")* was created by *[Helveticus](/forum/user/20683-helveticus "View Helveticus's Profile")*

-- url of the page with the problem -- localhost
-- HikaShop version -- : 2.2.3
-- Joomla version -- :2.5.17
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : FreFox 27.0.1
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi, Is it possible to restrict the number of product elements being shown in a HK products listing?

For instance, I created a "HK Products listing by category" module to show items grouped by category (img 1). Would it be possible to restrict the number of items to say 3 items at the most for each category and have an anchor baked in the category header to allow users to directly jump to the relevant category (img 2)?

TIA, MS

1. HK product listing setup

[ ![he4aeb73.jpg](/forum/attachment/15661) ](/forum/attachment/15661 "he4aeb73.jpg")

2. Product listing by category display

[ ![hcab171f.jpg](/forum/attachment/15662) ](/forum/attachment/15662 "hcab171f.jpg")

- [ ![he4aeb73.jpg](/forum/attachment/15661) ](/forum/attachment/15661 "he4aeb73.jpg") [ ](/forum/attachment/15661?download=1 "he4aeb73.jpg")
- [ ![hcab171f.jpg](/forum/attachment/15662) ](/forum/attachment/15662 "hcab171f.jpg") [ ](/forum/attachment/15662?download=1 "hcab171f.jpg")

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

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

Less More

- Posts: 19
- Thank you received: 0
-
-

12 years 8 months ago [\#146274](#146274) by [Helveticus](/forum/user/20683-helveticus "View Helveticus's Profile")  Replied by *[Helveticus](/forum/user/20683-helveticus "View Helveticus's Profile")* on topic *[Setting the number of product items per category](/forum/26-product-category-display/866257-setting-the-number-of-product-items-per-category#146274 "-- url of the page with the problem -- localhost -- HikaShop version -- : 2.2.3 -- Joomla version -- :2.5.17 -- PHP version -- : 5.3.13 -- Browser(s) name and version -- : FreFox 27.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Is it possible to restrict the number of product elements being shown in a HK products listing?  For instance, I created a &quot;HK Products listing by category&quot; module to show items grouped by category (img 1). Would it be possible to restrict the number of items to say 3 items at the most for each category and have an anchor baked in the category header to allow users to directly jump to the relevant category (img 2)?  TIA, MS  1. HK product listing setup  2. Product listing by category display")*

Any thoughts on whether this is possible? TIA

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 8 months ago [\#146286](#146286) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Setting the number of product items per category](/forum/26-product-category-display/866257-setting-the-number-of-product-items-per-category#146286 "-- url of the page with the problem -- localhost -- HikaShop version -- : 2.2.3 -- Joomla version -- :2.5.17 -- PHP version -- : 5.3.13 -- Browser(s) name and version -- : FreFox 27.0.1 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, Is it possible to restrict the number of product elements being shown in a HK products listing?  For instance, I created a &quot;HK Products listing by category&quot; module to show items grouped by category (img 1). Would it be possible to restrict the number of items to say 3 items at the most for each category and have an anchor baked in the category header to allow users to directly jump to the relevant category (img 2)?  TIA, MS  1. HK product listing setup  2. Product listing by category display")*

Hi,

That can be done by editing the view "product / listing", in the foreach "foreach($this-&gt;categories as $category) {" edit the content to add links on the category name.
The links could be dynamics, but you have to create a category listing menu before, and use this url + the category name to have working links.
It require some PHP knowledge.

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

[](#top)
