14.03.2017 12:48
|
|
phlonge
Name: Flo
18.02.2014
Сообщения: 3
|
PHP Code for the shopping cart quantity
I want do make a custom Link to the shopping cart, with an Icon an also a Batch with the shopping cart quantity shown as number. How, where to I find the php code to get the actual cart quantity?
Joomla: 3.6.5 JoomShopping: Version 4.14.2 PHP: 7.1 MySQL: 5.6.34 Website Url: endonet.at
|
|
14.03.2017 13:50
|
|
FrankG.
Name: Frank
30.11.2011
Сообщения: 1600
|
Aw: PHP Code for the shopping cart quantity
Hallo Flo,
schau dir doch einfach mal den Code vom Warenkorb Modul an...
Ich habe mit dem Warenkorb ein eigenes Modul gebuaut... welchen man natürlich auch in einen Beitrag einbinden könnte.
Последнее изменение: 14.03.2017 13:51
|
|
15.03.2017 15:37
|
|
phlonge
Name: Flo
18.02.2014
Сообщения: 3
|
Aw: PHP Code for the shopping cart quantity
Hab jetzt die foreach Schleife der card.php missbraucht und mit einer Session Variable die Produktanzahl übergeben. Sonst habe ich nichts brauchbares gefunden, zumindest mit meinen PHP Kenntnissen nicht.
|
|
17.03.2017 16:46
|
|
phlonge
Name: Flo
18.02.2014
Сообщения: 3
|
Aw: PHP Code for the shopping cart quantity
Und jetzt hab ich $countprod = count($this->products); gefunden, nur wie bekomme ich den Wert auch wenn ich nicht den Warenkorb aufrufe?
Website Url: endonet.at
|
|