Hi,
I'm running Hikashop v2.2.0 on Joomla 3.3.6. Site url is diywetroom.pigeontech.co.uk
I'm using a chunk of code taken from this thread to display the number of cart items in a div
<?php
$class = hikashop::get('class.cart');
$rows = $class->get();
$qty = 0;
if(!empty($rows)){
foreach($rows as $k =>$row){
$qty += $row->cart_product_quantity;
}
}
echo $qty;
?>
I'm using sourcerer so I can put the code direct into a Joomla module. Everything word fine until I think the browser cache cleared and now the hikashop class fails to be called giving error:
Fatal error: Class 'hikashop' not found in /home/dwrftp/diywetroom.pigeontech.co.uk/tests/cart_items.php on line 3
line 3 on my code is: $class = hikashop::get('class.cart');
Any ideas? I wondered if it might be the order in which the class is called?