Seite 1 von 1
we:showShopItemNumber variable
Verfasst: Di 14. Nov 2006, 21:05
von Michael_S
Hi,
How do I access the <we:showShopItemNumber shopname="shop" /> variable to use in a PHP IF statement?
Thanks,
Michael.
[shoppingItems] => Array
Verfasst: Di 14. Nov 2006, 23:35
von Michael_S
I guess I would need to calculate the sum of the [quantity] in each of the items in the [shoppingItems] array to see if the figure is greater than 1 then I can use this in an IF statement.
[shoppingItems] => Array
[we_cart_455a23e2d5bdc] => Array
[quantity] => #
Can anyone supply the PHP code to loop through the [shoppingItems] array to give me the sum of the [quantity] element.
Thanks,
Michael.
Michael_S hat geschrieben:Hi,
How do I access the <we:showShopItemNumber shopname="shop" /> variable to use in a PHP IF statement?
Thanks,
Michael.