VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: bilalk on March 27, 2013, 07:16:53 AM

Title: Base or Original price is not showing in the product details?
Post by: bilalk on March 27, 2013, 07:16:53 AM
Hi,

Site Details:
Joomla 2.5.9
Virtuemart: 2.0.20b

the Price (Base price) in the product details is not showing! only the Sales price and discount value are showing? all the setting in the price are correct ( i enabled all the setting still no luck) kindly advice!

Thanks
Title: Re: Base or Original price is not showing in the product details?
Post by: Shibumi on March 29, 2013, 22:21:02 PM
I've noticed this as well - when a "guest" or "-anonymous-" shopper is on the website the baseprice is not visible, only the "Sale Price" even if the product is not on sale, but if you log in as a registered user "-default-" shopper it will now show the baseprice - I have tried a variety of settings, display and do not display various prices in the config page, setting -anonymous= and -default- shopper groups on and off for product, and nothing seems to change the displayed prices. Is VM not mapping -anonymous- to the Joomla! public group properly or something?
Title: Re: Base or Original price is not showing in the product details?
Post by: AH on April 03, 2013, 19:11:42 PM
Same problem here - Product price not assigned in backend.

Guest/Anonymous user cannot see base price since 2.0.20b

Title: Re: Base or Original price is not showing in the product details?
Post by: jamo on June 17, 2013, 13:22:47 PM
Same here, has anyone resolved this?
Title: Re: Base or Original price is not showing in the product details?
Post by: Shibumi on June 17, 2013, 16:40:11 PM
Bump!
Title: Re: Base or Original price is not showing in the product details?
Post by: Maxim Pishnyak on June 17, 2013, 17:55:43 PM
Base price is for admin purpose only.
Title: Re: Base or Original price is not showing in the product details?
Post by: Shibumi on June 17, 2013, 18:46:42 PM
That is not the issue, the issue is that in most cases, the actual price does not show for guests (-annonymous-) shoppers, only logged in shoppers (-default-)
Title: Re: Base or Original price is not showing in the product details?
Post by: Maxim Pishnyak on June 18, 2013, 16:44:09 PM
Quote from: Shibumi on June 17, 2013, 18:46:42 PM
in most cases, the actual price does not show
what??

in most cases clean and out of box Virtuemart shows sales (called by you "actual") prices
Title: Re: Base or Original price is not showing in the product details?
Post by: T.A. Garrison, LLC on December 30, 2013, 22:55:10 PM
I know this is an old thread, but there is  LOT of controversy over why the "Base Price" (Baseprice) doesn't appear when there is a discount applied.

In "my" case, my client wants the "original" price (VM calls this the Baseprice) to show to all users - with a line through the number (strike-through).

To be clear - ex:
$89.00
Sales price $45.00
Discount $-45.00

In order to create the above I spent the better part of 6 weeks searching for a resolve. Many answers included template file overrides and CSS changes. I tried them all and was not able to make this work.
Every time I needed to make a change to something else so some other area would work, the number with the strike-through would disappear.

Today, I finally got what "I think" will not only resolve the issue, but remain when I make other changes as necessary.

The "Base Price" is directly related to the "Tax Affecting:" for each product. Why? I have no idea - you'll have to get that answer from the developers. The relationship of the default tax and the "Base Price" is completely illogical.
Much of what I have found in the current version of VM (2.0.6a) is based upon the mandates of countries "other than" the US. So, those of us in the US have been truly scratching our heads in order to figure out the "how" and "why" of so many aspects of the current VM.

I "get" that things must be done a specific way in other countries. But if 1 country, albeit the "bloody yanks", does everything backwards to the rest of the world, should we not have the options to enable or disable things?
Even though it's law in many countries to have certain parts of the shopping cart enabled, is it impossible to allow the ability to disable that which must be disabled in the US?

Ok. Here's what I did that fixed the issue - today, at least:
Admin > Configuration > Configuration > Pricing > Show Following Prices - Enable the following: Show Prices / Baseprice with Tax, but without discounts / Discount amount

Admin > Products > Tax & Calculation Rules
For the US, you will need to create a tax rule for the state where you have a physical presence. Meaning, if you have a building from which you deliver products or services, you will need to charge tax in every city of that state.
In addition to the necessary tax rules for the cities in your state(s), create a "default" tax rule.
New > name it whatever; publish; description (whatever); Type of Arithmetic Operation = Tax per product; Math Operation = +%; Value = 0
Other than those settings you'll need to make sure you add a "Start Date".
DO NOT select a country! If you do then the customer will need to be logged in before they see the strike-through price. (I don't understand that logic, but that's how it works.)

Now, in each product you must assign "Apply default rules" or this won't work:
Admin > Products > "item" > Product Information > Product Pricing > Tax Affecting: "Apply default rules"
Below that, leave the drop-down set to "Apply no rule".
Make sure you have your original or "Base Price" (Baseprice) entered into "Cost Price" (why in the world there are so many names for the exact same field I have no idea).
Then, enter the price you want to display as the actual selling price for the item in "Final Price".
For the amount of discount, enter the amount you are going to subtract from the "Cost Price" to make the "Final Price".
Select "Overwrite price to be taxed".
Save.
Now refresh your front end and you will see the original price with a strike-through, followed by the actual sales price, followed by the amount of the discount.

