VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: wyldesolos on November 10, 2011, 03:56:11 AM

Title: Hide slash price in shopping cart
Post by: wyldesolos on November 10, 2011, 03:56:11 AM
When i add anything to the cart then view it there is a price of $0.00 with a slash through it and then the actual price below it. I don't have any discounts or coupons active so why does it show this? how can i get rid of it?
Title: Re: Hide slash price in shopping cart
Post by: cas on November 11, 2011, 02:21:23 AM
I have the same question... I have a price multiplier setup and in the cart in the Price column it shows our actual cost above the selling price and it's crossed out and the selling price is below it, so it confuses the customers what the lower amount is that is crossed out, and why are they paying the higher price.  Our cost cannot show in the cart.  Please fix this.  See the attached screenshot.   

[attachment cleanup by admin]
Title: Re: Hide slash price in shopping cart
Post by: Stephen Roberts on November 13, 2011, 01:16:06 AM
I haven't been able to duplicate your issue exactly. Are you using the latest version of VM? How do you have your discount set up?

I don't know if this is specifically related to your issue, but I've found that if no tax rule is defined, the basePriceWithTax=0. It happens in calculationh.php in executeCalculation(). If I comment out:

if (empty($rules))return 0;

It works fine.

Another issue I noticed is that the basePriceWithTax and salePrice are used in the Price column in the cart. Wouldn't it make more sense to show the basePrice instead of basePriceWithTax?
Title: Re: Hide slash price in shopping cart
Post by: cas on November 13, 2011, 01:37:42 AM
Yes, I am using the latest version 1.9.8.RC2 M.   I was mistaken... it's not the discount that is showing, but our actual cost that is being displayed in the cart.  That's even worse!  Plus the Discount column is also showing our cost!   And the Price column has the tax added.  The Price column should not have the tax added.   Plus even when the user is not logged in it is adding the CA tax.   How can it do this if it doesn't know which state the user is in.   See the attached screenshot to see how I have the Taxes & Calculations Rules setup.   

[attachment cleanup by admin]
Title: Re: Hide slash price in shopping cart
Post by: Milbo on November 14, 2011, 16:40:59 PM
should be now enhanced in the svn
Title: Re: Hide slash price in shopping cart
Post by: wyldesolos on November 16, 2011, 05:35:32 AM
Check Attachment. I don't have a tax value defined yet but it shows 0.00 with a slash through it and then the actual price under that value. This is just general info before tax is calculated.

Edit: okay i see now. that would be if i did set a discount for the item. But i need a way to hide that value.

[attachment cleanup by admin]
Title: Re: Hide slash price in shopping cart
Post by: cas on November 24, 2011, 21:18:01 PM
Quote from: Milbo on November 14, 2011, 16:40:59 PM
should be now enhanced in the svn

How do I get the svn with this fix?  I'm not sure how to download the right files and create an installable VM2 component.   Is there a help document about how to do this?
Title: Re: Hide slash price in shopping cart
Post by: jenkinhill on November 24, 2011, 23:25:04 PM
See the Wiki:  http://dev.virtuemart.net/projects/virtuemart/wiki/Setting_up_a_Development_Environment
Title: Re: Hide slash price in shopping cart
Post by: lemtrac on December 06, 2011, 20:26:17 PM
 :)Worked - thank you