Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Add Text Between Products on Sub-Category Pages?

    So - I'm toying with an idea and I don't even know if this is possible. I'm trying to think of a way, but I'm stumped. In short, if you have a sub-category page with all the products listed on it, I think it would be a GREAT feature to allow adding some text (header and subtext) between products to help clarify the lineup. I don't mean simply displaying the subcategory text at the top of the page. I'm talking about headers and text between a range of products, perhaps with placement of the text tied to a product ID or model number (see pics).

    Does anyone think this is possible or am I just dreaming?

    I photo-shopped an existing page to give a better visual of the idea.


  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Add Text Between Products on Sub-Category Pages?

    No idea if it can be done, but kudos for producing a graphic that makes your question very clear. Too many times the hardest thing about answering a question is figuring out what the question is.

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

    Default Re: Add Text Between Products on Sub-Category Pages?

    Sounds like you're after the Listing Subheading mod I have mostly completed. It allows subheadings to be inserted above any given product or subcategory in a product listing or category listing page. I wrote the core of it for subcats 3 or 4 years ago in a forum thread, but never got it expanded and finalized. It is now ready for beta testing, with the added ability to specify output in columns, with one or more heading groups vertically in each column.
    I can attach a copy here if anyone wants to try it.

  4. #4
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Re: Add Text Between Products on Sub-Category Pages?

    Oh yeah! That would be AWESOME! I would love to try that! I have to believe there are others who could benefit form such a mod. For this project, the ability to "break down" the products with a little more text and headings would be incredible! Thanks for the shout back!

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

    Default Re: Add Text Between Products on Sub-Category Pages?

    The code is currently somewhat of a jumble, with parts that will be separate files all in one for development ease. I just started the file segregation a few days ago. But it should be functional... I'll look at it and pack it up with a few notes of explanation. The readme is just started and doesn't have much useful yet. It will be a day or so before I get to it.

  6. #6
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Re: Add Text Between Products on Sub-Category Pages?

    I have my helmet on and I'm willing to be a test pilot when you're ready!

    Thanks for the effort and the contribution.

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

    Default Re: Add Text Between Products on Sub-Category Pages?

    I have the files separated out, and the necessary Flexible Product Listing files brought into the package. The readmes for both mods have been fleshed out a bit. I still need to test-install it on my development site to make sure I haven't forgotten something... should be soon.

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

    Default Re: Add Text Between Products on Sub-Category Pages?

    The debugging was more involved than I anticipated, but I now have everything working and a few improvements over the previous intended features.
    I will attach the beta zip here while it is being tested. The readme is still incomplete, so if there is any info you want in it, post here to let me know.

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

    Default Re: Add Text Between Products on Sub-Category Pages?

    If anyone who has used this has any comments, please make them soon so I can account for them in the final package. Thanks!

  10. #10
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Re: Add Text Between Products on Sub-Category Pages?

    To follow up on this project, I've uploaded the files and ran the SQL updates. However, there's a few problems that I suspect are easy to fix but beyond my knowledge. I'm not seeing the subheads appearing which is a result me not doing it right or lacking a proper file merge.

    For the purpose of seeing my pages with Cat ID's and product numbers, we'll use a random product page on my site. To avoid search engine discovery, I've obfuscated the domain name…

    http://www.DOMAIN.com/index.php?main...ndex&cPath=290
    (change domain to R U G G E D R A D I O S)

    Since my use for this mod is for the product listing page only, I only edited line 10 in the "defines" file which is what I think I'm supposed to be doing, right? Since this is new territory for me and other Zen Cart users, this also begs the next question. Once the files, code, and upload are all accurate, does this mod automatically move product down to fall under the subheads? See image for better explanation:
    Name:  sample.jpg
Views: 141
Size:  32.8 KB


    Here's the defines I'm using for that:

    Code:
    <?php
    //Category or Product Listing Subheadings (t=100211)
    //=================================
    //includes/languages/english/extra_definitions/your_template/listing_subheads_defines.php
    // Listing Subheadings by Glenn Herbert (gjh42) v0.9 test 2011-12-16
    
    // comment out any defines not to be used
    define('CAT_SUBHEADS', serialize(array(9=>'Subheading for Cat 9',23=>'Subheading for Cat 23',45=>'Subheading for Cat 45'))); //replace 9, 23 & 45 with cat ids; duplicate items as needed  - escape apostrophes \'
    
    define('PROD_SUBHEADS', serialize(array('290_660'=>'Sample text above 1st item with Prod ID of 660','290_661'=>'Sample text above 2nd item with Prod ID of 661'))); //replace 2_20_23 & 22_16 with cPath+_+prod ids; duplicate items as needed  - escape apostrophes \'
    
    define('CAT_COLUMN_DIVS', serialize(array(9,23)));//cats to start new cols - must be subheads
    
    define('PROD_COLUMN_DIVS', serialize(array('7_57','22_16')));//prods to start new cols
    //EOF

    In a private message, you referenced that you weren't sure if I had a proper merged file and that maybe your live version is different than the beta file I tested. I wouldn't know, but maybe the link above will allow you to see something obvious.

    Thank you for this!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h How can I add space between rows of products on the product listing pages?
    By lina0962 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 May 2013, 03:10 PM
  2. Are there variables available to diff between Category and Sub-cat pages?
    By tcarden in forum Customization from the Admin
    Replies: 6
    Last Post: 12 Dec 2012, 04:19 AM
  3. v138a Products not showing up for some sub category pages
    By riky in forum General Questions
    Replies: 12
    Last Post: 27 May 2012, 05:51 PM
  4. Use Different Sub-Category Image on Products Listing Pages
    By pinksparklegirl in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Aug 2011, 01:08 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