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

#   How to control next and previous product button

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 9 months ago [\#187917](#187917) by [PKP](/forum/user/25398-pkp "View PKP's Profile")  *[How to control next and previous product button](/forum/26-product-category-display/874472-how-to-control-next-and-previous-product-button#187917 "-- url of the page with the problem -- :   www.maple-crafts.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.10  Hi,  Could you please tell me how to control next and previous product button on product detail page?  Well, it always go to top of the page after clicking those buttons. Now I want to make it stop at some point of the page. But I don't know where the links are. I don't know what file I can edit.  I know I have to set name or id for a table and put on &quot;#tablename&quot; after the links.  please help  Thank you very much, PKP")* was created by *[PKP](/forum/user/25398-pkp "View PKP's Profile")*

-- url of the page with the problem -- : [ www.maple-crafts.com](http://www.maple-crafts.com)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.10

Hi,

Could you please tell me how to control next and previous product button on product detail page?

Well, it always go to top of the page after clicking those buttons.
Now I want to make it stop at some point of the page.
But I don't know where the links are. I don't know what file I can edit.

I know I have to set name or id for a table and put on "#tablename" after the links.

please help

Thank you very much,
PKP

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

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

11 years 9 months ago [\#187927](#187927) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to control next and previous product button](/forum/26-product-category-display/874472-how-to-control-next-and-previous-product-button#187927 "-- url of the page with the problem -- :   www.maple-crafts.com  -- HikaShop version -- : 2.2.2 -- Joomla version -- : 2.5.10  Hi,  Could you please tell me how to control next and previous product button on product detail page?  Well, it always go to top of the page after clicking those buttons. Now I want to make it stop at some point of the page. But I don't know where the links are. I don't know what file I can edit.  I know I have to set name or id for a table and put on &quot;#tablename&quot; after the links.  please help  Thank you very much, PKP")*

Hi,

The view to edit for your case is "product / show". And add the anchor in the following code: Code:

if(!empty($this-&gt;links-&gt;previous)) echo "&lt;a title='".JText :: _('PREVIOUS_PRODUCT')."' href='".$this-&gt;links-&gt;previous."#here'&gt;&lt;span class='hikashop_previous_product'&gt;&lt;/span&gt;&lt;/a&gt;"; if(!empty($this-&gt;links-&gt;next)) echo "&lt;a title='".JText :: _('NEXT_PRODUCT')."' href='".$this-&gt;links-&gt;next."#here'&gt;&lt;span class='hikashop_next_product'&gt;&lt;/span&gt;&lt;/a&gt;";

The following user(s) said Thank You: [PKP](/forum/user/25398-pkp "View PKP's Profile")

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

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