X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   changing the data on a product page (https://forum.x-cart.com/showthread.php?t=7445)

spoonernyc 05-05-2004 09:12 AM

changing the data on a product page
 
I have a product page where I want to have a link to more info about ingredients. For example: I want to have on each product page two links One to the main product page, one to a page with a similar layout only with different body copy(the listing of ingredients). How would I do this with .tpl? In PHP my thought would be the have the page product.php?id=1 point to the main page and product.php?id=2 point to the ingredients page.. All done with a conditional if id =1 then include this main copy elseif id = 2 then include the ingredient copy. How can I do this in the product.tpl file?

thanks

Emerson 05-05-2004 09:13 AM

Can't you use extra fields for this?

spoonernyc 05-05-2004 09:21 AM

yeah that is the plan but I cannot figure out the link interaction.

basically I will have the product.tpl include a
{if page= ingredients}
{products.param01}
{/if}
{if page=main}
{products.description}
{/if}

but my question is how to pass the page variable,
example:
linkto ingredientspage

can I do that?
how woudl I make it work within the .tpl framework.

thanks


All times are GMT -8. The time now is 09:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.