Modul Jshopping Cart

07.04.2022 15:30
#1
Matt12
Joomshopping forum user no avatar
Name: Traudel
31.08.2021
Posts: 36
Quote
Modul Jshopping Cart

Hallo zusammen,

ich möchte bei dem Cart- Modul noch das Gewicht hinzufügen.
also so: Anzahl Flaschen - Gewicht der Produkte - Preis....

Leider gelingt es mir nicht in der default.php vom Modul (Override) dies einzustellen. Ich bekomme immer nur Fehlermeldungen.
Es geht um <div class="weightorder">

Hat jemand eine Idee?

Vielen Dank

Traudel
Modul Jshopping Cart


Joomla: 4.1.2
JoomShopping: 5.0.3
PHP: 7.4.23
 
08.04.2022 08:02
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25930
Quote
Aw: Modul Jshopping Cart

Example code?

 
08.04.2022 12:38
#3
Matt12
Joomshopping forum user no avatar
Name: Traudel
31.08.2021
Posts: 36
Quote
Aw: Modul Jshopping Cart

Example:


<td>
<span id = "jshop_quantity_products"><?php print $cart->count_product?></span>&nbsp;<?php print \JText::_('PRODUCTS')?>
</td>
<td>
<span id = "JSHOP_WEIGHT_PRODUCTS"><?php print \JSHelper::formatweight($cart->weight)?></span>

</td>
<td>
<span id = "jshop_summ_product"><?php print \JSHelper::formatprice($cart->getSum(0,1))?></span>

</td>

Bei diesem Code wird mir immer nur 0 Liter angezeigt.

Ich hatte das auch noch mit: <?php print \JSHelper::formatweight($this->weight);?>; probiert, aber da wird die ganze Seite zerschossen.

Regards,

Traudel

 
09.04.2022 12:18
#4
Matt12
Joomshopping forum user no avatar
Name: Traudel
31.08.2021
Posts: 36
Quote
Aw: Modul Jshopping Cart

Hi,

I have found the solution.
I tested a little more, including with weight_sum.
weight_sum is the return value of the function, but in my opinion the function itself should be called.

And that went with: ($cart->getWeightProducts())

So the Cart module binds the model of the cart.

Regards,

Traudel

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.