VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: MvD010 on November 02, 2015, 19:44:24 PM

Title: Styling base price
Post by: MvD010 on November 02, 2015, 19:44:24 PM
Hello I am new on this forum and using Virtuemart. I am trying to style the basic price on my products. I used the custom.css file to overwrite the basic price but it also styles the name, I only want the price in a bigger size and other color. I want this in the product list as in the one product view. Can anybody give me the right code for this changing? I used:

.PricebasePrice {
font-size: 18px;
font-weight: bold;
color: #f90000;

}


(http://www.mupload.nl/img/nshre84uuxe.jpg)

(http://www.mupload.nl/img/4wov64qy13h.jpg)
Title: Re: Styling base price
Post by: jenkinhill on November 02, 2015, 20:14:58 PM
Use Firebug to look at the code (this is in VM3.0.11.4 using default template):
<div class="PricebasePrice vm-display vm-price-value">
<span class="vm-price-desc">Base price: </span>
<span class="PricebasePrice">500,00 €</span>
</div>

So I would expect this to work:
span.PricebasePrice {
        font-size: 18px;
        font:weight: bold;
   color: #f90000;   
}

You may need to add !important to each style.
Title: Re: Styling base price
Post by: MvD010 on November 02, 2015, 21:52:04 PM
Wow that really worked, I am very new so thats why maybe I asked this question. Can I ask you more?
Title: Re: Styling base price
Post by: MvD010 on November 02, 2015, 21:54:38 PM
I have a question about adding more than one picture for a product to show. Is that possible in VM 3 without using a extra paying extension?
Title: Re: Styling base price
Post by: jenkinhill on November 02, 2015, 22:28:14 PM
Upload as many as you want on the Product Images tab (within reason). That's why it is plural - Images

Tha software & template does the rest.

There is also an option "Open additional images in the main position" in Configuration/Templates/Media Files Settings

http://docs.virtuemart.net/manual/products-menu/edit-product.html#product-images
Title: Re: Styling base price
Post by: MvD010 on November 02, 2015, 23:16:25 PM
And last question for now, do you know if it's also possible to change the price color and size on the product page, where you see all the products in the category?

(http://www.mupload.nl/img/4wov64qy13h.jpg)
Title: Re: Styling base price
Post by: MvD010 on November 02, 2015, 23:20:57 PM
Sorry I forgot to add !important and now it's done!!! My mistake
Title: Re: Styling base price
Post by: jenkinhill on November 02, 2015, 23:53:21 PM
Your customs question has been moved to the right section. Please do not add unrelated items to existing threads.
Title: Re: Styling base price
Post by: fulopkrisztina on August 02, 2018, 15:35:48 PM
This .span... code go to the vm-ltr.site.css, in which line?

I want change Price Size on the front page in category view and also on product page ..
(virtuemart 3 / joomla 3)
Title: Re: Styling base price
Post by: GJC Web Design on August 02, 2018, 15:41:04 PM
css rules works in ANY file .. preferably put it in the last css to load

if you change a core css file it will be reverted back on your first update

Cascading Style Sheets - clues in the name

other wise add !important and will over ride always