Here`s the solution to getting the Base Price to show up for ALL Shoppers. This is important for those US Customers who want to display the two prices (OLD PRICE:
$150 NEW PRICE: $100):
Milbo already mentioned the solution, but I want to elaborate because it`s not as obvious to many people (myself included).
Here is what you do:
1) Copy the file located here:
components/com_virtuemart/views/productdetails/tmpl/default_showprices.php2) Edit the file on your local computer (see below)
3) Copy the file back to your server at:
templates/YOUR_TEMPLATE_NAME/html/com_virtuemart/productdetails/default_showprices.php(make sure to change "Your_template_Name" with the actual name of the directory where your template files are located.)
The reason you are copying the files to your template directory is becasue this is creating the template override - it doesn't overwrite the base VirtueMart files, so it allows you to update the software and still keep your changes, just in case you were wondering why we copy it there.
4) Test it. It should now work. Celebrate!
5) Still the prices accordingly with CSS until it looks the way you'd like.
Here's the change you need to make to the DEFAULT_SHOWPRICES.PHP file before copying it back:ORIGINAL CODE (Around line 164):
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices );
}
REPLACE WITH:
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices );
}
echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices );
EXPLANATION:
Basically, the ECHO line displays the BasePrice. Originally, it's inside the IF staement, making it show only to the Admins. So, by moving it outside of the IF statement, it will now show to EVERYONE. Yay!
PS: If you need further help about getting VirtueMart 2 to work showing the two prices, with one scratched out, feel free to message me. I spent weeks with VM, until I finally was able to make it do everything I wanted it to, and it wasn't always easy, so I understand your frustration.
