Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default consistent look for product listing

    I'm trying to achieve something that I've come oh so very close to finding searching around here, but still no luck...

    My New Products, which are showing up underneath the category pages, are displaying without any tables (hallelujah!), but my main products listed in the main area above are in a table that O can't seem to find to strip out.

    Is there a way to make all instances of product listings use the same layout?

    Thanks in advance!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: consistent look for product listing


  3. #3
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: consistent look for product listing

    Yeah, I've gone through that guy's two-year-old steps about three times now and the New Products listings are still coming up in a table-less format while my category listing is in a friggin' table!

    I'm also a little leery of hacking the core code simply because when the next update comes around, there goes the neighborhood!

    I also hate the fact that my client will ultimately have the power to completely obliterate the layout through the "admin>configure>product listing" after I hand over the site.

    Zen, my friend, you 're trying my patience. But TGIF!

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

    Default Re: consistent look for product listing

    By "table-less", do you mean the grid layout, or simply the absense of table code? The default product listing actually is presented as tabular data, so table layout there is appropriate.
    If you want non-tabular layout, get the Column Layout Grid mod from Free Addons. Even if you only want one product per row, this will allow you more freedom in element layout. For more control over element positioning, you might want to try Flexible Product Listing (styling product listing pages with column layout grid thread, post 50).

    The new products on the home page are not a "listing" but a centerbox, and will not be affected by listing page mods. Centerboxes and the specials listing use non-tabular layout code. The new, featured and all listing pages actually use tables just for layout - I think they are even older code than the default listing.

    For most front-end code, the template override system will let you keep your mods safe from being overwritten in an upgrade (you will still need to merge any changed core files that you have overridden into your mod versions manually).

    If you are really concerned about your client damaging the site with random admin changes, use the Admin Profiles mod to make him an admin with limited access.

  5. #5
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: consistent look for product listing

    I super-appreciate the reply!
    That's a great idea about creating users with limited abilities. I guess I'll jump off that bridge when I get to it.

    I'd rather not install some mod or add-on that could potentially be destroyed with an update. Really, all I'm trying to do is have EVERY instance of a product list in my store spit out the following html (dynamic stuff is enclosed in *'s):
    HTML Code:
    <div class="store-item" id="desc-*pRODUCTiD*">
    <img src="*pRODUCTiMAGE*" width="*pREDETERMINEDbYaDMINsETTING*" height="*pREDETERMINEDbYaDMINsETTING*" alt="*pRODUCTnAME*" title="*pRODUCTnAME*" border="0" />
    	<div class="description">
    		<div class="innerdescription">
    		<h3>*pRODUCTnAME*</h3>
    		<p><a href="*lINKtOpRODUCTpAGE*">> Interested in this item?</a></p>
    		</div>
    	</div>
    </div>
    Is that really not that simple?

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

    Default Re: consistent look for product listing

    If you don't install a mod, you will have to make a mod yourself. The end result is that you save modified code in an override copy of the file, which will be safe from upgrades. Have you studied the template override system yet? That is key to doing proper customization. See the tutorials.

    Do you really want only an image, a title and a link for all product listings? You can edit /includes/modules/your_template/product_listing.php to strip out most of its display-creating functionality and insert the desired dynamic content in the HTML output. You would need to start from the Column Grid version of the file, and use the mod's tpl_ file, to get the non-tabular output.

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

    Default Re: consistent look for product listing

    Note that you can achieve the equivalent of the output results you want for the product listing page by installing Column Grid, selecting columns layout, and turning off display of all elements beside image and name in Configuration > Product Listing. The image and name are both automatically links to the product info page.

    You can do the same for the all, featured and new listings by setting their display attributes in the respective Configuration pages. Set image to 1101 and name to 1200.
    Last edited by gjh42; 18 Sep 2009 at 06:31 PM.

  8. #8
    Join Date
    Sep 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: consistent look for product listing

    Thanks again for the help!
    I'm a real newb when it comes to getting into the php and writing.

    I opened up that product_listing page and have started to hack away at it, but really haven't the foggiest notion of what the heck I'm doing!

    I guess I need some sorta "for each...set...this...that" kinda stuff :)

    I would use the Column Grid mod, but pretty much need it to be exactly the quoted html I threw in a couple posts ago.

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

    Default Re: consistent look for product listing

    Shouldn't there be variables for commonly used bits like "Item_Name", "Item_link", "Item_price", etc...?

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

    Default Re: consistent look for product listing

    There are, but they are in much more complex forms, due tp advanced PHP coding practices required to handle all this information.
    E.G. the name after much preprocessing is contained in this variable
    $listing->fields['products_name']
    but only for this file. Other files that use a product's name will likely have different containers for it.

    It's going to be much more work creating the dynamic product listing display from scratch than working from the nearest available mod. You will have to use the mod's tpl_ file to output the listing in any case, unless you write your own replacement for it.

    A good working knowledge of PHP is necessary for effective code modification on the scale you are attempting. www.w3schools.com is a good source of information.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Chainging all product listings to look special listing
    By sis1004 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Oct 2011, 11:43 PM
  2. Make product listing look like product all listing
    By erezw in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2009, 09:00 PM
  3. Product Listing Pages to New Product Look
    By Seamstobesew in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Dec 2007, 07:21 AM
  4. Tabular Product listing consistent with Featured/Upcoming Products
    By Randolph Hoppe in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Oct 2006, 07:00 AM
  5. product listing page to look like new listing page
    By christienicole in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jun 2006, 03:19 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