News:

Looking for documentation? Take a look on our wiki

Main Menu

The line erase effect on base price how to?

Started by geoele, February 02, 2016, 09:20:16 AM

Previous topic - Next topic

geoele

Hello. There is any way in VM 3 to make the line erase effect on the base price to show the discounted price like the attachment image below?

 

GJC Web Design

simple css.. target the element and apply

text-decoration: line-through;
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

geoele

#2
GJC Thank you very much for your answer. I put your code to vm-ltr-site.css here:

span.vm-price-desc {
  text-align: left;
  min-width: 16px;
  margin: 0 12px 3px 0;
text-decoration: line-through;
}

It's working bat affect the two prices the base and the final and i want to affect only the base price you have any idea?
Thanks again

jenkinhill

Make your selector more specific, eg next div class back?

And be sure to use the edited vm-ltr.css as an override file.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

geoele

#4
Hello jenkinhill. Yes i use it as an override inside my template css folder as you sey to another post and the glass is vm-price-desc i think so

Thank you. 

GJC Web Design

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

geoele

Sorry about the delay. It's not live yet. Is on my Xampp server here http://85.74.34.0/pharmaseenew. Can you try pls?