News:

Support the VirtueMart project and become a member

Main Menu

CSS final price at no discount

Started by pm4698, October 21, 2014, 12:25:06 PM

Previous topic - Next topic

pm4698

Hello there,

I use virtuemart 2.6.10 and joomla 2.5.x and i was wondering at category layout how to do this:

I have set up really nice below product Title a row with prices at left and quantity-addtocart buttons at right. When i have discount then prices show up good. When i don't have discount, then salesprice shows up to top position of div. How could i make this final price get stuck at bottom or middle, either i have discount or not? Thank you in advance

jenkinhill

Impossible to advise without a URL.
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

pm4698

http://petcity.gr/neweshop/index.php/dog/dog-food/solid-food-dog

Check 2nd row of products. 1st has discount price 2nd and 3rd not. I would like for non-discount products the red price to appear at bottom or middle if possible

GJC Web Design

don't see how you can do it with css alone

the div Price-old-price is what is pushing down the PricesalesPrice div
if it isn't there then it will be where it is

You need either logic to provide a blank Price-old-price, or if Price-old-price is empty to add a class to PricesalesPrice which will have some top margin
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

pm4698

You were right.

I added an else to the if responsible to check if there is a discount in order to show old price and echoed a div with min-height.

Problem solved!