
Originally Posted by
jamesmcl515
Hey Eric,
Once again you are an amazing resource for the Zen Cart community, thank you. Before we give this another shot, I have one additional question.
Do we need to include the entire contents of the 'tpl_footer.php' page on the 'tpl_main_page.php' page or just a snippet that is relevant to iDev?
Thanks again,
James
James,
Thanks for the kind words. I love to help.
To answer your question ...
You do NOT want to include the entire contents of the tpl_footer.php file in the tpl_main_page.php
You only want to include the bit that I have indicated in the instructions at that previous link (let me know if you need that again.)
It would look something like this (at the bottom of your tpl_main_page.php).
PHP Code:
< ?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
< ?php
if ($_GET['main_page']=="checkout_success") {
##########################################
## START iDevAffiliate INTEGRATION WITH ZEN CART ##
##########################################
Insert your iDeve Affiliate code here taken from your tpl_footer.php page
#######################################
## END iDevAffiliate INTEGRATION WITH ZEN CART ##
#######################################
} // end if for determining if this was the checkout_success page.?>
Let me know if that helps. Remember, once you do this and find it is working you will need to remove that "checkout_success" directory (the one under your custom template NOT the core one!) for the override to work.
If you need me to fix it for you let me know and I can take a look (I'll PM you the details).