This is overly complicated and illogical, IMHO.
But it's the only way I was able to get the original price with the strike-through to show, followed by the actual selling price and also show the amount of discount.
If you also entered a tax for your state you will see that appear in the cart when the customer inputs their address and zip code.

HOWEVER....and this is important. You will need to do one of 2 things to get the correct tax for all the cities in your state.
Either, create tax rules for every city in your state, OR...use "TaxCloudLite". Contact GJC Web Design. It will make life simple.
The third option is absurd which is AlvaTax. The cost is surprisingly prohibitive.

I know that jenkinhill has responded several times to this issue, but I'm convinced that his instructions are assuming many steps as opposed to detailing the entire process. I followed a couple of his posts to the letter without any luck. And, yes, I knew that the instructions were about a year old. But since nothing was working I was trying everything.

Do I have overrides? Yes.
Is one of my overrides related to this issue? Not that I can tell.
I had the modifications added and the strike-through still didn't work.
But, to that end, here my default_products.php modification (found in /components/com_virtuemart/views/virtuemart/tmpl/default_products.php) which is copied to /templates/mytemplate/html/com_virtuemart/views/virtuemart/tmpl/default_products.php

(roughly around line 78)
                  if '<div class="price-crossed">' . ($this->currency->createPriceDiv( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $product->prices )) {
echo $this->currency->createPriceDiv('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $product->prices) . "</div>";
               }

I hope that those who are still beating their head against the wall on this issue find this helpful.
Title: Re: Base or Original price is not showing in the product details?
Post by: GJC Web Design on January 14, 2014, 17:14:32 PM
Pleased to annouce the VM2.0 TaxCloud Plugin has now been approved by TaxCloud (they will be announcing this shortly) and is available for download.
http://forum.virtuemart.net/index.php?topic=113564.0
Title: Re: Base or Original price is not showing in the product details?
Post by: gsullins on January 24, 2014, 09:54:34 AM
LTCreations - Bravo for your post!  I never put it together that taxes had anything to do with creating the strike-through price - to help  show the price before a discount.  You saved me a lot of trouble, as I didn't see a ready solution in the forum.  What's strange is that VM 1 had this out of the box.  VM 2 seemingly does not, though it does connect with discounting somehow?   I don't have taxes in my shop, as it's b2b, for resale.  So I never thought to create a 0 tax rate, as you suggested, to help the baseprice show up in product details!  Thank you!

I do need to work on displaying a % discount though, versus a dollar discount.  Another day.
Title: Re: Base or Original price is not showing in the product details?
Post by: paulmin on February 14, 2014, 05:43:41 AM
Quote from: LTCreations on December 30, 2013, 22:55:10 PM

I hope that those who are still beating their head against the wall on this issue find this helpful.

Very helpful, Thank you.

Would you or anyone know where to edit the "Base Price with tax" label for it to just say "Base Price". As a small non profit organization we do not collect tax and it is stated elsewhere on the website. It looks silly then when it says on product page "Base Price with Tax".
Title: Re: Base or Original price is not showing in the product details?
Post by: jenkinhill on February 23, 2014, 00:01:11 AM
Use a language override:  http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: Base or Original price is not showing in the product details?
Post by: estelleK on March 09, 2014, 23:54:38 PM
LTCreations - Bravo for your post!
You saved my life for something I was unable to solve for weeks, THANKSSSSSS
Title: Re: Base or Original price is not showing in the product details?
Post by: efocus on November 22, 2015, 03:04:22 AM
LTCreations — Thank you, thank you for your post! So many years later and this problems still exists on VM 2.6.18. I have no idea if it's been fixed in VM 3 as I haven't gotten that far. I'm in a no tax state so I would have never thought to enable taxes to get any of the base price fields to display. I spent hours on this issue until I found your post.
Title: Re: Base or Original price is not showing in the product details?
Post by: JCSL on January 12, 2016, 08:39:48 AM
Thank you all for this valuable info  ;)

My Version of finding the solution to this by reading all the above and a little experimenting. It would be nice see this feature out of the box in future versions of Virtuemart

So we Want to show discounts only if these occur and show them by crossing the base price ( without label ) and showing the final sales price ( without label)

—> Create Tax rule ( i.e 0% tax rule and leave apply for all countries - if you apply this to specific countries then the system will not be able to calculate base price with tax unless the user is logged in).
—> ALL Products must have , apply default tax rules( for tax) and apply generic rules for Sales Price.

—> Go to Configuration —> Pricing —> Enable Baseprice with Tax, but without discounts ( uncheck the label ) and Final Price ( uncheck the label)

You are DONE. Hope this Helps

Everything should be working Fine now. When a discount is applied the base price with tax before discount will show ( if not crossed out apply css styling to apply crossed out) and if NO discount it disappears.

JCSL https://www.jcsl.com.cy/en/ (https://www.jcsl.com.cy/en/)
Title: Re: Base or Original price is not showing in the product details?
Post by: GJC Web Design on January 12, 2016, 10:02:52 AM
This I assume is when you don't have any taxes configured?  (i.e. you don't charge tax in your shop)
Title: Re: Base or Original price is not showing in the product details?
Post by: JCSL on May 26, 2020, 08:39:19 AM
Thank you Guys ... very helpful inside info to troubleshoot the problem.