Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Bolding Product Listing Prices

Bolding Product Listing Prices

Locked

Started by nightlordv on 5 Feb 2008, 5:03 AM · Views: 811

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
5 Feb 2008, 5:03 AM
#1
nightlordv avatar

nightlordv

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Bolding Product Listing Prices

I was wondering how you bold the product listing prices? I am using version 1.3.8 I was looking in my stylesheet and couldn't see to find anything on "product prices" or anything similar, and even if i did find it, what code would i use to make it bold?
Would appreciate any feedback!

5 Feb 2008, 5:09 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Bolding Product Listing Prices

A link to your page where this is

Zen-Venom Get Bitten

5 Feb 2008, 5:19 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Bolding Product Listing Prices

The stock version of Zen Cart does not have a way to address the listing price individually. It is an easy edit to add a div to make this happen.

Copy /includes/modules/product_listing.php to /includes/modules/your_template/product_listing.php. Find this around line 107```php
case 'PRODUCT_LIST_PRICE':
$lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
$lc_align = 'right';
$lc_text = $lc_price;

    // more info in place of buy now
    $lc_button = '';
    ...
'<div class="listingPrice">' .
and
. '</div>'
to get```php
        case 'PRODUCT_LIST_PRICE':
        $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
        $lc_align = 'right';
        $lc_text = '<div class="listingPrice">' . $lc_price . '</div>';

        // more info in place of buy now
        $lc_button = '';
        ...

Then add to your stylesheet

.listingPrice {font-weight: bold; color: #ff0000;}

5 Feb 2008, 5:21 AM
#5
nightlordv avatar

nightlordv

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Bolding Product Listing Prices

thanks for the response Glen, i already did the first half because i managed to find you mentioning this in another post. However, where about in my CSS to I add the second part? is there any particular area that i should put that in?

5 Feb 2008, 5:29 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Bolding Product Listing Prices

OK, it looks like your template already has a div named "boldPrice".

In that case, just apply the styling above to that.

Since there is nothing to conflict with that, you can put it anywhere. I suggest finding other listing-related declarations to keep things organized.

5 Feb 2008, 5:41 AM
#7
nightlordv avatar

nightlordv

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Bolding Product Listing Prices

well i added the
.listingPrice {
font-weight: bold;
color: #ff0000;
}

into my stylesheet under the
.productListing-rowheading {
background-color: #D2D2D2;
height: 3em;
color: #333333;
}

but it didn't do anything. still looks the same, any suggestions?

5 Feb 2008, 5:48 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Bolding Product Listing Prices

Since you named your class "boldPrice", you need to use that in the stylesheet:

.boldPrice {
font-weight: bold;
color: #ff0000;
}

5 Feb 2008, 5:58 AM
#9
nightlordv avatar

nightlordv

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: Bolding Product Listing Prices

Thanks Glenn that worked just fine. I was also wondering how can I make the side boxes all "blend in" with my inner wrapper? I really don't like the box look and would just rather have it blend in to the page. i would appreciate the help with that as well.
Oh and i looked at your webpage, do you sell wholesale celtic jewelry? My site is a Pagan/Wiccan online retail store, i am always looking to add new jewelry to the store, it sells good for me.

5 Feb 2008, 6:21 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Bolding Product Listing Prices

.leftBoxContainer and .rightBoxContainer and associated selectors control the sidebox styling. You can make their background-color: transparent; or just remove all references to background and let them default to transparent.
We occasionally do wholesale; pm me if interested.