Hello!
I want to display a cart button, but only when there is already a product in the cart. How can I load this inside the index.php of my template file?
I found an entry in the web and tried already with
$countprod = count($this->products);
$jshopConfig = JSFactory::getConfig();
JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_jshopping/models');
$cart = JModelLegacy::getInstance('cart', 'jshop');
$cart->load("cart");
if ($countprod>0) {
// CART BUTTON SHOULD BE DISPLAYED
}