| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Displaying extra fields in products.tpl (solved) | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Displaying extra fields in products.tpl (solved)
Im trying to get the Details from product.tpl to display next to each product on the products.tpl page.
I tried adding the following but with little success: Code:
So I modified it to something like this: Code:
But that didnt work as I expected. I understand I probably just need to pass the product id or information but am not skilled enough to figure it out on my own. So in summary, where you see the list of products you see a short summary, a retail price and etcetera - I would also like to display the extra fields as shown on the product.tpl page. Anyone know how ? Thanks much ! Shimone
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#2
|
|||||||
|
|||||||
try:
{$products[product].fulldescr}
__________________
ex x-cart guru |
|||||||
#3
|
|||||||||
|
|||||||||
Thanks for the reply.
I'm actually looking to get just the details, not the full description. The details include in the file "modules/Extra_Fields/product.tpl" otherwise known as Extra Fields. I may be calling it by the wrong name but that's what the language file says. Thanks again for the help ! Shimone
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#4
|
|||||||||
|
|||||||||
I did notice the java code at the top of the product.tpl is relevant to the extra fields
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#5
|
|||||||
|
|||||||
Exactly
I asked about the very same thing b4. It would be very helpful if we could do this.
Thanks |
|||||||
#6
|
|||||||||
|
|||||||||
Quote:
I believe the javascript on product.tpl is for the display of product options and for form validation.
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#7
|
|||||||||
|
|||||||||
Found the solution...
Okay, I figured out how to do this on my own.
It's actually pretty easy. To display information from the extra fields simply add the following: Code:
where param00 is the first extra field. Continue from there and add as many extra fields as you have in the DB Code:
This will simply list the fields. You should also add what they are. For example: Code:
I implemented this on the customers/products page directly beneath the line: Code:
If you're still unsure as to what the end result will look like try adding the code to the products page and you will soon see. You may also want to consider adding it to the Featured Products page as well.. Also for reference, poking around the database and finding the xcart_products table will list all the available fields. Try switching out the param00 for something else (like fulldescr) and you will quickly see how easy this really is... Thanks for the lead funkydunk
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#8
|
|||||||
|
|||||||
A lot of the tiny mods are really very easy once you understand how this thing hangs together.
Smarty just makes it really easy to just refer to a variable and hey presto it is on the page !
__________________
ex x-cart guru |
|||||||
#9
|
|||||||
|
|||||||
what about product options
I'm still mining around the forums, but is there any way to have the product options appear on the products.tpl page? I had this customized, but I lost it on upgrade and don't want to pay for it again.
__________________
Gregg Osofsky Version 3.4.4 Gold |
|||||||
#10
|
|||||||
|
|||||||
Quote:
__________________
shuulup |
|||||||
|
|||
X-Cart forums © 2001-2020
|