Hi,
I wanted to add a "continue shopping" button to the view cart page and the checkout page.
I read some other peoples comments and tried to add a code to the cart template but it didn't work the code itself appeared on the checkout page. Below is the code I used. Could you please look at my site and see if I am doing the right thing
www.tangyweb.com.au
Thank you
Regards
$config =& hikashop_config();
$continueShopping = $config->get('continue_shopping', '');
if(!empty($continueShopping)) {
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&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->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($continueShopping),'window.location=\''.JRoute::_($continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"');
}