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

#   How to add custom position in Hikashop

##

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

Less More

- Posts: 159
- Thank you received: 0
-
-

9 years 1 week ago [\#282421](#282421) by [Shafan Hameed](/forum/user/26922-shafan-hameed "View Shafan Hameed's Profile")  *[How to add custom position in Hikashop](/forum/26-product-category-display/892748-how-to-add-custom-position-in-hikashop#282421 "Hi i want to add a cusomt mobule position in Hikashop product listing&#95;div file. how to do that ?  i tried to add this line of module position in the file but it crashes the site and the site viewable countModules('InnerSlider')): ?&gt;    how to add this position in the file so the module (if assigned) will be show in the top of Product listing page only.  if i add this position in the index.php file then it works as i want. but the issue is its also showing the module on the product pages related to that category although setting of the module (mobule assignment) is limited to the selected pages only and i have only selected the page i want to show the module.")* was created by *[Shafan Hameed](/forum/user/26922-shafan-hameed "View Shafan Hameed's Profile")*

Hi i want to add a cusomt mobule position in Hikashop product listing_div file. how to do that ?

i tried to add this line of module position in the file but it crashes the site and the site viewable
&lt;?php if ($this-&gt;countModules('InnerSlider')): ?&gt;
&lt;jdoc:include type="modules" name="InnerSlider" style="xhtml" /&gt;
&lt;?php endif; ?&gt;

how to add this position in the file so the module (if assigned) will be show in the top of Product listing page only.

if i add this position in the index.php file then it works as i want. but the issue is its also showing the module on the product pages related to that category although setting of the module (mobule assignment) is limited to the selected pages only and i have only selected the page i want to show the module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTI3NDgtaG93LXRvLWFkZC1jdXN0b20tcG9zaXRpb24taW4taGlrYXNob3A/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: 86584
- Thank you received: 14325
-
-

9 years 1 week ago [\#282425](#282425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add custom position in Hikashop](/forum/26-product-category-display/892748-how-to-add-custom-position-in-hikashop#282425 "Hi i want to add a cusomt mobule position in Hikashop product listing&#95;div file. how to do that ?  i tried to add this line of module position in the file but it crashes the site and the site viewable countModules('InnerSlider')): ?&gt;    how to add this position in the file so the module (if assigned) will be show in the top of Product listing page only.  if i add this position in the index.php file then it works as i want. but the issue is its also showing the module on the product pages related to that category although setting of the module (mobule assignment) is limited to the selected pages only and i have only selected the page i want to show the module.")*

Hi,

You can't add template positions inside component views in Joomla.
Template positions can only be added in templates.

What you usually in these cases is either:
- like the HikaShop modules, the module itself has display options to display or not based on the current page type
- you use an extension like Advanced modules manager which can add such display option for any type of module
- you use an extension like Modules anywhere and add corresponding tag in the listing.php view file
The third option is the cheapest as the extension is free and it's not difficult to do either.

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

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