Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Simulate layout of 'New Products' page

    Hello,

    I've been trolling for the answer on these boards for a while and no luck so here goes...

    I've made a new category and chose 'Document - General' because I'm attempting to make a simple photo gallery in addition to a shopping cart. I'm getting there but I don't like the layout of the page.

    I'd like for it to display exactly like it does when you click the 'New Products' link on the left side content box. Very simple, clean, nice spacing and the horizontal lines seperating the items. Could anyone give me a nudge in the right direction?

    Heres a link to the test site I'm experimenting on...
    http://karenwilliamson.com/catalog/

    Click on 'My Collection' to see the layout I don't want and 'New Products' for what I want 'My Collection' to look like.

    Thanks

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

    Default Re: Simulate layout of 'New Products' page

    Product Listing is Product Listing is Product Listing ... at this time ...

    Currently there isn't a distinction between how Document General and Product General and any other Product type displays ...

    In a future release we will be working towards more flexibility for the listings ...

    You can, however, make your own listing, but that can get very tricky on trying to intercept when and where your categories are coming from and when to use which listing ...

    It is not impossible, just difficult for the average bear ... have you got your coder hat on today?
    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
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simulate layout of 'New Products' page

    Start with the Column Grid mod in Downloads. This will put your individual product elements in a vertical line instead of horizontal. It will also give a grid display, which you can set in admin to as many products per row as you want.

    It is possible to add some tags in the code in product_listing.php which you can then use to affect the layout with the stylesheet.
    Last edited by gjh42; 18 Nov 2007 at 05:27 AM.

  4. #4
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Simulate layout of 'New Products' page

    Quote Originally Posted by Ajeh View Post
    It is not impossible, just difficult for the average bear ... have you got your coder hat on today?
    Hi there, thanks for responding.

    My coder hat would be on if I was getting more money for this. I guess I'll live with it but while were on this, could you tell me how I would keep the items in 'My Collection' or the document general category from showing up in 'New Products'?

    Thanks

    Quote Originally Posted by gjh42 View Post
    Start with the Column Grid mod in Downloads. This will put your individual product elements in a vertical line instead of horizontal. It will also give a grid display, which you can set in admin to as many products per row as you want.

    It is possible to add some tags in the code in product_listing.php which you can then use to affect the layout with the stylesheet.
    Okay... I'll give that a try. I'll post back a little later with results. Thanks.

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

    Default Re: Simulate layout of 'New Products' page

    Make them OLD and not NEW ...

    Change the field in the database for the products_date_added to an older date than your definition of New Products that you have Naturally set in the Maximum Values ...
    New Product Listing - Limited to ...
    Limit the New Product Listing to
    0= All Products
    1= Current Month
    7= 7 Days
    14= 14 Days
    30= 30 Days
    60= 60 Days
    90= 90 Days
    120= 120 Days
    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!

  6. #6
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Simulate layout of 'New Products' page

    Quote Originally Posted by Ajeh View Post
    Make them OLD and not NEW ...

    Change the field in the database for the products_date_added to an older date than your definition of New Products that you have Naturally set in the Maximum Values ...
    Wow... I'm batting .1000 tonight. Thank you :)

    To gjh42... I installed the mod and it's much better! You mentioned being able to now fudge with the stylesheets to further alter the layout to a certain extent as well? I'd like to have the images align by the bottom instead of the top. To use old HTML code it would simply be <td align=center valign=bottom>

    Thanks

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

    Default Re: Simulate layout of 'New Products' page

    There is not much (beside product name) that can be individually controlled by the stylesheet in the stock version of product_listing.php (even the col/grid version). Here's where you get your coder hat busy.

    You can wrap divs with classes around elements that don't yet have them. For example, find this:
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
              
    $lc_text $listing->fields['products_model'];
              break; 
    and add
    '<div class="productListModel">' .
    and
    . '</div>'
    to get this
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
              
    $lc_text '<div class="productListModel">' $listing->fields['products_model'] . '</div>';
              break; 
    You can style .productListModel {} in your stylesheet.


    The name has a label:
    PHP Code:
    '<h3 class="itemTitle"> 

  8. #8
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Simulate layout of 'New Products' page

    Quote Originally Posted by gjh42 View Post
    There is not much (beside product name) that can be individually controlled by the stylesheet in the stock version of product_listing.php (even the col/grid version). Here's where you get your coder hat busy.

    You can wrap divs with classes around elements that don't yet have them. For example, find this:
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
              
    $lc_text $listing->fields['products_model'];
              break; 
    and add
    '<div class="productListModel">' .
    and
    . '</div>'
    to get this
    PHP Code:
          switch ($column_list[$col]) {
            case 
    'PRODUCT_LIST_MODEL':
              
    $lc_align '';
              
    $lc_text '<div class="productListModel">' $listing->fields['products_model'] . '</div>';
              break; 
    You can style .productListModel {} in your stylesheet.


    The name has a label:
    PHP Code:
    '<h3 class="itemTitle"> 
    This is good!

    It's funny, I have no problem installing, doing all the security steps, setting up his shipping/payment modules, payment gateway, ssl, etc but it's always these little details that get me.

    Thanks again :)

  9. #9
    Join Date
    Aug 2007
    Location
    St. Louis
    Posts
    110
    Plugin Contributions
    0

    Default Re: Simulate layout of 'New Products' page

    Quote Originally Posted by robinstl View Post
    This is good!

    It's funny, I have no problem installing, doing all the security steps, setting up his shipping/payment modules, payment gateway, ssl, etc but it's always these little details that get me.

    Thanks again :)
    I spoke too soon. I can add the the divs to 'product_listing.php' fine but I don't have a clue on what to do with the .css file to align the text along the bottom.

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

 

 

Similar Threads

  1. Column Layout for New Products Page
    By BekahRuth in forum Templates, Stylesheets, Page Layout
    Replies: 67
    Last Post: 12 Jun 2018, 02:17 AM
  2. Page layout new products leaves fields away
    By Kontaktwear in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Aug 2013, 09:04 PM
  3. Changing layout of index page new products
    By ian in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Aug 2011, 04:21 AM
  4. Change Category Page Layout to New Products Layout
    By tonemap in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jan 2010, 11:30 PM
  5. Changing the New products layout on front page
    By Ryk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jun 2006, 02:16 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