If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Which part of the code need to change for PRICE $xxx fonts size

Which part of the code need to change for PRICE $xxx fonts size

Locked

Started by oavs on 12 Nov 2007, 11:36 PM · Views: 2,552

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
12 Nov 2007, 11:36 PM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #1 by oavs

Hi

Which part of the code I need to change /add in order to change the fonts size for the words 'Price: $xxx'
I am not sure which part of the code actually need a class or span wrapping around.

This applies to for the results in All Products and New Producs page.

Greatly appreciated.

Downunder QLD

13 Nov 2007, 4:13 AM
#3
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #3 by oavs

Thanks ,

Can you tell me which files needs to be corrected. I have no idea where that code goes in ALL or NEW products page?

Thanks

Downunder QLD

13 Nov 2007, 4:48 AM
#4
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #4 by oavs

Only files corresponding to the code you have shown is in the modules. After replacing the code with the correct file, I have created CSS class and results have not changed.

Downunder QLD

13 Nov 2007, 5:34 AM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #5 by afo

If you don't have the FireFox browser, download a copy (it's free) and get the web developer's add-on. That'll allow you to see the IDs and you can modify the stylesheet on the fly to see what effect the changes will have. You'll have to save your changes on you local drive and then upload the modified stylesheet to your website.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

13 Nov 2007, 5:40 AM
#6
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #6 by nimbuz

oavs, You don't have to style class, but the links in that class, like so:

classhere a,active,visited {
}

afo,
Price doesn't have a unique class/ID, and if you style links, all links within that container would be affected.

CSS Evangelist

13 Nov 2007, 6:32 AM
#7
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #7 by oavs

I do have the Firefox but as Nimbuz pointed out 'Price doesn't have a unique class/ID, and if you style links, all links within that container would be affected.' it does not work.

So as I said I am confused with which files to amend.
One of the file is /store/index.php?main_page=products_all and the other
/store/index.php?main_page=products_new

Here is the page http://aloeveraproducts.com.au/store/index.php?main_page=products_new

All I want is to increase the size and and weight of the fonts where it says
Price: $6.93

Why zencart is so difficult to do this?

Nimbuz if you could have one more attempt to help I would be much great full.

Thank you for both responding

Downunder QLD

13 Nov 2007, 6:57 AM
#8
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #8 by nimbuz

My bad, that was for featured products.

Try this:

modules/product_listing.php - around ("around" because I've modified this file a lot) Line 147:

        $lc_price = '[B]<div class="product_listing_price">[/B]' . zen_get_products_display_price($listing->fields['products_id']) . '[B]</div>[/B]';

and style the element in css ofcourse:

.product_listing_price {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
color:#ff6600;
}

CSS Evangelist

13 Nov 2007, 7:10 AM
#9
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #9 by oavs

Nothing has changed.??

I have found the line as below.

    case 'PRODUCT_LIST_PRICE':
    //$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />'; //
	$lc_price = '<div class="product_listing_price">' . zen_get_products_display_price($listing->fields['products_id']) . '</div>';

and added the Css

Downunder QLD

13 Nov 2007, 7:28 AM
#10
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #10 by oavs

oops yes it did but not where I wanted. Still I will kepp it there as I like it

I wanted in all products and New products page. Is the process is the same?

Downunder QLD

13 Nov 2007, 7:29 AM
#11
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #11 by nimbuz

Are you sure you're editing includes/modules/product_listing.php, (around) Line 147?

Mine looks like this:

case 'PRODUCT_LIST_PRICE':
        $lc_price = '[B]<div class="product_listing_price">[/B]' . zen_get_products_display_price($listing->fields['products_id']) . '[B]</div>[/B]';
        $lc_align = '';
        $lc_text = $lc_price;

..and works perfectly.

CSS Evangelist

13 Nov 2007, 7:33 AM
#13
nimbuz avatar

nimbuz

Zen Follower

Join Date:
Oct 2007
Posts:
291
Plugin Contributions:
0

Post #13 by nimbuz

Its not the same for other pages, but if you got the idea of how to insert html in php, then its easy.

CSS Evangelist

13 Nov 2007, 7:34 AM
#14
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Post #14 by oavs

Yep you're right. Now I know whats going on here :-)

Many thanks and checking it for me.

Downunder QLD