target_locked Posted July 31, 2008 Share Posted July 31, 2008 Hi there,My currency is quite weak, something like Zimbabwe dollars.Following the WIKI I could hide the 2 numbers after the decimal point, but there is still not enough space for the price to show.How to reduce the font size of price in category/sub-category view ?Thanks. Link to comment Share on other sites More sharing options...
Rain3r Posted August 1, 2008 Share Posted August 1, 2008 Find in you css file this: .price, .price-shipping, .price-wrapping (line 528) { color: #da0f00; font-size: 1.1em; font-weight: bold; white-space: nowrap; } or this: ul#product_list li .price (line 1451) { display: block; font-size: 170%; margin-bottom: 0.2em; } and change the font-sizeI am not sure witch one exactly affect the font size, just try them both Link to comment Share on other sites More sharing options...
target_locked Posted August 2, 2008 Author Share Posted August 2, 2008 Thanks Rain3r for the code.I tried to modify the file: \prestashop\themes\prestashop\css\global.cssThe second code worked. But it only affect the category/sub-category view, the home category still have big font size. ul#product_list li .price (line 1451){display: block;font-size: 170%; For the home page, do you have any other solution?Thanks. Link to comment Share on other sites More sharing options...
ejectcore Posted August 2, 2008 Share Posted August 2, 2008 you will find this on line 525 in global.css this is the only style you need to change the rest will use this style as long as you remove font size on the others ;-) .price-discount { text-decoration: line-through; } .price-pretax { color: gray; } .price-ecotax { color:#488c40; } img.icon { margin-right: 0.5em; vertical-align: middle; } .price, .price-shipping, .price-wrapping { color: #da0f00; font-size: 1.1em; font-weight: bold; white-space:nowrap; } Link to comment Share on other sites More sharing options...
target_locked Posted August 3, 2008 Author Share Posted August 3, 2008 @ amwdesign,I'm not sure what I change is correct or not.I changed at line 527: font-size: 1.1em;to: font-size: 0.4em;or even: font-size: 0.1em;But no effect. there is nothing changed in the front office.Pls advice.Thanks. Link to comment Share on other sites More sharing options...
ejectcore Posted August 3, 2008 Share Posted August 3, 2008 Please upload screenshot of the area you wish to update :wow: Link to comment Share on other sites More sharing options...
target_locked Posted August 3, 2008 Author Share Posted August 3, 2008 As you can see in attached screenshot, at the featured products (home), there is not enough space for the price if the font is big like that.How to reduce that price font size?Thanks. Link to comment Share on other sites More sharing options...
ejectcore Posted August 3, 2008 Share Posted August 3, 2008 Ohh I see :roll:for this one it's differentyou need to change line 1045 #center_column .products_block span.price { text-align: center; font-size: 1.6em; padding: 0.5em 0; display: block; } Link to comment Share on other sites More sharing options...
target_locked Posted August 3, 2008 Author Share Posted August 3, 2008 Thanks amwdesign a lot.That worked. You are an expert. I have another question regarding how to hide [add to cart] button which located here:http://www.prestashop.com/forums/viewthread/4077/I hope you will spend some time looking into that.Thanks. Link to comment Share on other sites More sharing options...
st4rl3t Posted August 14, 2008 Share Posted August 14, 2008 Ohh I see :roll:for this one it's differentyou need to change line 1045 #center_column .products_block span.price { text-align: center; font-size: 1.6em; padding: 0.5em 0; display: block; } Hi I have question on changin font size inside the product categories, how do I do that? Thanks! Link to comment Share on other sites More sharing options...
ejectcore Posted August 14, 2008 Share Posted August 14, 2008 are you still talking about the price font size :question: Link to comment Share on other sites More sharing options...
st4rl3t Posted August 15, 2008 Share Posted August 15, 2008 are you still talking about the price font size :question: yes I mean the price font size, I have managed to reduce the price from size at the front homepage, but not the page which has the product categories, like the image I have attached in the previous post.please help, many thanks! Link to comment Share on other sites More sharing options...
ejectcore Posted August 15, 2008 Share Posted August 15, 2008 Product Listings you will find this on line 1414 ul#product_list li .price{ display: block; font-size: 170%; margin-bottom: 0.2em; } also for product details page line 1728 Link to comment Share on other sites More sharing options...
st4rl3t Posted August 16, 2008 Share Posted August 16, 2008 Product Listings you will find this on line 1414 ul#product_list li .price{ display: block; font-size: 170%; margin-bottom: 0.2em; } also for product details page line 1728 Thanks, It works!! Link to comment Share on other sites More sharing options...
Ardian Yuli Setyanto Posted February 24, 2009 Share Posted February 24, 2009 sorry late, but it works! Link to comment Share on other sites More sharing options...
peacheaven Posted June 16, 2009 Share Posted June 16, 2009 Hi,I've made all changes and it works for all section except the categories section,please help me with some advicemany thanks in advance!(SOLVED):due to hosting problem Link to comment Share on other sites More sharing options...
Ovi Posted January 22, 2010 Share Posted January 22, 2010 I did not want to start a new thread for this, however is there a way to display the price on product.tpl WITHOUT the currency? Just numerical.I'm using this to display the price, and i also get the currency. {convertPrice price=$product->getPrice(true, NULL, 2)} Thanks Link to comment Share on other sites More sharing options...
Recommended Posts