2

I've just installed Livechat onto our site running Magento Community. There is an option to add custom variables into the livechat javascript so that I can obtain information about the visitors current session. (see install help document here: http://www.livechatinc.com/kb/custom-variables-configuration/)

With very little knowledge of Magento, could anyone tell me where I might find the variable names and values that will pull in the following:

"Total Cart Value" "Number of items in cart"

1
<?php Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal(); ?>

and

<?php Mage::getSingleton('checkout/cart')->getQuote()->getItemsSummaryQty(); ?>

should work

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.