Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    124
    Plugin Contributions
    0

    Default Need Main Page Text on Product Pages

    Ok I've played with some code and still having trouble trying to get this to work. What I need is the main page text (from the define pages editor) to show on the product info pages. I really need this to work somehow. I've tried inserting the similar code after the bread crumbs with no luck. Any ideas?

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

    Default Re: Need Main Page Text on Product Pages

    What I need is the main page text (from the define pages editor) to show on the product info pages.

    I've tried inserting the similar code after the bread crumbs with no luck.
    Try adding it to a copy of /includes/templates/template_default/templates/tpl_product_info_display.php placed into your templates override structure
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2010
    Posts
    124
    Plugin Contributions
    0

    Default Re: Need Main Page Text on Product Pages

    Yes I did I'm just struggling with the syntax as it seems when I insert it the product pages do not load. I tried to insert the following before the product class and it still gets an error but not sure what I'm doing wrong. I even placed the define statement in and even tried renaming $define_page to match thinking it was duplicating in some way but still doesn't work. It's probably a syntax error of some type... Any ideas?

    PHP Code:
    $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_MAIN_PAGE, 'false');

    /**
     * get the Define Main Page Text
     */
    <div id="indexDefaultMainContentProduct" class="content"><?php require($define_page); ?></div>
    <?php ?>

  4. #4
    Join Date
    Jan 2010
    Posts
    124
    Plugin Contributions
    0

    Default Re: Need Main Page Text on Product Pages

    Well I figured it out by using the "include" function as opposed to "require" just for troubleshooting. The header does not load the variable "$define_page" for the product pages and I could not define it in the same class. I know I'm stumbling through PHP here but I did accomplish what I needed. The define main page text is now at the top of my product pages. Maybe someone else can benefit from it too? Let me know if I can help as this will allow me to place text for sales, coupons, etc... directly in the pages as when I get hits from the shopping sites they land directly on the product pages not the main page.

 

 

Similar Threads

  1. Define Main Page Text shows up on wrong pages
    By belaze in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Nov 2011, 08:37 PM
  2. define main page text repeated in category pages
    By dealbyethan.com in forum General Questions
    Replies: 17
    Last Post: 25 Oct 2010, 02:22 PM
  3. Main Page Define - Product Listing above Main Text?
    By SaMortensen in forum Basic Configuration
    Replies: 22
    Last Post: 31 Jul 2009, 05:12 AM
  4. Main page text displays on all pages
    By g3steve in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 17 Oct 2008, 06:24 PM
  5. Help-- main product catagory pages contain main_page text too
    By gypsyrose in forum General Questions
    Replies: 5
    Last Post: 26 Feb 2008, 01:22 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