News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Strikethrough on regular price

Started by rage76, December 06, 2016, 17:38:20 PM

Previous topic - Next topic

rage76

Hi, I am on J 3.6.3 / VM 3.0.16

I want to show a Regular price with strikethrough &, a discounted price (inclusive of taxes)

Now, if I set the calculation rule for discount as "After tax", it works fine.

Whereas, I want the discount to be the price modifier "Before Tax". However, when I choose that, the regular price & the strikethrough goes away and I can only see the final price.

Desperately seeking help on this since I would prefer not to do this thru a core hack.

GJC Web Design

It doesn't require a core hack

just some change in the logic in an over ride for

components\com_virtuemart\sublayouts\prices.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

rage76

Dear GJC Web Design

I am glad to know this can be achieved without a core hack.

Will it be possible for you to guide me on how to achieve this?

warm regards

GJC Web Design

just look at the code in the sublayout.. theres not much of it

basically compare two prices .. if they aren't equal then a discount must have been applied so add a strikethru class to the lesser
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

rage76

#4
Thanks again but I am not a programmer. So I guess I will have to get this done from someone who know PHP. Or if you would be kind enough to do this for me....I shall be grateful !!

rage76

Quote from: GJC Web Design on December 07, 2016, 11:55:56 AM
just look at the code in the sublayout.. theres not much of it

basically compare two prices .. if they aren't equal then a discount must have been applied so add a strikethru class to the lesser

@GJC Please help me resolve this. I am unable to bring my site online without it. rgds

GJC Web Design

quite happy to do paid work..  if required email me
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation