Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Column Layout Grid - Bold Font CSS Question

    Just for other people that may have this problem...

    The above fixed the Description but the price was still not in bold, and the price had no css class, so I had to edit the product_listing.php

    The columns are defined by the following in the \includes\modules\product_listing.php

    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price;



    There would have been a number of ways to edit this inorder to change the font, etc, but what I changed was:

    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br />';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price . '</div>';

  2. #2
    Join Date
    Feb 2007
    Posts
    513
    Plugin Contributions
    2

    Default Re: Column Layout Grid - Bold Font CSS Question

    Make that:

    {
    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '<br />';
    }
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    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 = '';
    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
    $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 0 ? 'cPath=' . $_GET['cPath'] . '&' : '') . 'products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a></div>';
    }

    Most anything would want to change in the Column Layout Grid module can be changed from here. There are several sections that look the same as the above in the product_listing.php but only one changes the Column Layout Grid, be sure to find the right one... I did a search for "listingDescription" to find
    it

 

 

Similar Threads

  1. Column Layout Grid Add on and CSS buy now button
    By joey779 in forum Addon Templates
    Replies: 0
    Last Post: 8 Aug 2011, 02:09 PM
  2. Column Layout Grid for Products - 2nd line of prices not bold
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Oct 2008, 02:17 AM
  3. Question about Column Layout Grid
    By anafor in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2008, 04:59 PM
  4. column grid layout question
    By julia44 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 May 2007, 05:53 PM
  5. Column Grid Layout Question
    By bombknex in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Sep 2006, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg