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,
<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');
$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"');
}
exit;
}