How do I get the cart's token?

  • Posts: 217
  • Thank you received: 1
12 years 3 months ago #38376

Hi there,

Is there a way to get the user's cart token? A small php snippet that I can put in my index.php and refer to?

Mat

Please Log in or Create an account to join the conversation.

  • Posts: 81604
  • Thank you received: 13083
  • MODERATOR
12 years 3 months ago #38492

Hi,

Like that:

$cartClass = hikashop_get('class.cart');
$cartClass->loadCart();
echo $cartClass->cart->cart_id;

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum