Hi,
How do I access the <we:showShopItemNumber shopname="shop" /> variable to use in a PHP IF statement?
Thanks,
Michael.
we:showShopItemNumber variable
-
- Senior Member
- Beiträge: 160
- Registriert: Mi 4. Feb 2004, 02:39
- Wohnort: London / UK
- Kontaktdaten:
[shoppingItems] => Array
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.
[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.
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste