Results 1 to 10 of 29

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    4
    Plugin Contributions
    0

    Default All product listing - moving the description text up?

    Hi everyone, I am using zen cart 1.3.8 and I just have a really quick question.

    How can I move my description of the product to the empty space? It used to be where the model, manufacturer, weight, etc are.




    I tried searching for the solution but I was unsuccessful.

    Thank you.

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

    Default Re: All product listing - moving the description text up?

    "The server at www.qpetsupplies.com is taking too long to respond."

    I moved the all products listing description on my site a few years ago - it's pretty easy. Let me go check on the file.

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

    Default Re: All product listing - moving the description text up?

    /includes/templates/your_template/templates/tpl_modules_all_listing.php

    These are the lines I changed - you might not want to do all of these, depending on your display desires:
    Around line 110, comment out the line
    PHP Code:
          if (PRODUCT_ALL_LIST_DESCRIPTION '0') {
            
    $disp_text zen_get_products_description($products_all->fields['products_id']);
            
    //$disp_text = zen_clean_html($disp_text); //gjh42 2007-12-15 
    Do not do this unless you want to enable HTML in the listing descriptions. Search the forum for zen_clean_html for a description and cautions.

    Around line 189, add the description output and comment out the original table row output:
    PHP Code:
    <?php

                      $disp_sort_order
    ->MoveNext();
                    }
                    echo 
    '<br /><span class="allListingDesc">' $display_products_description '</span>'//gjh42 2007-12-15 - hard-code description at bottom of right column
                  
    ?>
                </td>
              </tr>
    <!--<?php// if (PRODUCT_ALL_LIST_DESCRIPTION != 0) { ?>gjh42 2007-12-15 - remove description spanning below rest of product - html and php comment tags
              <tr class="<?php// echo ((int)($row_counter/2)==($row_counter/2)) ? 'productListing-even' : 'productListing-odd'; ?>">
                <td colspan="3" valign="top" class="main">
                  <?php
                    
    //echo $display_products_description;
                  
    ?>
                </td>
              </tr>
    <?php// } ?>
              <tr>
                <td colspan="3"><hr /></td>
              </tr> -->
    <?php
          $products_all
    ->MoveNext();

  4. #4
    Join Date
    May 2008
    Posts
    250
    Plugin Contributions
    1

    Default Re: All product listing - moving the description text up?

    Have you had a look in Admin > Configuration > All Listing?

    In this Admin section you get to select the information you want to appear in a product listing (eg model no, weight, date added, etc) and also the layout of the information.

    It may be that 'Display product Price' is set to show a number of blank lines after it. Or if you moved description to be on the Right it might sit better.

    Play around with the options - you can change the listing layout quite a lot without going into the template files at all.

    There's also Admin function to do the same for Featured Listings and New Listings.

    Hope this helps.

    Cheers
    K

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

    Default Re: All product listing - moving the description text up?

    The all products listing does not allow the description to be anywhere but across the bottom of the product's listing area. Also, the elements are in table cells instead of divs, so rearranging the code is the only way to alter this part of the layout.

    If you want to be able to tweak the styling of individual parts of the left or right cell, you can add a span with a class tag, like this:
    PHP Code:
                      if ($disp_sort_order->fields['configuration_key'] == 'PRODUCT_ALL_LIST_IMAGE') {
                        echo 
    '<span class="allListingImage">' $display_products_image '</span>'//gjh42 2007-12-15 

  6. #6
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: All product listing - moving the description text up?

    I was able to do this, so thank you very much! Is there any way to vertical align center so that the text is centered both vertically and horizontally next to the product image?

    Thanks again, you rock my world!

  7. #7
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: All product listing - moving the description text up?

    I have tried to do this and I am not able to get it to work. Not sure if I am doing something wrong or not. My problem is that my "All Listing" page is prfect, juts the way I want it, but now I want to do the same on the new products and featured products listing page and am not able to achieve the same thing. I achieved the results on the all listing page by altering different code, so I am not sure how to apply this technique to the other pages. Can you help?

    Thanks

    http://www.lauriesscraps.com/store/i...e=products_new
    http://www.lauriesscraps.com/store/i...tured_products

    The way I want it to look.....
    http://www.lauriesscraps.com/store/i...e=products_all

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

    Default Re: All product listing - moving the description text up?

    I checked the new products file, and the code is identical except for "new" instead of "all" constant and variable names. You can use the same edits, as long as you adjust for the differences in the base files. The files to edit are

    /includes/templates/your_template/templates/tpl_modules_products_all_listing.php (fixing typo in filename in post #3 above)

    /includes/templates/your_template/templates/tpl_modules_products_featured_listing.php

    and

    /includes/templates/your_template/templates/tpl_modules_products_new_listing.php

  9. #9
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: All product listing - moving the description text up?

    I am getting a different result than what is intended I think. I am not sure what is meant by comment out and what all the different colors mean. In the other thread that you had helped me on, you had me add this productListing-odd .main, .productListing-even .main {vertical-align: middle;text-align: center} to the stylesheet. Is there a way of doing this for the other 2 pages in the style sheet?

    I was able to get the text to the right of the image to vertically and horizontally align center by editing the tpl_modules_products_featured_listing.php and tpl_modules_products_new_listing.php under the /public_html/store/includes/templates/my_template/templates/ file path, but just can't get that text to move from the bottom to the right.

    (The farthest I got was getting the description text to go just under the image in the same width as the image).

    I guess I didn't know as much as a I thought, any help would be great, thanks!

 

 

Similar Threads

  1. v150 Help moving Product Description TEXT to top
    By Johnnycopilot in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Mar 2012, 05:56 PM
  2. Moving product description on All Products page
    By shepnic in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Nov 2010, 03:47 PM
  3. text description used for product listing
    By JasonRocket in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2008, 03:27 AM
  4. Product Short description in all products listing
    By patski in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Aug 2006, 09:10 PM
  5. Moving Product Listing description
    By fontuna in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Jul 2006, 07:47 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