View Single Post
  #3  
Old 09-20-2003, 01:00 PM
 
MiguelS MiguelS is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 36
 

Default

Yeah i was able to incorporate it in the template field which is great, but it's not the way i'd like it to be. See because the php file i'm including is product specific.

What can I do to have certain templates work for certaing product categories. For instance. I have a custom table that creates a pop-up window when clicked on for product description.

But no all my products have these specific tables.

The websit i'm working on is a photography store.

One part of the store has pictures that are for sale, the other part of the store has cameras for sale.

The area that has photos has a little table that has a pop of several product descriptions, however the Camera products won't have this table, but because the table is embedded in the product template it will appear for all products.

What can I do to work around this?

I think I can work around this if i could grab the current category value, but i don't know how to do that. What snippet of code can i use to do this say I want:

if category=Action Photos
literal
include ("table.php")
/literal

else
regular display.

I just need to know what variable the current main category is stored in so i can check it against a constant. Then I think i can solve my problem. Many thanks in advance.

P.S. the site that we bought the license for is trevinosphoto.com
Reply With Quote