| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
changing the data on a product page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() Can't you use extra fields for this?
__________________
Emerson █ Total Server Solutions LLC- Quality X-Cart Hosting █ Recommended X-Cart Hosting Provider - US and UK servers █ Does your host backup your site? We do EVERY HOUR!!! █ Shared Hosting | Managed Cloud | Dedicated Servers |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|