If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / ad additional functionality into the main page

ad additional functionality into the main page

Locked

Started by bunro on 20 Jan 2007, 4:41 PM · Views: 774

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Jan 2007, 4:41 PM
#1
bunro avatar

bunro

New Zenner

Join Date:
Oct 2005
Posts:
37
Plugin Contributions:
0

Post #1 by bunro

I would like to ad additional functionality into the main page.

What I would like is to call from /includes/modules/pages/index/header_php.php
require($template->get_template_dir('$tpl_main_a_default.php', DIR_WS_TEMPLATE, $current_page_base, 'templates'). '/$tpl_main_a_default.php');

This is not working hopefully someone can help me out here?

Best regards, Robert

20 Jan 2007, 4:56 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #2 by Kim

Could you explain a bit more about what you are trying to accomplish?

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.

20 Jan 2007, 6:35 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

I'm with Kim ... more info about what you're wanting to do will be helpful, including which exact pages are to be affected. Remember that the "home page" of "index" is used for more than just the "home" page.

I suspect the problem you're having is that you're trying to launch a template file from within the header, rather than from within a template. Try moving your code to the template file for the page you're wanting to adjust.

So ... what is your "$tpl_main_a_default.php" supposed to do ?
And why do you have a $ in the filename ?
etc ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

25 Jan 2007, 9:20 AM
#4
bunro avatar

bunro

New Zenner

Join Date:
Oct 2005
Posts:
37
Plugin Contributions:
0

Post #4 by bunro

Thanks for the reaction!

Okay, the essence of the question is how can I call a function (function sign_up($description) )when the customer is pressing a Hyperlink and after the click the same page is shown.
When a customer is pressing this Hyperlink I would like that then a function is called where I wil update a table in the database.

Hopefully this explains my question better.

Best regards, Robert