VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: DaggaTora on April 16, 2012, 11:35:24 AM

Title: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 16, 2012, 11:35:24 AM
Just updated to 2.0.4 adn everything went fine with an important exception: No prices in cart at all!

I've disable all the overrides to see if it was something new in conflict with them but no prices neither.

someone facing this problem or knows a solution?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Welker on April 16, 2012, 15:52:49 PM
Same thing here  :(

Joomla 2.4.5 and VirtueMart 2.0.4
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: alejandro_quin on April 17, 2012, 06:26:21 AM
Same thing here
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 17, 2012, 11:16:21 AM
updated to 2.0.6 and the same problem.

maybe php 5.3 issue?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Milbo on April 17, 2012, 13:14:49 PM
Please go to administrator/index.php?option=com_virtuemart&view=liveupdate of your page and you will see what you have to change, or read the news http://virtuemart.net/news/list-all-news/417-happy-easter-new-virtuemart-204-released-security-update-sqli  there is also a link in it explaining what you have to change in your template.
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: alejandro_quin on April 18, 2012, 03:58:21 AM
same problem for me
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Anypc on April 18, 2012, 20:56:10 PM
Oef, I'll give it a try buy I dont know if I'm gonna pull this one off.

Looks complicated!
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: TechnoMage on April 19, 2012, 01:05:01 AM
I have the same problem and I am using the default templates. (Joomla 1.5.25//VM 2.0.6)
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: digenie on April 19, 2012, 11:14:03 AM
I have the same problem - this is a major issue/bug that needs a fix urgently.

Is there any way to roll back the update?

I have a backup but made a few tweaks since the update as I assumed this key area would be ok!
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: bpluijms on April 19, 2012, 12:31:28 PM
After upgrade from 2.0.2 to 2.0.6 I have the same issue with the prices.
I went through the changelog page and did some changes, but still the tax prices won't show up.
At the moment I am not using any template overrides for the cart display.
Attached a screenshot of de shop in development.

Hope someone can help me (us) out with this, cause the cart is some of the most important parts of a webshop (isn't it?).

[attachment cleanup by admin]
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Gilesy on April 19, 2012, 12:59:26 PM
Same problem with my shop, just upgraded to 2.0.6 and no prices showing in the cart. Someone must have an easy fix?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Anypc on April 19, 2012, 22:05:06 PM
Please anyone? I would really like to update to 2.0.6 this weekend but as long as the cart in default template is faulty I can't.

Tried the debuggin thing, didnt fix the problem for me or I did it wrong :(
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: jenkinhill on April 20, 2012, 10:09:47 AM
Maybe you need to update your template overrides for the changes in 2.0.6.

See the release announcement: http://virtuemart.net/news/list-all-news/417-happy-easter-new-virtuemart-204-released-security-update-sqli

You can read the change doc though the link on "You have the latest version 2.0.6 " or direct at http://virtuemart.net/index.php?option=com_content&id=416&tmpl=component
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Anypc on April 20, 2012, 14:38:44 PM
Hi Jenkinhill,

Milbo posted thesame link but I cant figure out what it is exactly that we need to change..

I just use normal J2.5.4 with VM2.0.6 and this problem occurs, no scripts or changes whatsoever so I cant seem to find out where the problem comes from...
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: jenkinhill on April 21, 2012, 16:39:07 PM
Check for a template override - look in your Joomla template html directory for com_virtuemart/cart/  subdirectories. If there are files in that /cart/ directory then you are using overrides. The one causing the problem is default_pricelist.php (or it may have been renamed) - if present then try remaning the file extension, eg to .txt and then check if prices show in the checkout.

I just fixed this issue for a client of mine who had installed a commercial Joomla template for VM2 which used a lot of overrides and lost the prices at checkout after going to 2.0.4.
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: bpluijms on April 23, 2012, 11:31:31 AM
Oke, I figured it out.

After updating to VM 2.0.6 all TAX-rules (BTW) are not attached to the product. So I had to add them all one by one again.
That's why the tax didn't show up in the cart.

Is there a way to default add a tax-rule to ALL products (instead of all one by one)?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: greyliar on April 23, 2012, 15:35:10 PM
Ok, I found a solution and it's pretty simple.
First of all, you must update VirtueMart files in your template if you are using overrides (cart directory, file: default_pricelist.php). You must do this, because update modifies all price layouts in the cart. Open original file and compare with file in your template directory, then add the changes.

Second step, you must go to configuration in VirtueMart component, to the "Prices" tab and mark all prices to show.

That's all, everything shows and works.
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Milbo on April 24, 2012, 00:44:32 AM
Quote from: bpluijms on April 23, 2012, 11:31:31 AM
Is there a way to default add a tax-rule to ALL products (instead of all one by one)?

What you are asking for is in fact the default.   :-? Use apply generic discounts and you see the effecting discounts listed below the dropdown menue.
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 24, 2012, 18:46:46 PM
Ok! That works!

But I still have a problem in cart. I have 2 columns: Price and Total. "Product A" cost 30€ and if I set quantity to 4 I need to show 30€ under Price column and 120€ under Total, but I always get 120€, in both columns.

I'm using:

<?php
if (VmConfig::get('checkout_show_origprice',1) && !empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceWithTax'] != $this->cart->pricesUnformatted[$pkey]['salesPrice'] ) {
echo '<span class="line-through">'.$this->currencyDisplay->createPriceDiv('basePriceWithTax',''$this->cart->pricesUnformatted[$pkey],true,false,$prow->quantity) .'</span><br />' ;
}
echo $this->currencyDisplay->createPriceDiv('salesPrice',''$this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity?>


Does anybody knows how to show just the price of the product in cart (those 30€)?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 26, 2012, 13:27:07 PM
Quote from: DaggaTora on April 24, 2012, 18:46:46 PM
Ok! That works!

But I still have a problem in cart. I have 2 columns: Price and Total. "Product A" cost 30€ and if I set quantity to 4 I need to show 30€ under Price column and 120€ under Total, but I always get 120€, in both columns.

I'm using:

<?php
if (VmConfig::get('checkout_show_origprice',1) && !empty($this->cart->pricesUnformatted[$pkey]['basePriceWithTax']) && $this->cart->pricesUnformatted[$pkey]['basePriceWithTax'] != $this->cart->pricesUnformatted[$pkey]['salesPrice'] ) {
echo '<span class="line-through">'.$this->currencyDisplay->createPriceDiv('basePriceWithTax',''$this->cart->pricesUnformatted[$pkey],true,false,$prow->quantity) .'</span><br />' ;
}
echo $this->currencyDisplay->createPriceDiv('salesPrice',''$this->cart->pricesUnformatted[$pkey],false,false,$prow->quantity?>


Does anybody knows how to show just the price of the product in cart (those 30€)?

No idea on how to set price for 1 product?
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 27, 2012, 11:50:06 AM
in cart...
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: Milbo on April 27, 2012, 16:50:08 PM

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


The last parameter is the quantity, just set for the desired line a 1 instead of $prow->quantity
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: cas on April 28, 2012, 02:48:57 AM
I just upgraded from 2.0.1.k that worked great to 2.0.6 and now in the cart the Price, Tax, Discount, Total are all blank.  I do not have any template overrides.  Is there a fix? 
Title: Re: Prices & totals disappeared in cart with 2.0.4
Post by: DaggaTora on April 30, 2012, 09:21:51 AM
Quote from: Milbo on April 27, 2012, 16:50:08 PM

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


The last parameter is the quantity, just set for the desired line a 1 instead of $prow->quantity

Great! Thanx Milbo!