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

#   A 'Continue shopping button' in the cart module

##

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

Less More

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

13 years 3 months ago -  13 years 3 months ago [\#116423](#116423) by [Pistol](/forum/user/25667-pistol "View Pistol's Profile")  *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#116423 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")* was created by *[Pistol](/forum/user/25667-pistol "View Pistol's Profile")*

Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module.
An extra button 'Continue Shopping' like in the checkout page.
I found this topic on this forum, but I don't know where to place it.

[ link](http://www.hikashop.com/en/forum/4-how-to/60725-add-a-qcontinue-shoppingq-to-the-cart-module.html)

Last edit: 13 years 3 months ago by [Pistol](/forum/user/25667-pistol "View Pistol's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 months ago [\#116432](#116432) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#116432 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")*

Hi,

Like Jerome said, you'll have to place it through the **cart** file of your **product** view of your **front-end template**  through "*Hikashop-&gt;Display-&gt;Views*"

The following user(s) said Thank You: [Pistol](/forum/user/25667-pistol "View Pistol's Profile")

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

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

Less More

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

13 years 3 months ago [\#116442](#116442) by [Pistol](/forum/user/25667-pistol "View Pistol's Profile")  Replied by *[Pistol](/forum/user/25667-pistol "View Pistol's Profile")* on topic *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#116442 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")*

If I paste following code:
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"');

at the end of product- cart
All I get is a white page and I can't see my site...

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

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

Less More

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

13 years 3 months ago [\#116444](#116444) by [Pistol](/forum/user/25667-pistol "View Pistol's Profile")  Replied by *[Pistol](/forum/user/25667-pistol "View Pistol's Profile")* on topic *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#116444 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")*

Oooooh, I've missed an accolade } or how do you call this in English!!!
Great it works!!!!

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

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

Less More

- Posts: 45
- Thank you received: 1
-
-

13 years 1 month ago -  13 years 1 month ago [\#121969](#121969) by [rbeelen1](/forum/user/26865-rbeelen1 "View rbeelen1's Profile")  Replied by *[rbeelen1](/forum/user/26865-rbeelen1 "View rbeelen1's Profile")* on topic *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#121969 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")*

I copied the code in the other post in my product-cart. However, I'm not an expert in these codes.
So I copied the code directly after the last line before } exit}
Please see below. Is this the correct way to do? If so, nothing has been changed, no continue shopping button was created. What is it that I do wrong?

Regards, Code:

&lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="task" value="updatecart"/&gt; &lt;/form&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ if(!headers_sent()){ header('Content-Type: text/css; charset=utf-8'); $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"'); } exit; }

Last edit: 13 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: code tag makes nice code blocks

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

13 years 1 month ago -  13 years 1 month ago [\#122045](#122045) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[A 'Continue shopping button' in the cart module](/forum/2-general-talk-about-hikashop/85891-a-continue-shopping-button-in-the-cart-module#122045 "Is it possible to put an extra button (next or under 'Proceed to checkout') in the cart module. An extra button 'Continue Shopping' like in the checkout page. I found this topic on this forum, but I don't know where to place it.")*

Hi,

You have to past the code where you want to display the button in the page.
And in your case, I guess that you want to display it under the cart list. Code:

$this-&gt;cart_product_price=false; ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;!-- PASTE THE BLOCK FROM THE OTHER POST RIGHT HERE --&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_quantity',1)){ ?&gt; &lt;noscript&gt; &lt;input type="submit" class="btn button" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt; &lt;/noscript&gt; &lt;?php }

And please, use the code from this post: [ www.hikashop.com/en/forum/4-how-to/60725...the-cart-module.html](http://www.hikashop.com/en/forum/4-how-to/60725-add-a-qcontinue-shoppingq-to-the-cart-module.html)

Regards,

---

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

Last edit: 13 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

[](#top)
