CMS MADE SIMPLE FORGE

Cart2

 

[#11811] No totalprice in My Cart template

avatar
Created By: Mich-adg (Mich)
Date Submitted: Fri May 11 09:14:52 -0400 2018

Assigned To: Robert Campbell (calguy1000)
Version: 1.4.2
CMSMS Version: 2.2.7
Severity: Major
Resolution: None
State: Open
Summary:
No totalprice in My Cart template
Detailed Description:
Hi,
i have no value for the line = {$cart_totalprice|number_format:2} (the value is
0).
In view cart i can see the total price.

Seems the GetTotal() function can't be called in action.mycart.php

Thx !


History

Comments
avatar
Date: 2018-05-11 10:06
Posted By: Mich-adg (Mich)

I found the problem:

$carttotal = $this->GetTotal();
must be :
$carttotal = $helper->GetTotal(); line 62 in action.mycart.php
      
avatar
Date: 2019-07-23 10:56
Posted By: Chris Taylor (chrisbt)

I haven't looked at the code but can confirm that $cart_totalprice was always 0
using v1.4.2 but with the mod $cart_totalprice is correctly set:
$carttotal = $helper->GetTotal();


      
avatar
Date: 2020-01-10 07:31
Posted By: Deleted User (deleteduser_11200)

Confirmed that this is still a problem, apllied above patch, and it works again:

$carttotal = $this->GetTotal();
must be :
$carttotal = $helper->GetTotal(); line 62 in action.mycart.php
      
Updates

Updated: 2018-05-11 09:54
description: Hi, i have no value for the line = {$cart_totalprice|number_format:2} (the value is 0). In view cart i can see the total price. Seems the GetTotal() function can't be called. Thx ! => Hi, i have no value for the line = {$cart_totalprice|number_format:2} (the value is 0). In view cart i can see the total price. Seems the GetTotal() function can't be called in action.mycart.php Thx !

Updated: 2018-05-11 09:53
description: Hi, i have no value for the line = {$cart_totalprice|number_format:2} (the value is 0). In view cart i can see the total price. Thx ! => Hi, i have no value for the line = {$cart_totalprice|number_format:2} (the value is 0). In view cart i can see the total price. Seems the GetTotal() function can't be called. Thx !
resolution_id: => 5