Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Call A Specific PHP Template

Call A Specific PHP Template

Locked

Views: 855

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
28 Mar 2008, 4:28 PM
#1
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Call A Specific PHP Template

:no: Hello Zen Family,
Can't figure this one out.... please help.

I need to be able to call a different php file when a certain path is called so that it will show the specific template and not the standard template.

I have the standard tpl_product_info_display.php to show as default.
When Clients click the "Custom Order" catagory, I would like for a different template to show (tpl_product_info_cust_display.php).

  1. Can this be done?
  2. How do I make this happen?

Thank you in advance for your help!!!:blush:

Also, this is on my localhost so I do not have a link to show.

28 Mar 2008, 4:35 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Call A Specific PHP Template

Not sure what you're hoping to achieve, but have you thought of customised stylesheets?

28 Mar 2008, 4:46 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Call A Specific PHP Template

That's what the product types were added for. Each product type calls its own template, which can show less or more information by default.

There is basic product-type documentation in the /docs/ folder of your Zen Cart files, as well as in the FAQs/tutorials area. You'll also see product types discussed in the Product Types section of the forum, and a few contributed product types which can be used as models for new ones if you don't like the 5 supplied with Zen Cart.

28 Mar 2008, 4:53 PM
#4
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: Call A Specific PHP Template

:blink: customized stylesheets? :mellow:/Now, Why did I think of that?/

I'll try it and let you know the results.
Thanks

fairestcape:

Not sure what you're hoping to achieve, but have you thought of customised stylesheets?

28 Mar 2008, 4:55 PM
#5
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: Call A Specific PHP Template

:blush: Please forgive me, I Forgot all about the Product Type section...Thanks

DrByte:

That's what the product types were added for. Each product type calls its own template, which can show less or more information by default.

There is basic product-type documentation in the /docs/ folder of your Zen Cart files, as well as in the FAQs/tutorials area. You'll also see product types discussed in the Product Types section of the forum, and a few contributed product types which can be used as models for new ones if you don't like the 5 supplied with Zen Cart.