Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2007
    Posts
    138
    Plugin Contributions
    0

    Default Couple of changes in Product listing page .. any1 help me???

    hi
    i have small changes in product listing page
    here is the screen shot



    any suggestion and help will be appreciated..

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Couple of changes in Product listing page .. any1 help me???

    For the "Value $...", you need to enable HTML in product listing pages. Then you can add a <br /> to make the Value start on a new line.

    To move the price below the add to cart button, you will need to edit /includes/templates/your_template/product_listing.php. In the "case 'PRODUCT_LIST_PRICE':" near the middle of the file, you can move the price output down.
    Find
    PHP Code:
            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 
    Change
    $lc_text = $lc_price;
    to
    $lc_text = '';
    (two single quotes '' ), and add "$lc_text .= $lc_price . '<br />';" farther down:
    PHP Code:
            case 'PRODUCT_LIST_PRICE':
            
    $lc_price zen_get_products_display_price($listing->fields['products_id']) . '<br />';
            
    $lc_align 'right';
            
    $lc_text =  ''/*move price down*/
            // more info in place of buy now

    ......................

            }
            
    $the_button $lc_button;
            
    $products_link '<a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' MORE_INFO_TEXT '</a>';
            
    $lc_text .= '<br />' zen_get_buy_now_button($listing->fields['products_id'], $the_button$products_link) . '<br />' zen_get_products_quantity_min_units_display($listing->fields['products_id']);
            
    $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON '<br />' '') : '');
            
    $lc_text .=  $lc_price '<br />'/*add this line to show price below button*/
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'
    Last edited by gjh42; 12 Sep 2007 at 10:29 AM.

  3. #3
    Join Date
    Jul 2007
    Posts
    138
    Plugin Contributions
    0

    Default Re: Couple of changes in Product listing page .. any1 help me???

    thanks a lot glenn

    but i need price should be bold ..so wat will i do ????

  4. #4
    Join Date
    Jul 2007
    Posts
    138
    Plugin Contributions
    0

    Default Re: Couple of changes in Product listing page .. any1 help me???

    Quote Originally Posted by lastpirate007 View Post
    thanks a lot glenn

    but i need price should be bold ..so wat will i do ????

    thanks glenn.
    i did it.....
    thanks a lot

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Couple of changes in Product listing page .. any1 help me???

    You can just put <strong> and </strong> tags around the $lc_price, if you only want the text bold and no other alterations to it.
    PHP Code:
            $lc_text .=  '<strong>' $lc_price '</strong><br />'/*add this line to show price below button*/
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'
    This is probably what you did.


    If you want to fully control the price text, you can put a class on the price text and style it in your stylesheet. Modify the line you just added to this:
    PHP Code:
            $lc_text .=  '<span class="productListPrice">' $lc_price '</span><br />'/*add this line to show price below button*/
            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'
    and add to your stylesheet:
    Code:
    .productListPrice { 
        font-weight: bold;
        font-size: 1.2em; /*adjust or delete properties as desired*/
        font-color: #dd3300;
        }

 

 

Similar Threads

  1. v139h Please Help, Problem with home page ( Index listing or Product listing )
    By oziweb in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 6 Apr 2013, 05:15 AM
  2. some chages required in product info page???? any1 help.....
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Aug 2007, 11:12 AM
  3. couple of changes I'd like to make...
    By BettyBoop8171 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jul 2007, 08:30 PM
  4. Product listing changes
    By MrPotatoes in forum Basic Configuration
    Replies: 7
    Last Post: 20 May 2006, 05:41 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