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

#   Add a "Continue shopping" to the cart module

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 2 months ago [\#60725](#60725) by [bmloho](/forum/user/2204-bmloho "View bmloho's Profile")  *[Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60725 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")* was created by *[bmloho](/forum/user/2204-bmloho "View bmloho's Profile")*

Nic,

Where do I add

&lt;div id="hikashop_add_to_cart_continue_div"&gt;
&lt;?php echo $this-&gt;cartClass-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,'','try{ window.top.document.getElementById(\'sbox-window\').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id="hikashop_add_to_cart_continue_button"'); ?&gt;

I can't seem to find the view or the module itself

Kind Regards

brad

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#60755](#60755) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60755 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

Hi,

The portion of code that you paste is for the popup when a product is added to the cart. It just close the popup.

What do you want to add exactly and where ?
A "continue shopping" button in the checkout page ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 2 months ago [\#60758](#60758) by [bmloho](/forum/user/2204-bmloho "View bmloho's Profile")  Replied by *[bmloho](/forum/user/2204-bmloho "View bmloho's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60758 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

I want to add it to the "HikaShop Cart Module" so that visitors can either continue shopping or proceed to checkout, via the module.

regards

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#60759](#60759) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60759 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

Hi,

So you can edit the view "product &#124; cart".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 2 months ago [\#60763](#60763) by [bmloho](/forum/user/2204-bmloho "View bmloho's Profile")  Replied by *[bmloho](/forum/user/2204-bmloho "View bmloho's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60763 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

At the moment the "HikaShop Cart Module" only has a "Proceed to checkout", I also want to add another button "Continue shopping" like at the very bottom of the register/checkout page.

I imagine that you pull the code from that page and put it in the "HikaShop Cart Module" html file, which I can't find.

Any idea where it is?

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#60765](#60765) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60765 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

Hi,

You can use this code (which is base on the "checkout &#124; step" view): Code:

$config =&amp; hikashop_config(); $continueShopping = $config-&gt;get('continue_shopping', ''); if(!empty($continueShopping)) { global $Itemid; $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } if(strpos($continueShopping,'Itemid') === false) { if(strpos($continueShopping,'index.php?') !== false) { $continueShopping .= $url_itemid; } } if(!preg_match('#^https?://#',$continueShopping)) $continueShopping = JURI::base().ltrim($continueShopping,'/'); echo $this-&gt;cart-&gt;displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this-&gt;params,JRoute::_($continueShopping),'window.location=\''.JRoute::_($continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); }

It would use the "Continue shopping button's URL" option value (System &gt; Configuration &gt; Checkout).
If you don't want to display this button in the checkout, you can remove the "echo $this-&gt;cart ..." line in the view "checkout &#124; step" or enter a default value here: Code:

$continueShopping = $config-&gt;get('continue_shopping', '/my_continue_shopping_page.html');

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

14 years 2 months ago [\#60766](#60766) by [bmloho](/forum/user/2204-bmloho "View bmloho's Profile")  Replied by *[bmloho](/forum/user/2204-bmloho "View bmloho's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60766 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

Thank you, but what file do I put that in to appear in the "HikaShop Cart Module" ?

Thanks

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

14 years 2 months ago [\#60767](#60767) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Add a "Continue shopping" to the cart module](/forum/4-how-to/60725-add-a-continue-shopping-to-the-cart-module#60767 "Nic,  Where do I add   cartClass-&gt;displayButton(JText::&#95;('CONTINUE&#95;SHOPPING'),'continue&#95;shopping',$this-&gt;params,'','try{ window.top.document.getElementById(&#92;'sbox-window&#92;').close(); }catch(err){ window.top.SqueezeBox.close(); } return false;','id=&quot;hikashop&#95;add&#95;to&#95;cart&#95;continue&#95;button&quot;'); ?&gt;  I can't seem to find the view or the module itself  Kind Regards  brad")*

> Jerome wrote: Hi,
>
> So you can edit the view "product \| cart".
>
> Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

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

[](#top)
