| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Products.tpl - What is safe to get rid of? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 ![]()
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#2
|
|||||||
|
|||||||
![]() That is a lot to ask
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#4
|
|||||||
|
|||||||
![]() Ok 1 question then
![]() 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?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#5
|
|||||||
|
|||||||
![]() 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
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 ![]()
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Grant, do you feel lucky today?
![]() Replace products.tpl code with this: Code:
|
|||||||||
#8
|
|||||||
|
|||||||
![]() 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 ![]()
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#9
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#10
|
|||||||
|
|||||||
![]() Quote:
![]() 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?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
|
|||
X-Cart forums © 2001-2020
|