Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

No seperate tpl files for product listings?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-12-2006, 06:43 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default No seperate tpl files for product listings?

After much pissing about I have finally found out that skin1/customer/main/products.tpl is the same file that displays the short and long versions of a product.

Am I to assume that to modify the short listing of a product you have to re-write & re-name the entire product listing code? This seems way out of my league and to be honest pretty pathetic.

All i'm trying to do is alter the display of my products in list form and I can't seem to be able to do that without trashing the main product display code.

There has to be a way around this surely?

I've just spent $100 on a mod that will allow me to use custom templates per product. But I can't see how this is possible unless I want both the short form and long form displays of a product to look the same? Is there no way of splitting these up?

I find it pretty amazing that just about every single aspect of x-cart is called seperatley via some kind of code yet something as important (and lets face probably the most desirable customization) as this uses the same bloody template for 2 jobs!
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #2  
Old 05-12-2006, 07:06 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You lost me. Products.tpl controls the product display under a category. Product.tpl controls the product detail page. They are completely separate.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-12-2006, 07:10 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Quote:
Originally Posted by balinor
You lost me. Products.tpl controls the product display under a category. Product.tpl controls the product detail page. They are completely separate.

I just edited products.tpl and all of the changes I made appeared on both the listing & the 'see details' page.

??

I didn't even touch product.tpl
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #4  
Old 05-12-2006, 07:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Then you must have some sort of custom mod in place, as products.tpl has nothing to do with the product detail page by default.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-12-2006, 07:15 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Quote:
Originally Posted by balinor
Then you must have some sort of custom mod in place, as products.tpl has nothing to do with the product detail page by default.

Well I have just installed websitecm's 'customproduct & customcatergory' mods. But the reason I bought and installed them was to be able to do exactly what i'm trying to do - Use different templates for the varying product types in my store.

Surely if these mods somehow messed with the code so I couldn't do this they would be worthless?

Here are the mods I bought and installed LINK
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #6  
Old 05-12-2006, 07:16 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not familar with that mod, so you'll need to ask them. Sorry
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 05-12-2006, 07:17 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

Quote:
Originally Posted by balinor
Not familar with that mod, so you'll need to ask them. Sorry

Thanks anyway B
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:17 PM.

   

 
X-Cart forums © 2001-2020