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

#   view cart button on a mini cart module

##

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#83316](#83316) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#83316 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")* was created by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")*

Hi guys!

I would like to put on my hikashop minicart a button "view cart" which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:

[ demo.smartaddons.com/#sj-minicart-pro](http://demo.smartaddons.com/#sj-minicart-pro)

Will you please help me how to do that? Waiting for your reply. Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#83416](#83416) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#83416 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Still waiting for reply. Hope to get help from you soon....

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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 10 months ago [\#83568](#83568) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#83568 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hi,

> The HikaShop team wish you happy holidays - The support will be delayed until January. Thank you for bearing with us in the mean time..

You have to edit the "product &#124; cart" view and add a popup button which would point to: hikashop_completeLink('cart', true) (which would be: "index.php?option=com_hikashop&amp;ctrl=cart&amp;tmpl=component").

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 10 months ago [\#83651](#83651) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#83651 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

I couldn't get it work so would you please check the code. I am guessing that my mistake is on the link?:

&lt;script type="text/javascript"&gt;
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=200,width=300,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
&lt;/script&gt;
&lt;a href="JavaScript:newPopup('hikashop_index.php?option=com_hikashop&amp;ctrl=cart&amp;tmpl=component('cart', true)');"&gt;View cart&lt;/a&gt;

Thanks a lot!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 9 months ago [\#83950](#83950) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#83950 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Still waiting for your help. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 9 months ago [\#84155](#84155) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#84155 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

I also tried to get it work first as a simple link by using on the view "product &#124; cart" this next code:
&lt;a href="&lt;?php echo hikashop_completeLink('cart',true);?&gt;" &gt;View cart&lt;/a&gt;

but when I open View cart link it shows me source code of the page. This is the outcome [ smartshop-ks.com/jo/index.php/bukuri/cart/tmpl-component](http://smartshop-ks.com/jo/index.php/bukuri/cart/tmpl-component)

Will you please help me with this since I've tried everything and I can't get it work. Here is my website [ smartshop-ks.com/jo/](http://smartshop-ks.com/jo/)

As I pointed on the message above I am trying to get something like this demo.smartaddons.com/#sj-minicart-pro --&gt; when you add a product to your cart you can then view the cart by pointing your cart text.

Hope to hear from you soon.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86321
- Thank you received: 14279
-
-

13 years 9 months ago [\#84241](#84241) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#84241 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hi,

Note that each time you reply, it goes back at the top of the queue in our ticket system, so you actually have to wait longer for our reply.

I think that the code should be like that:
&lt;script type="text/javascript"&gt;
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=200,width=300,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
&lt;/script&gt;
&lt;a href="JavaScript:newPopup('&lt;?php echo hikashop_completeLink('cart',true);?&gt;');"&gt;View cart&lt;/a&gt;

Did you try like that ? Does it work ? If you still have the same issue with the code of the cart being displayed instead of the cart itself in the popup, I would recommend to make sure that your template's component.php file is not the one adding the pre html tags around the html of the cart.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 9 months ago [\#84256](#84256) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#84256 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Thanks a lot for your help but it still isn't working. I tried to look what can I do on my template's component.php file but could not figure out what to do so that it would not add the pre html tags around the html of the cart.

Did you have any similar case before and solve it? Would you please share the ticket link if that is the case?

Here is my template's component.php code:

---

&lt;?php
/**
* @package Joomla.Site
* @subpackage Templates.beez_20
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;
$doc = JFactory::getDocument();
$color = $this-&gt;params-&gt;get('templatecolor');
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/system/css/system.css');
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/template.css', $type = 'text/css', $media = 'screen,projection');
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/position.css', $type = 'text/css', $media = 'screen,projection');
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/layout.css', $type = 'text/css', $media = 'screen,projection');
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/print.css', $type = 'text/css', $media = 'print');
$files = JHtml::_('stylesheet', 'templates/'.$this-&gt;template.'/css/general.css', null, false, true);
if ($files):
if (!is_array($files)):
$files = array($files);
endif;
foreach($files as $file):
$doc-&gt;addStyleSheet($file);
endforeach;
endif;

$doc-&gt;addStyleSheet('templates/'.$this-&gt;template.'/css/'.htmlspecialchars($color).'.css');
if ($this-&gt;direction == 'rtl') {
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/template_rtl.css');
if (file_exists(JPATH_SITE . '/templates/' . $this-&gt;template . '/css/' . $color . '_rtl.css')) {
$doc-&gt;addStyleSheet($this-&gt;baseurl.'/templates/'.$this-&gt;template.'/css/'.htmlspecialchars($color).'_rtl.css');
}
}
?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)"&gt;
&lt;html xmlns="[ www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)" xml:lang="&lt;?php echo $this-&gt;language; ?&gt;" lang="&lt;?php echo $this-&gt;language; ?&gt;" dir="&lt;?php echo $this-&gt;direction; ?&gt;"&gt;
&lt;head&gt;
&lt;jdoc:include type="head" /&gt;

&lt;!--[if lte IE 6]&gt;
&lt;link href="&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template; ?&gt;/css/ieonly.css" rel="stylesheet" type="text/css" /&gt;
&lt;![endif]--&gt;
&lt;/head&gt;
&lt;body class="contentpane"&gt;
&lt;div id="all"&gt;
&lt;div id="main"&gt;
&lt;jdoc:include type="message" /&gt;
&lt;jdoc:include type="component" /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

---

I didn't until now had this kind of problem with this template and other components.

/Mirlinda

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86321
- Thank you received: 14279
-
-

13 years 9 months ago [\#85186](#85186) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#85186 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

I checked the code of the component.php file of your template but it's fine.
I must come from something else on your website then.
I've never seen such issue so I can only guess that it comes from a very specific extension on your website which not a lot of people uses.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 9 months ago [\#85251](#85251) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#85251 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Thank you for your replay.
I'll try to deactivate my extensions one by one and see if it works. I have only few extensions and they are very common ones so I am still wondering why is this problem only with Hikashop. Will you please let me know if you find any solution for this as this is quite important part of my website.

/Mirlinda

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98032](#98032) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98032 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hello!

I am still having the same problem even when deactivating most of others modules or plugins.
Do you have any alternative solution for me to get it work the way I wanted?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98033](#98033) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98033 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

I was wondering why link hikashop_completeLink('checkout',true); is working without any problem. When I add this to "product &#124; cart" view it is working perfectly:
&lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('checkout',true); ?&gt;"&gt; Testing &lt;/a&gt;

as soon as I change link to href="&lt;?php echo hikashop_completeLink('cart',true); ?&gt;"&gt; it is only showing source code of the view.

So if the problem as suspected would be in any module than I would have the same problem with checkout view as well.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98045](#98045) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98045 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

I also tried:

&lt;a title="&lt;?php echo JText::_('SHOW_CART');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('cart&amp;task=showcart',true); ?&gt;"&gt;
Show Cart
&lt;/a&gt;

this is working BUT after it opens the modal window with the cart on it, it also opens printing window. I don't want printing window to be showed to the customer.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98046](#98046) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98046 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Is there maybe something wrong with my product / cart.php view? Will you please check out the code?

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.0.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;&lt;?php
global $Itemid;
$Itemid = '&amp;Itemid='.$Itemid;
$this-&gt;setLayout('listing_price');
$this-&gt;params-&gt;set('show_quantity_field', 0);
$desc = $this-&gt;params-&gt;get('msg');
$cart_type = $this-&gt;params-&gt;get('cart_type','cart');
if($cart_type == 'wishlist'){
$convertText = JText::_('WISHLIST_TO_CART');
$displayText = JText::_('DISPLAY_THE_WISHLIST');
$displayAllText = JText::_('DISPLAY_THE_WISHLISTS');
$emptyText = JText::_('WISHLIST_EMPTY');
}else{
$convertText = JText::_('CART_TO_WISHLIST');
$displayText = JText::_('DISPLAY_THE_CART');
$displayAllText = JText::_('DISPLAY_THE_CARTS');
$emptyText = JText::_('CART_EMPTY');
}
if(empty($desc) &amp;&amp; $desc != '0'){
$this-&gt;params-&gt;set('msg',$emptyText);
}
if(!headers_sent()){
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
}
$cart_type=$this-&gt;params-&gt;get('cart_type','cart');
if($this-&gt;params-&gt;get('from','no') == 'no'){
$this-&gt;params-&gt;set('from',JRequest::getString('from','display'));
}
if(empty($this-&gt;rows)){
$desc = trim($this-&gt;params-&gt;get('msg'));
if(!empty($desc) &#124;&#124; $desc == '0'){
echo $this-&gt;notice_html; ?&gt;
&lt;div id="hikashop_cart" class="hikashop_cart"&gt;
&lt;?php echo $desc; ?&gt;

&lt;/div&gt;
&lt;div class="clear_both"&gt;&lt;/div&gt;
&lt;?php
}
}else{ ?&gt;
&lt;div id="hikashop_cart" class="hikashop_cart"&gt;
&lt;?php
if($this-&gt;config-&gt;get('print_cart',0) &amp;&amp; JRequest::getVar('tmpl','')!='component' &amp;&amp; $cart_type != 'wishlist'){ ?&gt;
&lt;div class="hikashop_checkout_cart_print_link"&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('checkout&amp;task=printcart',true); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png" alt="&lt;?php echo JText::_('HIKA_PRINT');?&gt;"/&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php
}
else if($this-&gt;params-&gt;get('from','display') != 'module'){
echo '&lt;div class="hikashop_product_cart_links"&gt;';
echo '&lt;div class="hikashop_product_cart_show_carts_link"&gt;';
echo $this-&gt;cart-&gt;displayButton($displayAllText,'cart',$this-&gt;params,hikashop_completeLink('cart&amp;task=showcarts&amp;cart_type='.$cart_type.$Itemid),'');
echo '&lt;/div&gt;';
?&gt;
&lt;div class="hikashop_product_cart_mail_link"&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_EMAIL');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('product&amp;task=sendcart',true); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;go.png" alt="&lt;?php echo JText::_('HIKA_EMAIL');?&gt;"/&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;div class="hikashop_product_cart_print_link"&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('product&amp;task=printcart',true); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png" alt="&lt;?php echo JText::_('HIKA_PRINT');?&gt;"/&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php
echo '&lt;/div&gt;&lt;div class="clear_both"&gt;&lt;/div&gt;';
}

echo $this-&gt;notice_html;
$row_count = 1;
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
}
if($this-&gt;params-&gt;get('small_cart')){
$this-&gt;row=$this-&gt;total;
if($this-&gt;params-&gt;get('show_cart_quantity',1)){
$qty = 0;
$group = $this-&gt;config-&gt;get('group_options',0);
foreach($this-&gt;rows as $i =&gt; $row){
if(empty($row-&gt;cart_product_quantity) &amp;&amp; $cart_type != 'wishlist') continue;
if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue;
$qty+=$row-&gt;cart_product_quantity;
}
$text = JText::sprintf('X_ITEMS_FOR_X',$qty,$this-&gt;loadTemplate());
}else{
$text = JText::sprintf('TOTAL_IN_CART_X',$this-&gt;loadTemplate());
} ?&gt;
&lt;a class="hikashop_small_cart_checkout_link" href="&lt;?php echo hikashop_completeLink('checkout'.$url_itemid); ?&gt;"&gt;
&lt;span class="hikashop_small_cart_total_title"&gt;&lt;?php echo $text; ?&gt;&lt;/span&gt;
&lt;/a&gt;&lt;?php
if($this-&gt;params-&gt;get('show_cart_delete',1)){
$delete = hikashop_completeLink('product&amp;task=cleancart');
if(strpos($delete,'?')){
$delete.='&amp;amp;';
}else{
$delete.='?';
} ?&gt;
&lt;a class="hikashop_small_cart_clean_link" href="&lt;?php echo $delete.'return_url='. urlencode(base64_encode(hikashop_currentURL('url',false))); ?&gt;" &gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'trash.png';?&gt;" border="0" alt="clean cart" /&gt;
&lt;/a&gt;&lt;?php
}

}else{
if($cart_type == 'wishlist'){
$form = 'hikashop_wishlist_form';
}
else{
$form = 'hikashop_cart_form';
}
?&gt;
&lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'.$url_itemid,false,true); ?&gt;" method="post" name="&lt;?php echo $form;?&gt;"&gt;
&lt;table width="100%"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th class="hikashop_cart_module_product_name_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;
&lt;/th&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_quantity',1)){
$row_count++; ?&gt;
&lt;th class="hikashop_cart_module_product_quantity_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_QUANTITY'); ?&gt;
&lt;/th&gt;
&lt;?php }
if($this-&gt;params-&gt;get('show_price',1)){
$row_count++; ?&gt;
&lt;th class="hikashop_cart_module_product_price_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_PRICE'); ?&gt;
&lt;/th&gt;
&lt;?php }
if($this-&gt;params-&gt;get('show_cart_delete',1)){
$row_count++; ?&gt;
&lt;th class="hikashop_cart_title"&gt;
&lt;/th&gt;
&lt;?php }
if($row_count&lt;2){ ?&gt;
&lt;th&gt;&lt;/th&gt;
&lt;?php }?&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;?php if($this-&gt;params-&gt;get('show_price',1) &amp;&amp; $this-&gt;params-&gt;get('cart_type','cart') != 'wishlist'){ ?&gt;
&lt;tfoot&gt;
&lt;tr&gt;
&lt;td colspan="&lt;?php echo $row_count;?&gt;"&gt;
&lt;hr /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;?php $colspan = '1';
if($this-&gt;params-&gt;get('show_cart_quantity',1)){
$colspan=2;
} ?&gt;
&lt;td class="hikashop_cart_module_product_total_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt;
&lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_module_product_total_value"&gt;
&lt;?php
$this-&gt;row=$this-&gt;total;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_delete',1)){ ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;?php }?&gt;
&lt;?php
if($row_count&lt;2){ ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;?php }?&gt;
&lt;/tr&gt;
&lt;/tfoot&gt;
&lt;?php } ?&gt;
&lt;tbody&gt;
&lt;?php
$k = 0;
$this-&gt;cart_product_price = true;
$group = $this-&gt;config-&gt;get('group_options',0);
$cart_id = 0;
$app = JFactory::getApplication();
foreach($this-&gt;rows as $i =&gt; $row){
$cart_id = $row-&gt;cart_id;
if(empty($row-&gt;cart_product_quantity)&amp;&amp; $cart_type != 'wishlist' &#124;&#124; $row-&gt;hide == 1) continue;
if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue;

if(method_exists($app,'stringURLSafe')){
$product_alias = $app-&gt;stringURLSafe(strip_tags($row-&gt;product_name));
}else{
$product_alias = JFilterOutput::stringURLSafe(strip_tags($row-&gt;product_name));
}
?&gt;
&lt;tr class="&lt;?php echo "row$k"; ?&gt;"&gt;
&lt;td class="hikashop_cart_module_product_name_value hikashop_cart_value"&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.'&amp;name='.$product_alias.$url_itemid);?&gt;" &gt;
&lt;?php echo $row-&gt;product_name; ?&gt;
&lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt;
&lt;span class="hikashop_product_code_cart"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;
&lt;?php } ?&gt;
&lt;/a&gt;
&lt;p class="hikashop_cart_product_custom_item_fields"&gt;
&lt;?php
if(hikashop_level(2) &amp;&amp; !empty($this-&gt;itemFields)){
foreach($this-&gt;itemFields as $field){
$namekey = $field-&gt;field_namekey;
if(!empty($row-&gt;$namekey)){
echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/p&gt;';
}
}
}
$input='';
if($group){
foreach($this-&gt;rows as $j =&gt; $optionElement){
if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue;
if(!empty($optionElement-&gt;prices[0])){
if(!isset($row-&gt;prices[0])){
$row-&gt;prices[0]-&gt;price_value=0;
$row-&gt;prices[0]-&gt;price_value_with_tax=0;
$row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency();
}
foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value){
if(is_object($value)){
foreach(get_object_vars($value) as $key2 =&gt; $var2){
if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 +=@$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2;
}
}else{
if(strpos($key,'price_value')!==false) $row-&gt;prices[0]-&gt;$key+=@$optionElement-&gt;prices[0]-&gt;$key;
}
}
}
?&gt;
&lt;p class="hikashop_cart_option_name"&gt;
&lt;?php
echo $optionElement-&gt;product_name;
?&gt;
&lt;/p&gt;
&lt;?php
$input .='document.getElementById(\'cart_product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;';
echo '&lt;input type="hidden" id="cart_product_option_'.$optionElement-&gt;cart_product_id.'" name="item[cart_product_quantity]" value="'.$row-&gt;cart_product_quantity.'"/&gt;';
}
}
?&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;?php
if($this-&gt;params-&gt;get('show_cart_quantity',1)){
?&gt;
&lt;td class="hikashop_cart_module_product_quantity_value hikashop_cart_value"&gt;
&lt;?php
$app = JFactory::getApplication();
if(empty($session))
$session = new stdClass();
$session-&gt;cart_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$cart_type.'_id', 0, 'int' );

if($row-&gt;cart_id == $session-&gt;cart_id &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){
?&gt;
&lt;input id="hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt;
&lt;div class="hikashop_cart_product_quantity_refresh"&gt;
&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php
}else{
?&gt;
&lt;input id="hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt;
&lt;?php
}
if($this-&gt;params-&gt;get('show_delete',1) &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&gt;
&lt;div class="hikashop_cart_product_quantity_delete"&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row-&gt;product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'trash.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php }
?&gt;
&lt;/td&gt;
&lt;?php }
if($this-&gt;params-&gt;get('show_price',1)){ ?&gt;
&lt;td class="hikashop_cart_module_product_price_value hikashop_cart_value"&gt;
&lt;?php
$this-&gt;row=&amp;$row;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;
&lt;?php }
if($this-&gt;params-&gt;get('show_cart_delete',1) &amp;&amp; $this-&gt;params-&gt;get('cart_type','cart') != 'wishlist'){ ?&gt;
&lt;td class="hikashop_cart_module_product_delete_value hikashop_cart_value"&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;cart_product_id='.$row-&gt;cart_product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'trash.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt;&lt;/a&gt;
&lt;/td&gt;
&lt;?php }
if($cart_type == 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&gt;
&lt;td class="hikashop_wishlist_display_add_to_cart"&gt;
&lt;!-- Add 'ADD_TO_CART' button --&gt;
&lt;?php
$form = ',\'hikashop_wishlist_form\'';

$this-&gt;ajax = '
if(qty_field == null){
var qty_field = document.getElementById(\'hikashop_wishlist_quantity_'.$row-&gt;cart_product_id.'\').value;
}
if(hikashopCheckChangeForm(\'item\',\'hikashop_wishlist_form\')){
return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',qty_field,1,\'hikashop_wishlist_form\',\'cart\');
} else {
return false;
}
';

$this-&gt;setLayout('quantity');
echo $this-&gt;loadTemplate();
$this-&gt;setLayout('listing_price');
?&gt;
&lt;/td&gt;
&lt;?php }
if($row_count&lt;2){ ?&gt;
&lt;td&gt;&lt;/td&gt;
&lt;?php }?&gt;
&lt;/tr&gt;
&lt;?php
$k = 1-$k;
}
$this-&gt;cart_product_price=false;
?&gt;
&lt;/tbody&gt;
&lt;/table&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 }
if($this-&gt;params-&gt;get('cart_type','cart') != 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') == 'module'){
$cart_type = '&amp;cart_type='.$this-&gt;params-&gt;get('cart_type','cart');
if($this-&gt;params-&gt;get('show_cart_proceed',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this-&gt;params,hikashop_completeLink('checkout'.$url_itemid.$cart_type),'');
}
else{
?&gt;&lt;div class="hikashop_display_cart_show_convert_button"&gt;&lt;?php
$cart_type = '&amp;cart_type='.$this-&gt;params-&gt;get('cart_type','cart');
if($this-&gt;params-&gt;get('from','display') != 'module'){
echo $this-&gt;cart-&gt;displayButton($convertText,'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=convert'.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert'.$url_itemid.$cart_type).'\';return false;');
}
else{
echo $this-&gt;cart-&gt;displayButton($displayText,'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart_id.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart_id.$url_itemid.$cart_type).'\';return false;');
}
?&gt;&lt;/div&gt;&lt;?php

}
?&gt;
&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');
}
exit;
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86321
- Thank you received: 14279
-
-

13 years 6 months ago [\#98063](#98063) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98063 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

If the code from [ www.hikashop.com/en/forum/4-how-to/77022...rt-module.html#98045](http://www.hikashop.com/en/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module.html#98045) works for you you should go with that.
For the print view, you can simple change the line:
&lt;?php if($tmpl != 'component'){ ?&gt;
to:
&lt;?php if(true){ ?&gt;

in the file 'showcart' of the view 'cart' via the menu Display-&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98250](#98250) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98250 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Thank you! It is working now. My problem is that when you open link for the first time it opens the cart on a full normal browser window. Only when you click the link View cart for the second time the lightbox effect works. Have you heard about this kind of problem before?

For example same lightbox effect that is used for product added to cart pop up works just fine.

/Mirlinda

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98270](#98270) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98270 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

To be more specific I am using this code:

&lt;a class="modal" rel="{handler: 'iframe', size: {x: 560, y: 280}}" href="&lt;?php echo hikashop_completeLink('cart&amp;task=showcart',true); ?&gt;"&gt;Shiqo shportën&lt;/a&gt;

the only problem is that sometimes cart opens full blank window with only cart on it. Modal light box sometimes works and sometimes not.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 6 months ago [\#98323](#98323) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98323 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hi,

This should work every times. Can you check if the code to load the modal popup is present in the index.php file of your template ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 45
- Thank you received: 0
-
-

13 years 6 months ago [\#98348](#98348) by [mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")  Replied by *[mirlinda.kosova](/forum/user/11504-mirlinda-kosova "View mirlinda.kosova's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98348 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hi!

If you mean JHTML::_('behavior.modal'); couldn't locate it from index.php template file.
Should I put it there? And if so than should I put it on the head section or somewhere else?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 6 months ago [\#98373](#98373) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[view cart button on a mini cart module](/forum/4-how-to/77022-view-cart-button-on-a-mini-cart-module#98373 "Hi guys!  I would like to put on my hikashop minicart a button &quot;view cart&quot; which would open some kind of popup. In the popup there would be the whole cart content displayed. Here is a similar case to what I am aiming to:    demo.smartaddons.com/#sj-minicart-pro  Will you please help me how to do that? Waiting for your reply. Thanks in advance.")*

Hi,

Yes you have to add it in the head section of your template index.php file.
&lt;?php JHTML::_('behavior.modal'); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc3MDIyLXZpZXctY2FydC1idXR0b24tb24tYS1taW5pLWNhcnQtbW9kdWxlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.207 seconds

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

[](#top)
