Results 1 to 9 of 9
  1. #1

    Default catagory product info layout

    Hi guys, this is doing my head in, I know the info is in here and I’ve done it before but I’m lost
    How do I move the product info a line down so that it appears below the product image and title
    Thanks in advance

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

    Default Re: catagory product info layout

    We have to know which page you want this on before we can give the right answer.
    Is it the product listing (all the products in a (sub)category), or the product info (one product's details)?

  3. #3

    Default Re: catagory product info layout

    It’s the product list page I’m working on not the individual product page. I need them to list with the image, title and price on one line and the description below

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

    Default Re: catagory product info layout

    product_listing.php has some commented-out code that does exactly that. I think it was left over from an old version of the file, and left in comments in case somebody wanted to use it. In its original form, it would make the exact same layout style as the all products listing.

  5. #5

    Default Re: catagory product info layout

    That’s fantastic found it but now I have the description in two places, how do I turn off the original one .
    Thanks loads for your help

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

    Default Re: catagory product info layout

    You can comment out the description part of the "name" case code in product_listing.php. This edit is much simpler than ones for other elements would be, as you do not need to eliminate the <td> that held the description (it still holds the name).

  7. #7

    Default Re: catagory product info layout

    Sorry to be stupid but do you have a line number for that I’ve played with it but can’t find where to comment it out

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

    Default Re: catagory product info layout

    Around line 95:
    PHP Code:
            case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            if (isset(
    $_GET['manufacturers_id'])) {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&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($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&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($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
            }
            break; 
    The simplest way to edit this is to delete the description code, as commenting a mix of PHP and HTML gives much room for errors.
    PHP Code:
            case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            if (isset(
    $_GET['manufacturers_id'])) {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3>' ;
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3>';
            }
            break; 
    Just make sure you keep the original version in the original location and save your edited copy in your template override folder /includes/modules/your_template/product_listing.php.

  9. #9

    Default Re: catagory product info layout

    Fantastic, got it just nice now
    Thanks for your help

 

 

Similar Threads

  1. Adding a new Product Type Info Page Layout options :: Product - General
    By bn17311 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Aug 2010, 06:42 PM
  2. change price layout on product info and product listings
    By chrislum24 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jun 2009, 12:13 PM
  3. Product Image not showing....either is catagory info!
    By MamaT in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Dec 2008, 02:09 AM
  4. Adjusting Product info in Catagory display
    By Asgoroth in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Feb 2008, 03:45 AM

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