Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    17
    Plugin Contributions
    0

    Default Add Conditional Code To Some Pages

    This post continues a thread started here:
    http://www.zen-cart.com/forum/showthread.php?t=34199

    Now, I also need to add the php code to the php "header" of the account_history_info.

    Now, I expected it to look like the " checkout_success/header_php.php " so I was rather surprised.

    Could someone tell me how the products, which are in the order, get assembled together?

    Is that what takes care of it ?
    $order = new order($_GET['order_id']);



    In any case, I need to look through the order items and see, if a spec. product is in it, so that I can start my license delivery.

    Any idea as to how that could happen ?

    Anuragji

  2. #2
    Join Date
    Apr 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Add Conditional Code To Some Pages

    Actually, let me rephrase this:

    The PHP Code that I need to insert into the whole account_history_info needs to be executed BEFORE the following files:

    • templates/mytemplate/common/html_header.php
    • templates/mytemplate/common/tpl_main_page.php
    • modules/downloads.php


    And it need to search through which downloadable products are in the order that is being displayed.

    Anuragji

    PS: Yes, Yes I know ... if I ever intend to update Zencart, I'm so in for it
    Last edited by Anuragji; 11 May 2006 at 03:12 PM. Reason: typo
    Anuragji

    [FONT="Georgia"]Why not?[/FONT]

  3. #3
    Join Date
    Apr 2005
    Posts
    17
    Plugin Contributions
    0

    Re: Add Conditional Code To Some Pages

    After being caught up with other projects I have returned to work on this one...

    Any idea.. anybody... DR BYTE!!!! HELP!!!!


    Anuragji

    [FONT="Georgia"]Why not?[/FONT]

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Add Conditional Code To Some Pages

    Quote Originally Posted by Anuragji
    Actually, let me rephrase this:

    The PHP Code that I need to insert into the whole account_history_info needs to be executed BEFORE the following files:

    • templates/mytemplate/common/html_header.php
    • templates/mytemplate/common/tpl_main_page.php
    • modules/downloads.php


    And it need to search through which downloadable products are in the order that is being displayed.

    Anuragji

    PS: Yes, Yes I know ... if I ever intend to update Zencart, I'm so in for it
    The file to do it in is includes/modules/pages/account_history_info/header_php.php - that file is executed immediately after application_top.php and before hmtl_header.php.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Apr 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Add Conditional Code To Some Pages

    Yes, it is clear to me that this is the file to test for the products...

    BUT I expected it to look a little like "checkout_success/header_php.php", where it is really obvious how the product array gets put together...

    But it looks quite different so I am a bit confused...

    What part of the code puts togetether the products ?

    Anurag
    Anuragji

    [FONT="Georgia"]Why not?[/FONT]

 

 

Similar Threads

  1. v150 I want some footer code not to show up on the https pages
    By creamcrackers in forum General Questions
    Replies: 3
    Last Post: 4 Jul 2012, 11:15 PM
  2. Adding conditional code to emails
    By Scott_C in forum General Questions
    Replies: 7
    Last Post: 17 May 2010, 09:15 AM
  3. Where to add some javascript code?
    By snowy2007 in forum General Questions
    Replies: 11
    Last Post: 22 Feb 2009, 03:31 PM
  4. Conditional code - how to?
    By twdhosting in forum General Questions
    Replies: 17
    Last Post: 25 Oct 2007, 10:20 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