Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    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

  2. #12
    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!

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

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

    Moving the description text requires the PHP file edit. See your other thread.

    You didn't need to edit the PHP files to center the text that was already to the right of the image. That is what you use the web tools for, to find the class or id that controls it and edit the CSS to try out changes.
    Last edited by gjh42; 30 Oct 2009 at 04:38 PM.

  4. #14
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

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

    Unless I am missing it, I do not see where it explains in this thread how to move the text to below the product price, and name, to the right of the image. The question was asked, but I don't think it was explained how to. Just how to center the text. Am I missing it? Apologies in advance if I am.

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

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

    Add the "echo" line as shown here.
    Add HTML comment marks <!-- and --> at beginning and end of the section shown.
    Add PHP comment marks // wherever you don't see them in your copy of the file.
    PHP Code:
    <?php

                      $disp_sort_order
    ->MoveNext();
                    }
    //add the following line
                    
    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();
    The colors indicate different kinds of elements which a good file editor will automatically distinguish for you. What are you using to edit files?
    Last edited by gjh42; 30 Oct 2009 at 04:48 PM.

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

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

    Sorry, with one conversation going on in two threads, I forgot which was which. The original explanation is at the top of this thread.

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

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

    Ya, sorry about that... I am not sure what I am doing wrong. I am following all directions, but when I am done, I go and look and the products have disappeared. I am missing something. Any ideas?

  8. #18
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

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

    Also, the coding in red, in your examples, is that coding that needs to be deleted?

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

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

    OK! I think I finally got it, I was deleting coding I should not be, but here is something interesting for you..... The text is larger now, and not showing 150 characters like it was when it was located below the image. Any idea why or how to change that?

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

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

    Some products show no description text, some show a few words. I notice that your new products page has an unclosed <font tag showing in a product with no text. It is also a proprietary class name; what are you using to create the description text?
    HTML Code:
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
              <tr>
                <td colspan="3"><hr /></td>
              </tr>
              <tr>
    
                <td width="235" valign="top" class="main" align="center">
                  <a href="http://www.lauriesscraps.com/store/index.php?main_page=product_info&amp;cPath=84&amp;products_id=260"><img src="images/LS_GoneCampingBB1.jpg" alt="Gone Camping Brag Book Page" title=" Gone Camping Brag Book Page " width="225" height="225" /></a>            </td>
                <td colspan="2" valign="middle" class="main" align="center">
                  <a href="http://www.lauriesscraps.com/store/index.php?main_page=product_info&amp;cPath=84&amp;products_id=260"><strong>Gone Camping Brag Book Page</strong></a><br clear="all" /><br clear="all" />Price: <s>$1.29</s><br /><img src="includes/templates/template_default/images/free.gif" alt="It's Free!" title=" It's Free! " width="60" height="21" /><br clear="all" /><br clear="all" /><br /><span class="newListingDesc"><span class="Apple-style-span" style="font-family: verdana, tahoma, arial, sans-serif; font-size: 13px; "><font class="Apple-style-span"<a href="http://www.lauriesscraps.com/store/index.php?main_page=product_info&amp;cPath=84&amp;products_id=260"> ... view details</a></span>            </td>
              </tr>
    Look for
    <font class="Apple-style-span"<a href="http
    at the far right of the line.

 

 
Page 2 of 3 FirstFirst 123 LastLast

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