we:showShopItemNumber variable

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

we:showShopItemNumber variable

Beitragvon Michael_S » Di 14. Nov 2006, 21:05

Hi,

How do I access the <we:showShopItemNumber shopname="shop" /> variable to use in a PHP IF statement?

Thanks,

Michael.
Production Area
London, UK
http://productionarea.com

Michael_S
Senior Member
Beiträge: 160
Registriert: Mi 4. Feb 2004, 02:39
Wohnort: London / UK
Kontaktdaten:

[shoppingItems] => Array

Beitragvon Michael_S » Di 14. Nov 2006, 23:35

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.
Production Area
London, UK
http://productionarea.com


Zurück zu „Shop Module“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste