-- HikaShop version -- : 4.2.2
Hello,
I am trying to obtain total value of cart (with tax) in separated php file. Please, what is the simples method to get this value?
I am trying this, without success:
$hikashopHelper = 'https://elodyprsteny.cz/backup/administrator/components/com_hikashop/helpers/helper.php';
if(!file_exists($hikashopHelper) || !include_once($hikashopHelper))
return;
$cartClass = hikashop_get('class.cart');
$cart = $cartClass->get(0);
echo $cart->full_total;
In another words, if user has in cart 3 products, each for 30 $, I need value with 90 $.
Please, could you give me an advise? I am completely lost when it comes to hikashop classes, structures, etc..
I need this to create custom js code that will load via ajax value for micro cart as to as I can use page cache.
Q2: This php function will be called via ajax from custom html module in Joomla. How can I assign value to correct user that called that ajax? Will it be done automatically or I need to pass some parameter?
Thank you very much,
Filip