- Posts: 45
- Thank you received: 0
view cart button on a mini cart module
- mirlinda.kosova
-
Topic Author
- Offline
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
Will you please help me how to do that? Waiting for your reply. Thanks in advance.
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
Please Log in or Create an account to join the conversation.
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 | cart" view and add a popup button which would point to: hikashop_completeLink('cart', true) (which would be: "index.php?option=com_hikashop&ctrl=cart&tmpl=component").
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<script type="text/javascript">
// 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')
}
</script>
<a href="JavaScript:newPopup('hikashop_index.php?option=com_hikashop&ctrl=cart&tmpl=component('cart', true)');">View cart</a>
Thanks a lot!
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<a href="<?php echo hikashop_completeLink('cart',true);?>" >View cart</a>
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
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/
As I pointed on the message above I am trying to get something like this demo.smartaddons.com/#sj-minicart-pro --> 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 or Create an account to join the conversation.
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:
<script type="text/javascript">
// 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')
}
</script>
<a href="JavaScript:newPopup('<?php echo hikashop_completeLink('cart',true);?>');">View cart</a>
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
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:
<?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->params->get('templatecolor');
$doc->addStyleSheet($this->baseurl.'/templates/system/css/system.css');
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/template.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/position.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/layout.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/print.css', $type = 'text/css', $media = 'print');
$files = JHtml::_('stylesheet', 'templates/'.$this->template.'/css/general.css', null, false, true);
if ($files):
if (!is_array($files)):
$files = array($files);
endif;
foreach($files as $file):
$doc->addStyleSheet($file);
endforeach;
endif;
$doc->addStyleSheet('templates/'.$this->template.'/css/'.htmlspecialchars($color).'.css');
if ($this->direction == 'rtl') {
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/template_rtl.css');
if (file_exists(JPATH_SITE . '/templates/' . $this->template . '/css/' . $color . '_rtl.css')) {
$doc->addStyleSheet($this->baseurl.'/templates/'.$this->template.'/css/'.htmlspecialchars($color).'_rtl.css');
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body class="contentpane">
<div id="all">
<div id="main">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
</body>
</html>
I didn't until now had this kind of problem with this template and other components.
/Mirlinda
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('checkout',true); ?>"> Testing </a>
as soon as I change link to href="<?php echo hikashop_completeLink('cart',true); ?>"> 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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<a title="<?php echo JText::_('SHOW_CART');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('cart&task=showcart',true); ?>">
Show Cart
</a>
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<?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
*/
defined('_JEXEC') or die('Restricted access');
?><?php
global $Itemid;
$Itemid = '&Itemid='.$Itemid;
$this->setLayout('listing_price');
$this->params->set('show_quantity_field', 0);
$desc = $this->params->get('msg');
$cart_type = $this->params->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) && $desc != '0'){
$this->params->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->params->get('cart_type','cart');
if($this->params->get('from','no') == 'no'){
$this->params->set('from',JRequest::getString('from','display'));
}
if(empty($this->rows)){
$desc = trim($this->params->get('msg'));
if(!empty($desc) || $desc == '0'){
echo $this->notice_html; ?>
<div id="hikashop_cart" class="hikashop_cart">
<?php echo $desc; ?>
</div>
<div class="clear_both"></div>
<?php
}
}else{ ?>
<div id="hikashop_cart" class="hikashop_cart">
<?php
if($this->config->get('print_cart',0) && JRequest::getVar('tmpl','')!='component' && $cart_type != 'wishlist'){ ?>
<div class="hikashop_checkout_cart_print_link">
<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('checkout&task=printcart',true); ?>">
<img src="<?php echo HIKASHOP_IMAGES; ?>print.png" alt="<?php echo JText::_('HIKA_PRINT');?>"/>
</a>
</div>
<?php
}
else if($this->params->get('from','display') != 'module'){
echo '<div class="hikashop_product_cart_links">';
echo '<div class="hikashop_product_cart_show_carts_link">';
echo $this->cart->displayButton($displayAllText,'cart',$this->params,hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$Itemid),'');
echo '</div>';
?>
<div class="hikashop_product_cart_mail_link">
<a title="<?php echo JText::_('HIKA_EMAIL');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('product&task=sendcart',true); ?>">
<img src="<?php echo HIKASHOP_IMAGES; ?>go.png" alt="<?php echo JText::_('HIKA_EMAIL');?>"/>
</a>
</div>
<div class="hikashop_product_cart_print_link">
<a title="<?php echo JText::_('HIKA_PRINT');?>" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="<?php echo hikashop_completeLink('product&task=printcart',true); ?>">
<img src="<?php echo HIKASHOP_IMAGES; ?>print.png" alt="<?php echo JText::_('HIKA_PRINT');?>"/>
</a>
</div>
<?php
echo '</div><div class="clear_both"></div>';
}
echo $this->notice_html;
$row_count = 1;
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
if($this->params->get('small_cart')){
$this->row=$this->total;
if($this->params->get('show_cart_quantity',1)){
$qty = 0;
$group = $this->config->get('group_options',0);
foreach($this->rows as $i => $row){
if(empty($row->cart_product_quantity) && $cart_type != 'wishlist') continue;
if($group && $row->cart_product_option_parent_id) continue;
$qty+=$row->cart_product_quantity;
}
$text = JText::sprintf('X_ITEMS_FOR_X',$qty,$this->loadTemplate());
}else{
$text = JText::sprintf('TOTAL_IN_CART_X',$this->loadTemplate());
} ?>
<a class="hikashop_small_cart_checkout_link" href="<?php echo hikashop_completeLink('checkout'.$url_itemid); ?>">
<span class="hikashop_small_cart_total_title"><?php echo $text; ?></span>
</a><?php
if($this->params->get('show_cart_delete',1)){
$delete = hikashop_completeLink('product&task=cleancart');
if(strpos($delete,'?')){
$delete.='&';
}else{
$delete.='?';
} ?>
<a class="hikashop_small_cart_clean_link" href="<?php echo $delete.'return_url='. urlencode(base64_encode(hikashop_currentURL('url',false))); ?>" >
<img src="<?php echo HIKASHOP_IMAGES . 'trash.png';?>" border="0" alt="clean cart" />
</a><?php
}
}else{
if($cart_type == 'wishlist'){
$form = 'hikashop_wishlist_form';
}
else{
$form = 'hikashop_cart_form';
}
?>
<form action="<?php echo hikashop_completeLink('product&task=updatecart'.$url_itemid,false,true); ?>" method="post" name="<?php echo $form;?>">
<table width="100%">
<thead>
<tr>
<th class="hikashop_cart_module_product_name_title hikashop_cart_title">
<?php echo JText::_('CART_PRODUCT_NAME'); ?>
</th>
<?php if($this->params->get('show_cart_quantity',1)){
$row_count++; ?>
<th class="hikashop_cart_module_product_quantity_title hikashop_cart_title">
<?php echo JText::_('CART_PRODUCT_QUANTITY'); ?>
</th>
<?php }
if($this->params->get('show_price',1)){
$row_count++; ?>
<th class="hikashop_cart_module_product_price_title hikashop_cart_title">
<?php echo JText::_('CART_PRODUCT_PRICE'); ?>
</th>
<?php }
if($this->params->get('show_cart_delete',1)){
$row_count++; ?>
<th class="hikashop_cart_title">
</th>
<?php }
if($row_count<2){ ?>
<th></th>
<?php }?>
</tr>
</thead>
<?php if($this->params->get('show_price',1) && $this->params->get('cart_type','cart') != 'wishlist'){ ?>
<tfoot>
<tr>
<td colspan="<?php echo $row_count;?>">
<hr />
</td>
</tr>
<tr>
<?php $colspan = '1';
if($this->params->get('show_cart_quantity',1)){
$colspan=2;
} ?>
<td class="hikashop_cart_module_product_total_title" colspan="<?php echo $colspan; ?>">
<?php echo JText::_('HIKASHOP_TOTAL'); ?>
</td>
<td class="hikashop_cart_module_product_total_value">
<?php
$this->row=$this->total;
echo $this->loadTemplate();
?>
</td>
<?php if($this->params->get('show_cart_delete',1)){ ?>
<td>
</td>
<?php }?>
<?php
if($row_count<2){ ?>
<td>
</td>
<?php }?>
</tr>
</tfoot>
<?php } ?>
<tbody>
<?php
$k = 0;
$this->cart_product_price = true;
$group = $this->config->get('group_options',0);
$cart_id = 0;
$app = JFactory::getApplication();
foreach($this->rows as $i => $row){
$cart_id = $row->cart_id;
if(empty($row->cart_product_quantity)&& $cart_type != 'wishlist' || $row->hide == 1) continue;
if($group && $row->cart_product_option_parent_id) continue;
if(method_exists($app,'stringURLSafe')){
$product_alias = $app->stringURLSafe(strip_tags($row->product_name));
}else{
$product_alias = JFilterOutput::stringURLSafe(strip_tags($row->product_name));
}
?>
<tr class="<?php echo "row$k"; ?>">
<td class="hikashop_cart_module_product_name_value hikashop_cart_value">
<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$product_alias.$url_itemid);?>" >
<?php echo $row->product_name; ?>
<?php if ($this->config->get('show_code')) { ?>
<span class="hikashop_product_code_cart"><?php echo $row->product_code; ?></span>
<?php } ?>
</a>
<p class="hikashop_cart_product_custom_item_fields">
<?php
if(hikashop_level(2) && !empty($this->itemFields)){
foreach($this->itemFields as $field){
$namekey = $field->field_namekey;
if(!empty($row->$namekey)){
echo '<p class="hikashop_cart_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$row->$namekey).'</p>';
}
}
}
$input='';
if($group){
foreach($this->rows as $j => $optionElement){
if($optionElement->cart_product_option_parent_id != $row->cart_product_id) continue;
if(!empty($optionElement->prices[0])){
if(!isset($row->prices[0])){
$row->prices[0]->price_value=0;
$row->prices[0]->price_value_with_tax=0;
$row->prices[0]->price_currency_id = hikashop_getCurrency();
}
foreach(get_object_vars($row->prices[0]) as $key => $value){
if(is_object($value)){
foreach(get_object_vars($value) as $key2 => $var2){
if(strpos($key2,'price_value')!==false) $row->prices[0]->$key->$key2 +=@$optionElement->prices[0]->$key->$key2;
}
}else{
if(strpos($key,'price_value')!==false) $row->prices[0]->$key+=@$optionElement->prices[0]->$key;
}
}
}
?>
<p class="hikashop_cart_option_name">
<?php
echo $optionElement->product_name;
?>
</p>
<?php
$input .='document.getElementById(\'cart_product_option_'.$optionElement->cart_product_id.'\').value=qty_field.value;';
echo '<input type="hidden" id="cart_product_option_'.$optionElement->cart_product_id.'" name="item[cart_product_quantity]" value="'.$row->cart_product_quantity.'"/>';
}
}
?>
</p>
</td>
<?php
if($this->params->get('show_cart_quantity',1)){
?>
<td class="hikashop_cart_module_product_quantity_value hikashop_cart_value">
<?php
$app = JFactory::getApplication();
if(empty($session))
$session = new stdClass();
$session->cart_id = $app->getUserState( HIKASHOP_COMPONENT.'.'.$cart_type.'_id', 0, 'int' );
if($row->cart_id == $session->cart_id && $this->params->get('from','display') != 'module'){
?>
<input id="hikashop_wishlist_quantity_<?php echo $row->cart_product_id;?>" type="text" name="item[<?php echo $row->cart_product_id;?>][cart_product_quantity]" class="hikashop_product_quantity_field" value="<?php echo $row->cart_product_quantity; ?>" onchange="var qty_field = document.getElementById('hikashop_wishlist_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field){<?php echo $input; ?> } document.<?php echo $form; ?>.submit(); return false;" />
<div class="hikashop_cart_product_quantity_refresh">
<a href="#" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field && qty_field.value != '<?php echo $row->cart_product_quantity; ?>'){<?php echo $input; ?> qty_field.form.submit(); } return false;" title="<?php echo JText::_('HIKA_REFRESH'); ?>">
<img src="<?php echo HIKASHOP_IMAGES . 'refresh.png';?>" border="0" alt="<?php echo JText::_('HIKA_REFRESH'); ?>" />
</a>
</div>
<?php
}else{
?>
<input id="hikashop_cart_quantity_<?php echo $row->cart_product_id;?>" type="text" name="item[<?php echo $row->cart_product_id;?>][cart_product_quantity]" class="hikashop_product_quantity_field" value="<?php echo $row->cart_product_quantity; ?>" onchange="var qty_field = document.getElementById('hikashop_cart_quantity_<?php echo $row->cart_product_id;?>'); if (qty_field){<?php echo $input; ?> } document.<?php echo $form; ?>.submit(); return false;" />
<?php
}
if($this->params->get('show_delete',1) && $this->params->get('from','display') != 'module'){ ?>
<div class="hikashop_cart_product_quantity_delete">
<a href="<?php echo hikashop_completeLink('product&task=updatecart&product_id='.$row->product_id.'&quantity=0&return_url='.urlencode(base64_encode(urldecode($this->params->get('url'))))); ?>" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_<?php echo $row->cart_product_id;?>'); if(qty_field){qty_field.value=0; <?php echo $input; ?> qty_field.form.submit();} return false;" title="<?php echo JText::_('HIKA_DELETE'); ?>">
<img src="<?php echo HIKASHOP_IMAGES . 'trash.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" />
</a>
</div>
<?php }
?>
</td>
<?php }
if($this->params->get('show_price',1)){ ?>
<td class="hikashop_cart_module_product_price_value hikashop_cart_value">
<?php
$this->row=&$row;
echo $this->loadTemplate();
?>
</td>
<?php }
if($this->params->get('show_cart_delete',1) && $this->params->get('cart_type','cart') != 'wishlist'){ ?>
<td class="hikashop_cart_module_product_delete_value hikashop_cart_value">
<a href="<?php echo hikashop_completeLink('product&task=updatecart&cart_product_id='.$row->cart_product_id.'&quantity=0&return_url='.urlencode(base64_encode(urldecode($this->params->get('url'))))); ?>" onclick="var qty_field = document.getElementById('hikashop_cart_quantity_<?php echo $row->cart_product_id;?>'); if(qty_field){qty_field.value=0;<?php echo $input; ?> document.hikashop_cart_form.submit(); return false;}else{ return true;}" title="<?php echo JText::_('HIKA_DELETE'); ?>"><img src="<?php echo HIKASHOP_IMAGES . 'trash.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" /></a>
</td>
<?php }
if($cart_type == 'wishlist' && $this->params->get('from','display') != 'module'){ ?>
<td class="hikashop_wishlist_display_add_to_cart">
<!-- Add 'ADD_TO_CART' button -->
<?php
$form = ',\'hikashop_wishlist_form\'';
$this->ajax = '
if(qty_field == null){
var qty_field = document.getElementById(\'hikashop_wishlist_quantity_'.$row->cart_product_id.'\').value;
}
if(hikashopCheckChangeForm(\'item\',\'hikashop_wishlist_form\')){
return hikashopModifyQuantity(\'' . $this->row->product_id . '\',qty_field,1,\'hikashop_wishlist_form\',\'cart\');
} else {
return false;
}
';
$this->setLayout('quantity');
echo $this->loadTemplate();
$this->setLayout('listing_price');
?>
</td>
<?php }
if($row_count<2){ ?>
<td></td>
<?php }?>
</tr>
<?php
$k = 1-$k;
}
$this->cart_product_price=false;
?>
</tbody>
</table>
<?php
if($this->params->get('show_cart_quantity',1)){ ?>
<noscript>
<input type="submit" class="btn button" name="refresh" value="<?php echo JText::_('REFRESH_CART');?>"/>
</noscript>
<?php }
if($this->params->get('cart_type','cart') != 'wishlist' && $this->params->get('from','display') == 'module'){
$cart_type = '&cart_type='.$this->params->get('cart_type','cart');
if($this->params->get('show_cart_proceed',1)) echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,hikashop_completeLink('checkout'.$url_itemid.$cart_type),'');
}
else{
?><div class="hikashop_display_cart_show_convert_button"><?php
$cart_type = '&cart_type='.$this->params->get('cart_type','cart');
if($this->params->get('from','display') != 'module'){
echo $this->cart->displayButton($convertText,'wishlist',$this->params,hikashop_completeLink('cart&task=convert'.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&task=convert'.$url_itemid.$cart_type).'\';return false;');
}
else{
echo $this->cart->displayButton($displayText,'wishlist',$this->params,hikashop_completeLink('cart&task=showcart&cart_id='.$cart_id.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&task=showcart&cart_id='.$cart_id.$url_itemid.$cart_type).'\';return false;');
}
?></div><?php
}
?>
<input type="hidden" name="url" value="<?php echo $this->params->get('url');?>"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="updatecart"/>
</form>
<?php } ?>
</div>
<div class="clear_both"></div>
<?php } ?>
<?php
if(JRequest::getWord('tmpl','')=='component'){
if(!headers_sent()){
header('Content-Type: text/css; charset=utf-8');
}
exit;
}
Please Log in or Create an account to join the conversation.
For the print view, you can simple change the line:
<?php if($tmpl != 'component'){ ?>
to:
<?php if(true){ ?>
in the file 'showcart' of the view 'cart' via the menu Display->Views.
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
For example same lightbox effect that is used for product added to cart pop up works just fine.
/Mirlinda
Please Log in or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
<a class="modal" rel="{handler: 'iframe', size: {x: 560, y: 280}}" href="<?php echo hikashop_completeLink('cart&task=showcart',true); ?>">Shiqo shportën</a>
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
- mirlinda.kosova
-
Topic Author
- Offline
- Posts: 45
- Thank you received: 0
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 or Create an account to join the conversation.
Yes you have to add it in the head section of your template index.php file.
<?php JHTML::_('behavior.modal'); ?>
Please Log in or Create an account to join the conversation.