Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Custom product listing text in ZC v1.5.8/PHP 8

    In ZC v1.5.7d (PHP v7.3.33), to add custom info to a specific product listing page I used this in \includes\templates\YOUR_TEMPLATE\templates\tpl_index_product_list.php :

    Code:
    <div>
    <?php
        if ($current_page_base == 'index' and $cPath == '32_16_54') {
          echo something;
        }
    ?>
    </div>
    Now in ZC v1.5.8 (PHP v8.0.17) that php code no longer works, said div is empty.

    What would I need to do to get it working again?
    Simon

  2. #2
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Custom product listing text in ZC v1.5.8/PHP 8

    I do have an undefined constant warning

    Code:
    PHP Warning: Use of undefined constant TOPMOST_CATEGORY_PARENT_ID
    That might be it, I'll sort that out first.
    Simon

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,684
    Plugin Contributions
    123

    Default Re: Custom product listing text in ZC v1.5.8/PHP 8

    This bug has been fixed - see the Known Bugs in 1.5.8 thread.

    https://www.zen-cart.com/showthread....41#post1391241
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Custom product listing text in ZC v1.5.8/PHP 8

    Quote Originally Posted by swguy View Post
    This bug has been fixed - see the Known Bugs in 1.5.8 thread.

    https://www.zen-cart.com/showthread....41#post1391241
    Thanks @swguy, that did it. I'll spend a bit more time researching in future.
    Simon

 

 

Similar Threads

  1. Replies: 9
    Last Post: 12 Apr 2022, 11:46 AM
  2. custom product listing
    By joshuabaer23 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Sep 2010, 01:47 AM
  3. Product Listing Quantity and Custom Text
    By buildingblocks in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Jul 2010, 05:25 PM
  4. Adding Additional Attributes to Product Listing from Custom Product Type
    By Bigman in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 12 Aug 2008, 04:29 PM
  5. Adding custom field from specials table to product listing and product info
    By davale in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Oct 2007, 06:19 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR