Results 1 to 10 of 29

Hybrid View

  1. #1
    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

  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?

    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

  3. #3
    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!

  4. #4
    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.

  5. #5
    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.

  6. #6
    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.

  7. #7
    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.

  8. #8
    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. #9
    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?

 

 

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