I’m doing a shopping cart with wordpress using Shopp Plugin.
How can i know the number of items added to cart here.Any code for this.
Can any one please help me.
I’m doing a shopping cart with wordpress using Shopp Plugin.
How can i know the number of items added to cart here.Any code for this.
Can any one please help me.
You must be logged in to post a comment.
I added a code to count the number of items in cart and output them.
Hope it helps!
I think this does what you want?
Here are the docs on it: Cart_Tags#totalitems
UPDATED: The docs are now open to the public and updated. Here is a new link for the same function. Note the ‘alternative forms’ available: shopp(‘cart’,’total-items’)
This part has always been a little confusing in Shopp.
If you need the number of unique items in the cart you should use
(for example: 5 apples, 3 pears, 2 carrots would result in 3)
If you need the number of items in the cart you should use
(for example: 2 apples, 3 pears, 1 carrot would result in 6)
To use the value in a variable, set options to
'return=true'