How do I get the cart's token?

  • Posts: 217
  • Thank you received: 1
14 years 5 days 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: 85101
  • Thank you received: 13871
  • MODERATOR
14 years 5 days 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.057 seconds
Powered by Kunena Forum