Help - Search - Members - Calendar
Full Version: Price Font Size
CubeCart Forums > CubeCart Version 3 > CubeCart General Support (Version 3)
cntgifts
i want to change the font size when viewing a product

Your Price: $6.45

i want to chaneg the font for all of that

make it bigger
roban
style.css

.txtCartPrice {
float: right;
color: #FF0000;
padding-right: 3px;

add: font-size: 12pt; or whatever value you want
cntgifts
that dont work i told ya on msn blink.gif

that changes it in the cart i want it to be changed when viewing the product
kinetic
OPen the style.css for your skin
then at the bottom add this code
CODE
.txtPriceDisplay
{
font-size: 16px;
}
you can set the size in px to what ya want/need...

then open your lang.inc.php
find this section
CODE
'product_info' => "Product Information",

'price' => "Price:",

'product_code' => "Product Code:",


this instance of price is the Price text that is displayed on the veiw product page
now change
CODE
'price' => "Price:",

to this
CODE
'price' => "<span class=\"txtPriceDisplay\">Price:</span>",

save both files and upoload to their proper places...

biggrin.gif Kinetic biggrin.gif
cntgifts
i edited the sectionm roban told me about and that onlky changed the size i nthe cart i want it changed when your viewing the product
kinetic
no kidding follow my post above to the letter (NOT ROBANS) and it will work

I just did it on my clients site and its loverly
http://www.usahaircare.com/index.php?act=v...d&productId=621

Big badda bold price....

Kinetic
kinetic
now once ya got the word Price big and bad and ya want the actual PRice or sale price old price to be big and bad open your skins style.css and find
the txtOldPrice and txtSale styles and add
CODE
font-size: 16px; to each

like mine here
CODE
.txtOldPrice {
    text-decoration: line-through;
    font-size: 16px;
}
.txtSale {
 color: #FF0000;
    font-size: 16px;
    font-weight: bold;
}
cntgifts
that didnt work i dont have a sales price i just have the regular price
kinetic
open your SKINS style.css and add a new style at the end of the file
CODE
.txtProdPrice{ font-size: 16px;}


then open includes/content/viewProd.php
find this line
CODE
$view_prod->assign("TXT_PRICE",priceFormat($prodArray[0]['price']));

and replace it with
CODE
$view_prod->assign("TXT_PRICE","<span class='txtProdPrice'>".priceFormat($prodArray[0]['price'])."</span>");


save and upload both files

let me know if this works for ya
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.