Virtuemart Pricing

Chrisnz
39 Posts
Chrisnz posted this 26 October 2016

If you have a discounted price in virtuemart, there doesn't seem to be a way to display the old price with tax. It shows the pre-tax price. It is also showing the old pre-tax price when there is no discount.
It needs to show the discounted price and original price with tax. When there is no discount, just show the original price. This works fine with the default VM template.

Voila-Capture2016-10-26-04-46-55-PM.png

Voila-Capture2016-10-26-04-48-06-PM.png

If you have a discounted price in virtuemart, there doesn't seem to be a way to display the old price with tax. It shows the pre-tax price. It is also showing the old pre-tax price when there is no discount. It needs to show the discounted price and original price with tax. When there is no discount, just show the original price. This works fine with the default VM template. !Voila-Capture2016-10-26-04-46-55-PM.png! !Voila-Capture2016-10-26-04-48-06-PM.png!
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 26 October 2016

Hello,

Please try following the suggestion from this topic:
http://answers.themler.com/questions/82331/virtuemart-pricing
It should help.

Sincerely,
Nettie,
BillionDigital Team

Hello, Please try following the suggestion from this topic: http://answers.themler.com/questions/82331/virtuemart-pricing It should help. Sincerely, Nettie, BillionDigital Team
Chrisnz
39 Posts
Chrisnz posted this 26 October 2016

Yes, I have tried that but the code on those templates have changed.
Is there any way to achieve this using the CMS code control?

Yes, I have tried that but the code on those templates have changed. Is there any way to achieve this using the CMS code control?
Support Team
Support Team posted this 28 October 2016

Hello Chris,
yes, you may use CMS Code control to incorporate your custom code.
May be one of theses samples would be helpful
http://answers.themler.com/articles/67028/tips-and-tricks

regards,
Aileen

Hello Chris, yes, you may use CMS Code control to incorporate your custom code. May be one of theses samples would be helpful http://answers.themler.com/articles/67028/tips-and-tricks regards, Aileen
Chrisnz
39 Posts
Chrisnz posted this 31 October 2016

I need to be able to show the sale price with tax. There is only an example of the sales price without tax.

I need to be able to show the sale price **with** tax. There is only an example of the sales price **without** tax.
Support Team
Support Team posted this 03 November 2016

Hi,

Do you mean that you need a base price with tax? If so please try the following code:

<?php echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices); ?>

Thank you,
Olivia

Hi, Do you mean that you need a base price with tax? If so please try the following code: `<?php echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices); ?>` Thank you, Olivia
Chrisnz
39 Posts
Chrisnz posted this 03 November 2016

OK, I'll try and make this clearer!
Here in New Zealand we have a Goods & Services tax (GST) of 15%. So the website needs to show the base price plus tax (GST). That is no problem.

The issue is when a product is on sale because you need to be able to show the old price and discounted price. I can only see a way to show the discounted price and then the old price without tax (they need to both include the tax).

Also if you have 'show old price' selected, it will show the price without tax on non-sale items as well.

Here is a mock up of what I'm after - all prices are with tax for both sale and non-sale items.

Screen-Shot-2016-11-04-at-6.11.57-AM.png

Here is the shopping cart which does display the totals correctly

Screen-Shot-2016-11-04-at-6.22.16-AM.png

I can achieve this with the native virtuemart template (and all other shopping carts I've used) but not with Themler.

OK, I'll try and make this clearer! Here in New Zealand we have a Goods & Services tax (GST) of 15%. So the website needs to show the base price plus tax (GST). That is no problem. The issue is when a product is on sale because you need to be able to show the old price and discounted price. I can only see a way to show the discounted price and then the old price without tax (they need to both **include** the tax). Also if you have 'show old price' selected, it will show the price without tax on non-sale items as well. Here is a mock up of what I'm after - all prices are with tax for both sale and non-sale items. !Screen-Shot-2016-11-04-at-6.11.57-AM.png! Here is the shopping cart which does display the totals correctly !Screen-Shot-2016-11-04-at-6.22.16-AM.png! I can achieve this with the native virtuemart template (and all other shopping carts I've used) but not with Themler.
Support Team
Support Team posted this 08 November 2016

Hi,

Here is the list of prices available in Virtuemart:
<?php
echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices );
?>

You can replace Themler Product Price control with CMS code control which outputs the price you need.

Please note that this is default VM price output. VM provide some styles for these elements. Themler can override these styles partially. You can set color? font-size, etc under the CMS Code >> More Styles. Unfortunately alignment cannot be overridden.
Here is css for this:
.vm-price-value
{
text-align: left;
}

Thank you,
Olivia

Hi, Here is the list of prices available in Virtuemart: `<?php echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices ); ?>` You can replace Themler Product Price control with CMS code control which outputs the price you need. Please note that this is default VM price output. VM provide some styles for these elements. Themler can override these styles partially. You can set color? font-size, etc under the CMS Code >> More Styles. Unfortunately alignment cannot be overridden. Here is css for this: `.vm-price-value { text-align: left; }` Thank you, Olivia
You must log in or register to leave comments