![]() |
Products.tpl - What is safe to get rid of?
I want to take my products.tpl file from THIS to something like THIS.
I need to know what I HAVE to keep in the template file to ensure the store stills runs properly. There seems to be a lot of stuff in the original .tpl file that may not be needed. I guess an explaination of what each piece of code does is what i'm after really. This is my products.tpl file Quote:
Any help would be greatly appreciated before I start to rush in there like a bull in a china shop ;) |
That is a lot to ask :) Why not just try commenting out one piece at a time until you get where you want to go? Make a backup first.
|
Quote:
Haha, yeah sorry I know it is. Ok so commenting out? I know i've seen this before but I can't remember what you have to do. Is it [**] or something before everyline you want to lose? |
Ok 1 question then 8)
What part of that code is pulling the 'short description' from the product info? Is it ; {$products[product].descr|truncate:300:"...":true} ? And if so - is it possible to add html (ie a clickable image) in the short description field or is it text only? |
Yes, that is it. To comment it out, you would do this:
{* {$products[product].descr|truncate:300:"...":true} *} And yes, the description fields accept html |
Quote:
Big up B :) This is gonna be easier than I thought. When I've done it i'll up the code in case anybody else is ever looking for the same thing :) |
Grant, do you feel lucky today? :D
Replace products.tpl code with this: Code:
{* $Id: products.tpl,v 1.45.2.17 2006/04/21 08:53:50 svowl Exp $ *} |
Zaja - you are a LEGEND!
Thank you so much brother - that works beautifully :) I have a little problem though - after speaking with Jon at websitecm it turns out that I have to be using skin1/customer/main/products_t.tpl and NOT skin1/customer/main/products.tpl Now i've had a look inside products_t.tpl and had a play around and boy is that one confusing page of code! Could the code you have written here be used in the products_t.tpl file also? And where would I place it? Because everytime i've tried to edit it at all I get all kinds of math errors and smarty parse errors. Ideally i'm trying to go from this : (which is the basic 1 column product_t.tpl with the buy button activated) http://www.wyzeshop.com/1st.jpg To something like this : http://www.wyzeshop.com/2nd.jpg Thanks again for hooking up that code man :) |
Well....you need a full customization of product listing! ](*,)
It may be better to look into the "Professional Help Services - Requests" forum, there you can find users(like Ryan, TelaFirma, Boomer, Jon, Carrie ... ) that can do it for you with a reasonable fee. |
Quote:
:( Thats what I have slowly started to realise. So the code you pasted earlier can't just be thrown into products_t.tpl then? Anyone have any idea what kind of dollar am I gonna be looking at for something like this? |
| All times are GMT -8. The time now is 01:47 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.