Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    76
    Plugin Contributions
    0

    Default require page in defined pages

    i add to page_2 the code below
    PHP Code:
    <?php require($template->get_template_dir('/tpl_products_all_default.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_products_all_default.php'); ?>
    <?php 
    require($template->get_template_dir('/tpl_modules_products_all_listing.php',DIR_WS_TEMPLATE$current_page_base,'templates') . '/tpl_modules_products_all_listing.php'); ?>
    when i visit the page_2, i get "sort by" and "More products will be added soon. Please check back later."

    do you have any good idea to make it done? thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: require page in defined pages

    define pages do not parse php code

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: require page in defined pages

    Actually, Page 2 could take the php code if the code from the /pages/products_all/header_php.php were included so that it had data to display ...

    The language file defines would also have to be added from the products_all to the page_2 defines ...

    However, in the Page two define, just use the:
    Code:
    <?php require($template->get_template_dir('/tpl_products_all_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_products_all_default.php'); ?>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2011
    Posts
    76
    Plugin Contributions
    0

    Default Re: require page in defined pages

    it works great
    thank you

 

 

Similar Threads

  1. v139h how to remove breadcrumb from ez-pages and defined pages
    By snk060 in forum General Questions
    Replies: 3
    Last Post: 11 Nov 2013, 04:40 PM
  2. New Page adding - using Defined Pages
    By shawnchr in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2009, 04:01 PM
  3. Defined Pages Query
    By megadood in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2008, 03:40 PM
  4. defined pages help
    By MachaNeko in forum Basic Configuration
    Replies: 5
    Last Post: 10 Jul 2008, 08:45 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