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

#   continue shopping button

##

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

Less More

- Posts: 222
- Thank you received: 1
-
-

11 years 2 months ago [\#212990](#212990) by [Vero](/forum/user/5108-vero "View Vero's Profile")  *[continue shopping button](/forum/27-checkout/879044-continue-shopping-button#212990 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest  Hi,  I need, that continue shopping button returns two urls back, because one url back is product page and two urls back is product listing page. I need to return to product listing page. I have placed in step.php this code (it returns to product page):  It works perfect, but it is not that I need. Please, help me to make changes in this code to get what I need.  Thanks in advance, Vero")* was created by *[Vero](/forum/user/5108-vero "View Vero's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : latest

Hi,

I need, that continue shopping button returns two urls back, because one url back is product page and two urls back is **product listing** page. I need to return to product listing page. I have placed in step.php this code (it returns to product page): Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,$_SESSION['previous_url'],'window.location=\''.$_SESSION['previous_url'].'\';return false;','id="hikashop_checkout_shopping_button"');

It works perfect, but it is not that I need. Please, help me to make changes in this code to get what I need.

Thanks in advance,
Vero

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTA0NC1jb250aW51ZS1zaG9wcGluZy1idXR0b24/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 2 months ago [\#212998](#212998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[continue shopping button](/forum/27-checkout/879044-continue-shopping-button#212998 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest  Hi,  I need, that continue shopping button returns two urls back, because one url back is product page and two urls back is product listing page. I need to return to product listing page. I have placed in step.php this code (it returns to product page):  It works perfect, but it is not that I need. Please, help me to make changes in this code to get what I need.  Thanks in advance, Vero")*

Hi,

There is no need to change or add any code then.
Remove your change and just enter the URL of your products listing in the "Continue shopping button's URL" setting of the configuration.

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

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

Less More

- Posts: 222
- Thank you received: 1
-
-

11 years 2 months ago -  11 years 2 months ago [\#213069](#213069) by [Vero](/forum/user/5108-vero "View Vero's Profile")  Replied by *[Vero](/forum/user/5108-vero "View Vero's Profile")* on topic *[continue shopping button](/forum/27-checkout/879044-continue-shopping-button#213069 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest  Hi,  I need, that continue shopping button returns two urls back, because one url back is product page and two urls back is product listing page. I need to return to product listing page. I have placed in step.php this code (it returns to product page):  It works perfect, but it is not that I need. Please, help me to make changes in this code to get what I need.  Thanks in advance, Vero")*

Hi Nicolas,
It seems you do not understand me. I do not have a products listing page with all the products (what link than should I place?). I have many specific categories for their own customer with their own products listing page. Customer usually buys more products from the same category. Therefore, he must return to the same category, if he decides to buy more after viewing his cart.

Last edit: 11 years 2 months ago by [Vero](/forum/user/5108-vero "View Vero's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3OTA0NC1jb250aW51ZS1zaG9wcGluZy1idXR0b24/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 2 months ago [\#213077](#213077) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[continue shopping button](/forum/27-checkout/879044-continue-shopping-button#213077 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest  Hi,  I need, that continue shopping button returns two urls back, because one url back is product page and two urls back is product listing page. I need to return to product listing page. I have placed in step.php this code (it returns to product page):  It works perfect, but it is not that I need. Please, help me to make changes in this code to get what I need.  Thanks in advance, Vero")*

Hi,

There is no system to know the URL of the last category listing page the customer was on before searching for the products and the purchasing them, and then going to the checkout.
It could potentially be added with custom coding by storing the URLs in the session on the listings and then using it for the button on the checkout.
I guess you could try to add such code in the listing file of the products view: Code:

$_SESSION['previous_url'] = hikashop_currentUrl();

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

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