VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: StevenO on April 06, 2012, 08:56:23 AM

Title: 2.0.3.J main shopping cart doesn't show price
Post by: StevenO on April 06, 2012, 08:56:23 AM
Joomla 2.5 / vm 2.0.3J
The main shopping cart now has errors - The product is shown and is correct but now I have no - shipping cost showing, no payments,  nor a final price. same problem as in 2.0.3.h. For testing  use the standard beez template.

See attachment

[attachment cleanup by admin]
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: John2400 on April 06, 2012, 13:34:07 PM
The main shopping cart for me in version J

It shows every thing correctly - except the total against the product

* the product price result - total is correct 
* and the total and the bottom in correct.
Shipment and payment is OK -
* this is just so StevenO is aware I cannot reproduce your error. Or it is not showing that for me.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: StevenO on April 06, 2012, 15:06:41 PM
Empty your cache and try again.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: PRO on April 06, 2012, 15:23:12 PM
are you using a template override?

what do you have for your pricing settings?

[attachment cleanup by admin]
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: BaidareW on April 07, 2012, 13:05:39 PM
The same here "I have no - shipping cost showing, no payments,  nor a final price" using latest 2.0.3J in the main shopping cart.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: liv on April 07, 2012, 13:49:36 PM
I had the same problem when I used Yag Lightroom VMT, theme, override. Prices did not show in cart.
When I use the standard VM cart template/theme the prices show.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: BaidareW on April 07, 2012, 19:02:00 PM
Yes you are right. It seems that with other templates everything works fine.. But VM versions till 2.0.3c (c or later ?) worked with the same template fine also..
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: liv on April 07, 2012, 19:16:59 PM
Yes, it worked with override (other themes) until version h(?) I think.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: Milbo on April 07, 2012, 21:48:20 PM
We had to change a bit the calls for creating the prices. Example:

$prow->subtotal_tax_amount

is now

$this->currencyDisplay->createPriceDiv('taxAmount','', $this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity)


The main reason was not to store the prices anylonger in the cart and to keep the session clean, so that more products can be added to the cart.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: John2400 on April 08, 2012, 00:33:29 AM
Hi Milbo,

Are you saying that the cart will not show a total for every product if I change the amount of products ( the total is correct at the bottom) but the actual product total stays the same
due to not being able to fit in code? Or just so mnore products can fit in the windows.

I have version 2.0.4 beta - still shows attached

2.0.4 - stable fixed this for me.

[attachment cleanup by admin]
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: kg on April 08, 2012, 16:43:10 PM
in 2.0.4 Beta, the error seems to be that the quantity is commented out on line 373 - 378 of administrator/components/com_virtuemart/helpers/currencydisplay.php :

/* if(!is_double($price)){
// vmdebug('Price is not double? ',$price);
$price =  'Price is not double? '.$name.'<pre>'.print_r($price,1).'</pre>';
} else {
$price = $price * (float)$quantity;
}*/


Probably a mistake after doing some tests.

Changing this to:


/* if(!is_double($price)){
// vmdebug('Price is not double? ',$price);
$price =  'Price is not double? '.$name.'<pre>'.print_r($price,1).'</pre>';
} else { */
$price = $price * (float)$quantity;
/* }*/



Will make it work again.


Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: Milbo on April 08, 2012, 21:08:03 PM
no is not a mistake, look in the svn and you understand.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: simbus82 on April 10, 2012, 10:53:33 AM
Quote from: Milbo on April 08, 2012, 21:08:03 PM
no is not a mistake, look in the svn and you understand.

Where we have to look? you can link where...

But today, with 2.0.4 stable, without template override, we cannot see the "single" product price in the cart.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: Loris on April 10, 2012, 11:21:07 AM
update to 2.0.4 stable and now in the cart I can't see the total...
reinstalled VM with sample data and all it's ok. Suggestions? Maybe I've some problem with my database data?
where can I start to look for solving this?

thanks
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: simbus82 on April 10, 2012, 11:34:36 AM
Quote from: Loris on April 10, 2012, 11:21:07 AM
update to 2.0.4 stable and now in the cart I can't see the total...
reinstalled VM with sample data and all it's ok. Suggestions? Maybe I've some problem with my database data?
where can I start to look for solving this?

thanks

I found the problem: for see in cart this price you need to set to view prices in admin, in configuration menu.

For Milbo: i think this is wrong! The configuration of prices in admin can be useful to decide which price to show in a product view, not the prices to show in the cart table: they must be show always IMHO!
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: Loris on April 10, 2012, 12:36:49 PM
Quote from: simbus82 on April 10, 2012, 11:34:36 AM
I found the problem: for see in cart this price you need to set to view prices in admin, in configuration
Tx, you are right...
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: jjk on April 11, 2012, 09:45:06 AM
Quote from: simbus82 on April 10, 2012, 11:34:36 AM
...not the prices to show in the cart table: they must be show always IMHO!
Depends on if and how you use calculation rules. For example in my price calculation I have values which I need to suppress in the cart, so the customers don't see them.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: walkyrie on April 11, 2012, 16:59:15 PM
Quote from: Loris on April 10, 2012, 12:36:49 PM
Quote from: simbus82 on April 10, 2012, 11:34:36 AM
I found the problem: for see in cart this price you need to set to view prices in admin, in configuration
Tx, you are right...

Sorry but i can't find this option...  :-[ here is what i have got in configuration --> price tab... Am i in the right place???

Thanks for your help!

[attachment cleanup by admin]
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: timebass on April 13, 2012, 19:54:47 PM
Hello, I also I have the same problem, at least until version 2.0.5 does not display the prices in the shopping cart.

Anyone have any other solution in mind?

Thanks, Greetings

[attachment cleanup by admin]
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: jjk on April 13, 2012, 20:09:32 PM
Are you using a third party Joomla/VM2 template?
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: PRO on April 13, 2012, 20:18:48 PM
Quote from: timebass on April 13, 2012, 19:54:47 PM
Hello, I also I have the same problem, at least until version 2.0.5 does not display the prices in the shopping cart.

Anyone have any other solution in mind?

Thanks, Greetings

http://forum.virtuemart.net/index.php?topic=100057.0
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: John2400 on April 15, 2012, 00:30:44 AM
Hi I was having issues with correct prices showing ,

in the cart and the emails -

this post helped me : http://forum.virtuemart.net/index.php?topic=101087.0

Just so you are aware this post solution is not in 2.0.5 update so so in 2.0.4 stable I changed the code- and it worked . In 2.0.5 it had not been committed to the code so
the update knocked it out.

* my other shopping cart issues were resolved by an update in the PHP - from 5.2 to 5.3 versions.
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: webgeral on April 19, 2012, 05:25:07 AM
I have the exactelly same problem ....anyone found the problem here
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: John2400 on April 19, 2012, 06:39:52 AM
Did you use my post

Alatak - posted the solution.

In the link I showed - now update to 2.0.6 fixes this too
Title: Re: 2.0.3.J main shopping cart doesn't show price
Post by: walkyrie on April 19, 2012, 11:01:11 AM
yes, 2.0.6 fix it, cool!