VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: finbarr69 on October 26, 2011, 08:51:11 AM

Title: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on October 26, 2011, 08:51:11 AM
Hi,

After the latest (J) update, I still see the price 0.00 in the checkout as per attached screenshot.  How can I make it not display the struckout price?  It does not appear to be related to discounts, but I can't see where it is coming from.

Thanks,

Brian



[attachment cleanup by admin]
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: Milbo on October 26, 2011, 11:02:17 AM
I think you didnt entered a costprice and just made an override price. This is afaik not a bug, it is misconfigured.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on October 26, 2011, 11:41:18 AM
Thanks,

Sorry if I have made a misconfiguration, however I don't see what I have done wrong.  Please see new attachment.

Warmest Regards,

Brian

[attachment cleanup by admin]
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: Milbo on October 26, 2011, 12:00:48 PM
Hm, your config is right.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: werdnags on December 08, 2011, 10:54:18 AM
I am having the same issue.  Does anyone have any ideas on this one?

Thanks.
Title: How do I create my OWN posts?
Post by: stylephx on December 08, 2011, 11:26:53 AM
How do I post my OWN posts (not a reply to someone else's)?

Maybe I'm blind but I've been looking for over 10 minutes now. I don't see any buttons that relate to adding my own new posts.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on December 08, 2011, 11:46:01 AM
If you exit this topic back to the list of topics, you can then click the New Topic button (top right).  It leads to http://forum.virtuemart.net/index.php?action=post;board=127.0
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: PRO on December 08, 2011, 20:23:04 PM
I cannot replicate this problem. Are you using any template overrides? for the cart view?
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on December 08, 2011, 20:53:42 PM
I don't think so.  Where's the setting to do that?

Brian
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: PRO on December 08, 2011, 21:06:02 PM
thats not a setting.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: jjk on December 08, 2011, 21:27:21 PM
Quote from: BanquetTables.pro on December 08, 2011, 20:23:04 PM
I cannot replicate this problem. Are you using any template overrides? for the cart view?

I think basically it's the same problem I described here http://forum.virtuemart.net/index.php?topic=91194.msg299293#msg299293 (http://forum.virtuemart.net/index.php?topic=91194.msg299293#msg299293) some time ago.
I still have this behavior on my J1.7.3/VM2 SVN test installation.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: PRO on December 08, 2011, 21:38:42 PM
I enabled all price display and still could not get it.

Is there something in the shopper group price config doing it?

IS there a calculation rule that could be doing it?

Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on December 08, 2011, 21:41:59 PM
Well not in my case as I have already turned off base price without tax (in fact there is no tax for this shop) and it still shows the strikethrough 0.00 underneath the price.

If it had a label next to the 0.00 it would be a lot easier to find where it's coming from.

I guess the logic should be that the 0.00 struckout value should only be displayed if it is not zero.

I haven't configured the shipping method yet (well, each price already includes shipping).  Maybe that has something to do with it.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on December 08, 2011, 21:46:44 PM
I have the default shopper group and "Enable shoppergroup specific price display" is not ticked.

My previous screenshot shows there are no calculation rules enabled.

It has done this ever since I installed the default VM installation in March, and I've been digging through the code trying to find why it is appearing.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: PRO on December 08, 2011, 21:47:15 PM
finbarr69, and you havent moved files from the view folder to your template foldeR? thats what an override is
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: finbarr69 on December 08, 2011, 21:56:21 PM
Ah!

No.  Just the default beez5 template overrides for com_content and com_contact.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: jjk on December 08, 2011, 22:04:37 PM
In my case I see this behavior if I assign a 'Discount Type' rule to a product in the 'Product Information' - 'Pricing rules overrides' section.
Title: Re: Price still shown as 0.00 scored out in the checkout
Post by: PRO on December 08, 2011, 22:16:41 PM
THE VARIABLE is wrong in the if statement, and it is defaulting to true

default_pricelist

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


BUT mail_html_pricelist is using this

<?php if ($prow->basePriceWithTax != $prow->salesPrice ) {
                  echo '<span style="text-decoration:line-through">'.$prow->basePriceWithTax .'</span><br />' ;
               }
               echo $prow->salesPrice ;
               ?>