Jump to content

cart variables on different pages?


CASH

Recommended Posts

i want to use "cart.php" and "cart.php?a=view" smarty variables on index page or different pages. how can i call variables out of own templates? i called only cartitems variable and placed it on "init.php" for displaying how much products in cart on everypage.

$cartitems = count ($_SESSION['cart']['products']) + count ($_SESSION['cart']['addons']) + count ($_SESSION['cart']['domains']);
 $smarty->assign ('cartitems', $cartitems);

i found code on "cart.php" but not enough for me i want to use;

$total variable $products array variable,$subtotal etc. anyone knows?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated