Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Nov 2013
    Posts
    24
    Plugin Contributions
    0

    Default Attempting to restructure product listings

    Good morning,
    I have spent the better part of the previous week combing through the at-best spotty documentation available for ZenCart and am at my wit's end. I want to restructure product listings from the simple "tile" display into a table-based listing with details for each product. Here is an example from another site:

    Name:  TdUZApj.jpg
Views: 229
Size:  34.0 KB

    It would be easy to populate such a table through a php loop but I could not for the life of me figure out how the product variables are exposed and parsed in the listing code.

    Help?

    Cheers,
    Peter M Dodge

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Attempting to restructure product listings

    Are you using the Classic template? The row styled layout is standard in zen-cart unless you have a special template. However modifying it to show the other options you have in the screen shot included are not. But that can be pretty easily added, as long as you know which table to call them from. You may need to add additional columns to your databases product tables to record those additional features.

  3. #3
    Join Date
    Nov 2013
    Posts
    24
    Plugin Contributions
    0

    Default Re: Attempting to restructure product listings

    Hello,
    I am not sure if what I am using could be considered the "Classic" template. I am using the boilerplate template that comes with 1.5.1 that the FAQs suggest using as the basis for a new template.
    Cheers,
    Peter M Dodge

  4. #4
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Attempting to restructure product listings

    under tools -> template selection should be the name of your template "Classic" is the one that is basically the default included.

    I assume you have tried configuring your product listing, from here:
    http://www.zen-cart.com/wiki/index.p...roduct_Listing

  5. #5
    Join Date
    Nov 2013
    Posts
    24
    Plugin Contributions
    0

    Default Re: Attempting to restructure product listings

    Good morning,
    The information I want displayed for the product are displayed, it's a matter of formatting the listing into that sort of list style. In my distribution I only had "classic" and "template_default" templates. The latter of which the documentation suggests copying for creating your own template. I have been able to readily adapt it in just about every other way so far, but not to create the listing I want.

    Where can I find this apparently-newer template code?
    Cheers,
    Peter M Dodge

  6. #6
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Attempting to restructure product listings

    Is this not what you are looking for?
    http://lambdadesigns.com/zc160/index...dex&cPath=3_10

  7. #7
    Join Date
    Nov 2013
    Posts
    24
    Plugin Contributions
    0

    Default Re: Attempting to restructure product listings

    That's essentially the template I started from. I should have been clearer, sorry, but I want the "what's new" section to follow the same list format.

    Cheers,
    Peter M Dodge

  8. #8
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Attempting to restructure product listings

    ohh ok,
    This is what i would do.

    Copy the file includes/templates/template_default/templates/tpl_products_new_default.php
    Save it to includes/templates/YOUR_TEMPLATE/templates/tpl_products_new_default.php and then modify it there, this will override the template_default in case you would want that in the future

  9. #9
    Join Date
    Nov 2013
    Posts
    24
    Plugin Contributions
    0

    Default Re: Attempting to restructure product listings

    Good afternoon,
    Would simply copying the product listing code copy that formatting, or would it be more complicated than that?
    Cheers,
    Peter M Dodge

  10. #10
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Attempting to restructure product listings

    It is slightly different from my experience. However you could take the stock versions of both do a comparison, and then add your changes to the version you wish.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Corrupted product database entry leads to blank product listings
    By delia in forum General Questions
    Replies: 72
    Last Post: 13 Apr 2016, 10:31 PM
  2. change price layout on product info and product listings
    By chrislum24 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jun 2009, 12:13 PM
  3. Need Help on Category Listings, Product Listings
    By wgvania in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 15 Jan 2008, 12:12 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