Page 18 of 33 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 327
  1. #171
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: TABLE_HEADING_IMAGE & TABLE_HEADING_PRICE defines

    Hi,

    post install, the table that contains the product listings shows the define names instead of the defined text:
    TABLE_HEADING_IMAGE and TABLE_HEADING_PRICE

    This can be "cured" by creating these defines in english.php as described previously:
    http://www.zen-cart.com/forum/showpo...2&postcount=30

    First question, why are these defines or this info not included in the module?

    There are identical defines already used in the language files
    index.php, advanced_search.php and advanced_search_results.php.
    Although "obviously" these are nothing to do with the product listing I am unclear/curious to know as to how defines work insofar as why there are three versions necessary (now four including this mod), perhaps someone could elucidate...

    thanks
    Steve

  2. #172
    Join Date
    Mar 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Using one single listing template

    Thx Glenn! Yep, doesn't look like it's installed even though I have 3 in one row.

    Does anyone else know the answers to my other questions.....

    2) Excuse my ignorance since I'm not much of a coder and am just learning my zen cart & trying to fix what that previous developer didn't after taking my money. But, if I install this module, I'm guessing I will lose any custom look I already have that is different from the basic zen cart product listing layout, right? Then would have to start over but at least only have to change one basic template file and the css ones instead of a bunch?!?

    3) Will both of these modules easily support a "Customer Link" option to go back and forth from grid and listing? (similar to Walmart's site if you need an example). I read we could use grid, but with one column (set up in the admin). Could that be coded easily to change on the fly by a customer link and not in the admin?

    Thanks!

  3. #173
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    Hi,

    there is a small mistake in
    tpl_modules_product_listing.php line 33.

    The first class should be an id:

    change
    PHP Code:
    <div class="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    to

    PHP Code:
    <div id="productsListingTopNumber" class="navSplitPagesResult back"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></div>
    regards
    Steve

  4. #174
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    and also in tpl_modules_product_listing.php, line 35


    PHP Code:
    <div class="productsListingListingTopLinks navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKSzen_get_all_get_params(array('page''info''x''y''main_page'))); ?></div>
    should be

    PHP Code:
    <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKSzen_get_all_get_params(array('page''info''x''y''main_page'))); ?></div>
    regards
    Steve

  5. #175
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: Using one single listing template

    Hey guys,

    Call me stupid, but I just couldn't for the life of me find that download in all these posts.

    Anyhow, I just did the mods manually and worked it into a downloadable contribution.

    I submitted it to the add-ons section under "Matching Listings" but, til it appears there you can take it from right here
    Attached Files Attached Files

  6. #176
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    Hi,
    the download is available here:
    blog.rubikintegration.com/2009/08/08/speed-up-your-zencart-development-by-using-single-listing-template/

    You can call ME stupid as I found all the template possibilities very confusing, I found not get clear what was coming from where so..

    1) I have been writing a new readme for the mod including a description how default templates work so I can refer to it
    2) I fixed an error with missing fields when using Specials with the product listing template.
    3) I added the missing defines for the table headings
    4)) I have added a debug line in the files which shows which template code is being used.

    (when I have fixed whatever I have just broken elsewhere in the templates I will finish and upload it....)

    regards
    Steve

  7. #177
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Using one single listing template

    Quote Originally Posted by torvista View Post
    and also in tpl_modules_product_listing.php, line 35


    PHP Code:
    <div class="productsListingListingTopLinks navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKSzen_get_all_get_params(array('page''info''x''y''main_page'))); ?></div>
    should be

    PHP Code:
    <div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE ' ' $listing_split->display_links(MAX_DISPLAY_PAGE_LINKSzen_get_all_get_params(array('page''info''x''y''main_page'))); ?></div>
    regards
    Steve
    Steve Thanks for the headsup.

    Similar fixes to posts #174 & #175 to be applied to the same files for bottom links, about 20 Lines down, ie look for productsListingListingBottomLinks
    Last edited by dw08gm; 6 Feb 2010 at 11:16 AM. Reason: Quoted Posts defined

  8. #178
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    Thanks for that,
    I don't spot anything wrong unless Firefox+HTML validator tells me about it!

    Coincidentally I have finally fixed everything I found wrong with the mod and uploaded a version 1.6.
    Apart from the fixes detailed below, I have included a description of how the default templates work to help me and people like me who have found it difficult to identify what goes on and how it relates to the admin settings.

    regards
    Steve

    Changes/Bugfixes for v1.6
    6/2/2010
    1) tpl_modules_product_listing.php line 33
    productsListingTopNumber and productsListingBottomNumber were classes instead of ids, class was missing too.
    2) extra defines required for product listing table headings
    3) Specials listing was missing manufacturer, model, quantity and weight when these optional fields were selected for display in Admin-Configuration-Product Listing. Code added to sql query in
    \includes\modules\pages\specials\header_php.php
    4) When Product Listing was chosen as columns instead of rows, the Manufacturer and Model were butted together due to missing div and class definitions. Added div and classes to quantity and weight items, and weight unit define to weight.
    5)
    \includes\modules\TEMPLATE\new_products.php
    \includes\modules\TEMPLATE\featured_products.php
    \includes\modules\TEMPLATE\specials_index.php
    All were missing code to produce product listing table heading when original listing option 1 selected for index page ($title was not defined)

  9. #179
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Using one single listing template

    What is the actual title of the mod?

    I did a search through Addons and Contributed Modules but could not find any reference to single listing template.

  10. #180
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,839
    Plugin Contributions
    31

    Default Re: Using one single listing template

    I have only just uploaded it, it can take a few days before it gets available for download, I'll post here when it is available,

    Steve

 

 
Page 18 of 33 FirstFirst ... 8161718192028 ... LastLast

Similar Threads

  1. Single Listing Template
    By AnglersCorner in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Mar 2015, 01:55 PM
  2. single listing template addon - grid layout for products
    By noyloza in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Nov 2012, 03:45 PM
  3. Column Grid / Single Listing Template Alternative
    By niccol in forum All Other Contributions/Addons
    Replies: 74
    Last Post: 9 Jul 2012, 01:25 PM
  4. Single Listing Template problem
    By gqq0404 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 Nov 2010, 08:57 PM
  5. Transfer of one single category from one Zen database to another
    By MeltDown in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 14 Oct 2008, 07:07 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