Page 1 of 2 12 LastLast
Results 1 to 10 of 68

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    lol That wont be happening anytime soon from my end ...is that something someone would do for a fee and I will pass the info to the client?
    ~Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Column Layout for New Products Page

    You could post in the Commercial Help Wanted and see if someone will quote you on this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Hi Red,
    I just wanted to let you know what I decided to do since I don't know how to rewrite the code. It takes a little more work, but I created a category called What's New and I am manually linking new products to from other categories to the New category. It's not difficult, I'll just have to remove or add items to the What's new category by hand. (using the copy feature by the item I want to recreate in the what's new category).

  4. #4
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Thanks, I'm aware of that route but honestly they add so much on a daily basis this would not be something I would recommend for their volume of business I would spend days going and editing just this one category. I need something that works on its own like the one that is there now, but with the 3 column layout I'm looking for someone in the "contract help" to pay to re write the script :)
    ~Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  5. #5
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Ok guys, I have a quick solution for this.
    You can see it in action here:
    http://www.coquitodesigns.com/catalo...e=products_new

    The solution was fairly simple and didn't involve rewriting very much code at all.
    I was able to remove most of the <tr> and <td>'s from the code and replace them with <div>'s. Then define the <div>'s as float:left, and they will flow one after another until the end of the line is reached, then wrap to the next line. Adjust the width of the div depending on how many columns you want. Divide your center column width by the number of columns and set your div to that width.

    Here are the changes.

    Open up your tpl_modules_products_new_listing.php file.

    Go to line 15 and remove the following code
    Code:
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
              <tr>
                <td colspan="3"><hr /></td>
              </tr>
    If you want to remove the space under the image, go to line 29 and change it
    From:
    Code:
    $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'products_id=' . $products_new->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_new->fields['products_image'], $products_new->fields['products_name'], IMAGE_PRODUCT_NEW_LISTING_WIDTH, IMAGE_PRODUCT_NEW_LISTING_HEIGHT) . '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_LIST_IMAGE, 3, 1));
    To:
    Code:
    $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'products_id=' . $products_new->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_new->fields['products_image'] , $products_new->fields['products_name'], IMAGE_PRODUCT_NEW_LISTING_WIDTH, IMAGE_PRODUCT_NEW_LISTING_HEIGHT) . '</a>' . str_repeat('', substr(PRODUCT_NEW_LIST_IMAGE, 3, 1));
    Next, go to around line 115 and change
    From:
    Code:
     <tr>
                <td width="<?php echo IMAGE_PRODUCT_NEW_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">
    To:
    Code:
    <div class="new_products">

    Then delete the following around line 151
    Code:
    </td>
                <td colspan="2" valign="top" class="main">
    Finally, go down to around line 187 replace all the way to the end of the file:

    Replace:
    Code:
            </td>
              </tr>
    <?php if (PRODUCT_NEW_LIST_DESCRIPTION != 0) { ?>
              <tr>
                <td colspan="3" valign="top" class="main">
                  <?php
                    echo $display_products_description;
                  ?>
                </td>
              </tr>
    <?php } ?>
    
              <tr>
                <td colspan="3"><hr /></td>
              </tr>
    <?php
          $products_new->MoveNext();
        }
      } else {
    ?>
              <tr>
                <td class="main" colspan="2"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>
              </tr>
    <?php
      }
    ?>
    </table>
    With:
    Code:
    <?php if (PRODUCT_NEW_LIST_DESCRIPTION != 0) { ?>
              
                  <?php
                    echo $display_products_description;
                  ?>
              
    <?php } ?>
               </div>
    <?php
          $products_new->MoveNext();
        }
      } else {
    ?>
    <?php echo TEXT_NO_NEW_PRODUCTS; ?>
    <?php  } ?>
    Now you have to add the class definition to your stylesheet.
    The following code is what works for my layout. You will have to adjust the height and width depending on how many columns you want to show, and if you are displaying the product description, buy now button, etc...
    You can remove the 2nd declaration if you don't want a border around the images.

    Code:
    .new_products {float: left;
    width: 135px;
    height: 200px;
    text-align: center;
    }
    
    .new_products img {
    border: 1px solid #000;
    }
    I think I covered everything. If anyone has any problems, post them here and I'll see what I can do to help.

  6. #6
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Hi there,

    Do you know how I could do that box look for the new products center box on the main page?

  7. #7
    Join Date
    Oct 2006
    Posts
    175
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Hi!! First let me say your a genius!! Thank you thank you thank you!!!!


    Can you have a look here and tell me how I would get the pagination links to show below the images instead of to the right of it?

    http://www.moppetfrocks.com/shop/ind...e=products_new


    Thank you again!!!!

    ~Renee
    [FONT="Comic Sans MS"]Red[/FONT]

  8. #8
    Join Date
    Apr 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    Quote Originally Posted by pjb923 View Post
    Ok guys, I have a quick solution for this.
    You can see it in action here:
    http://www.coquitodesigns.com/catalo...e=products_new

    The solution was fairly simple and didn't involve rewriting very much code at all.
    I was able to remove most of the <tr> and <td>'s from the code and replace them with <div>'s. Then define the <div>'s as float:left, and they will flow one after another until the end of the line is reached, then wrap to the next line. Adjust the width of the div depending on how many columns you want. Divide your center column width by the number of columns and set your div to that width.

    Here are the changes.

    Open up your tpl_modules_products_new_listing.php file.

    Go to line 15 and remove the following code
    Code:
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
              <tr>
                <td colspan="3"><hr /></td>
              </tr>
    If you want to remove the space under the image, go to line 29 and change it
    From:
    Code:
    $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'products_id=' . $products_new->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_new->fields['products_image'], $products_new->fields['products_name'], IMAGE_PRODUCT_NEW_LISTING_WIDTH, IMAGE_PRODUCT_NEW_LISTING_HEIGHT) . '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_NEW_LIST_IMAGE, 3, 1));
    To:
    Code:
    $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'products_id=' . $products_new->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $products_new->fields['products_image'] , $products_new->fields['products_name'], IMAGE_PRODUCT_NEW_LISTING_WIDTH, IMAGE_PRODUCT_NEW_LISTING_HEIGHT) . '</a>' . str_repeat('', substr(PRODUCT_NEW_LIST_IMAGE, 3, 1));
    Next, go to around line 115 and change
    From:
    Code:
     <tr>
                <td width="<?php echo IMAGE_PRODUCT_NEW_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">
    To:
    Code:
    <div class="new_products">
    Then delete the following around line 151
    Code:
    </td>
                <td colspan="2" valign="top" class="main">
    Finally, go down to around line 187 replace all the way to the end of the file:

    Replace:
    Code:
            </td>
              </tr>
    <?php if (PRODUCT_NEW_LIST_DESCRIPTION != 0) { ?>
              <tr>
                <td colspan="3" valign="top" class="main">
                  <?php
                    echo $display_products_description;
                  ?>
                </td>
              </tr>
    <?php } ?>
    
              <tr>
                <td colspan="3"><hr /></td>
              </tr>
    <?php
          $products_new->MoveNext();
        }
      } else {
    ?>
              <tr>
                <td class="main" colspan="2"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>
              </tr>
    <?php
      }
    ?>
    </table>
    With:
    Code:
    <?php if (PRODUCT_NEW_LIST_DESCRIPTION != 0) { ?>
              
                  <?php
                    echo $display_products_description;
                  ?>
              
    <?php } ?>
               </div>
    <?php
          $products_new->MoveNext();
        }
      } else {
    ?>
    <?php echo TEXT_NO_NEW_PRODUCTS; ?>
    <?php  } ?>
    Now you have to add the class definition to your stylesheet.
    The following code is what works for my layout. You will have to adjust the height and width depending on how many columns you want to show, and if you are displaying the product description, buy now button, etc...
    You can remove the 2nd declaration if you don't want a border around the images.

    Code:
    .new_products {float: left;
    width: 135px;
    height: 200px;
    text-align: center;
    }
    
    .new_products img {
    border: 1px solid #000;
    }
    I think I covered everything. If anyone has any problems, post them here and I'll see what I can do to help.

    I saw your.
    The lovely one.
    I also need a template like yours.

    [IMG]file:///D:/DOCUME%7E1/raj/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG][IMG]file:///D:/DOCUME%7E1/raj/LOCALS%7E1/Temp/moz-screenshot-1.jpg[/IMG]

  9. #9
    Join Date
    Apr 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    [quote=neelam.gahlyan;363127]I saw your.
    The lovely one.
    I also need a template like yours.
    The menu bar in the upper and in the lower.
    How can i get this

  10. #10
    Join Date
    Oct 2007
    Posts
    41
    Plugin Contributions
    0

    Default Re: Column Layout for New Products Page

    great, thank you very much, it works very well!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 23 Mar 2012, 03:28 PM
  2. Would you please teach me about Column Layout Grid for new,featured,all page?
    By nicetomeetyou in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Oct 2008, 12:42 AM
  3. Major issues with Column Layout / Grid Layout for Products Listing
    By kinget in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jul 2007, 10:11 PM
  4. Center Two Column New Products layout IE
    By NamSingh in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 May 2007, 11:39 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