I'm just trying to add an include statement to the bottom of the main index file in zencart. It doesn't work. When I paste the contents of the included file in the index, it works fine. Any thoughts?
Thanks,
Peter
I'm just trying to add an include statement to the bottom of the main index file in zencart. It doesn't work. When I paste the contents of the included file in the index, it works fine. Any thoughts?
Thanks,
Peter
Have you tried require instead of include?
For example, the header is included with this statement
Code:require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
Visit Qacaq.com, your Online Jewelry Store in Malaysia .
Qacaq.com Australia - Your Gemstone Jewelry Store in Australia was launched.
It can depend on exactly what you are trying to include ... more details?I'm just trying to add an include statement to the bottom of the main index file in zencart. It doesn't work. When I paste the contents of the included file in the index, it works fine. Any thoughts?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
... and the syntax you are using and the exact position on the page?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
Try putting it in the template file instead of the php file.
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
May I suggest you start with the tutorial/FAQs on how to customize Zen Cart before you do anything further? Pay particular attention to the section on how to create your template overrides.
https://www.zen-cart.com/tutorials/index.php
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.