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

can different product templates be used?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-18-2007, 08:17 PM
 
prakash123 prakash123 is offline
 

Member
  
Join Date: Jul 2006
Posts: 11
 

Default can different product templates be used?

Hello

I own a site, say hello.com , hello.com sells products a and b

The product pages for a,b currently have logo,header and footer of hello.com



I want to host a new site, www.hello1.com, with products x and y.

hello1.com will be served as hello.com/hello1/index.php


Now for the product pages of x and y, i need the logo of hello1 and header and footer pertaing to hello1.


Both sites will share the single xcart.

I would like to know if different products in a xcart can have completely different product templates.

your help will be greatly appreciated.

Thanks

Prakash
__________________
Xcart Gold

Linux LAMP Server

Xcart Version 4.1.2
Reply With Quote
  #2  
Old 02-19-2007, 03:07 AM
 
balinor balinor is offline
 

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

Default Re: can different product templates be used?

Prakash, I have asked you before...PLEASE update your forum signature with your X-Cart version.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-19-2007, 04:45 AM
 
prakash123 prakash123 is offline
 

Member
  
Join Date: Jul 2006
Posts: 11
 

Default Re: can different product templates be used?

balinor, what is your problem?
__________________
Xcart Gold

Linux LAMP Server

Xcart Version 4.1.2
Reply With Quote
  #4  
Old 02-19-2007, 04:46 AM
 
balinor balinor is offline
 

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

Default Re: can different product templates be used?

Prakash...I don't have a problem...I'm simply asking you to comply with the forum rules, which require that you add your X-Cart version to your signature. It is a simple request, please take 10 seconds to do it. Thank you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 02-19-2007, 05:56 AM
 
prakash123 prakash123 is offline
 

Member
  
Join Date: Jul 2006
Posts: 11
 

Default Re: can different product templates be used?

Ballinor I am sorry, I have updated the signature.

I was pissed, because i typed my question, and the first mail, i see is someone asking me to update my signature.

Kindly help with my question, if possible.

Thanks

Prakash
__________________
Xcart Gold

Linux LAMP Server

Xcart Version 4.1.2
Reply With Quote
  #6  
Old 02-19-2007, 06:02 AM
 
balinor balinor is offline
 

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

Default Re: can different product templates be used?

Thank you.

To answer your question, yes, you can have different skins/displays for different products, you would just need to use an {if} statement. Good thread on those here:

http://forum.x-cart.com/showthread.php?t=8881
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 02-19-2007, 06:09 AM
 
prakash123 prakash123 is offline
 

Member
  
Join Date: Jul 2006
Posts: 11
 

Default Re: can different product templates be used?

Thanks a lot, it was very helpful.

Though I cannot execute it now, i am relieved that a possibilty of having different product templates for each category does exist.

Thanks again, and have a wonderful day.

Prakash
__________________
Xcart Gold

Linux LAMP Server

Xcart Version 4.1.2
Reply With Quote
  #8  
Old 02-19-2007, 06:49 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: can different product templates be used?

You can also buy a mod that simplifies the process:

MULTIPLE PRODUCT TEMPLATES PACKAGE

Yes, you can do this with an if/else, but if you have more than a few variations, it can get messy... I opened my store by hard coding if/else per category and product... but now that Jon has shipped the 4.1 comaptible versions of these mods, I will migrate to the mod -- as it makes it very easy to change things.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #9  
Old 02-19-2007, 06:51 AM
 
prakash123 prakash123 is offline
 

Member
  
Join Date: Jul 2006
Posts: 11
 

Default Re: can different product templates be used?

Say my current product template is called, prod1.tpl

Can I make a new prod template prod2.tpl

and hyperlink my products to the Product URLs.

In that way, there is no logic right, as I am hard coding my URL in HTML.

Can this be done?
__________________
Xcart Gold

Linux LAMP Server

Xcart Version 4.1.2
Reply With Quote
  #10  
Old 02-19-2007, 07:08 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: can different product templates be used?

Prakash,

I am not following your question. Part of me thinks you are trying to avoid the xcart nav system... you speak of having a new domian, etc...

This is not going to work for you (it will kill your SEO, and you only have one database per store - not to mention the xcart license is only good for a single domain unless you have more thsan one).

Please clarify your question -- be specific. If you don't want to use your exact domain and products, make one up, but try to stay close to the subject. If you sell toy boats, don't use widgets as an example...

Your original question sounds like you want multiple domains, and it also sounds like you don't want xcart running on the site, but you want a static site to drop into xcart, ala a "buy now" button... at least that's how I'm interpreting it.

Please be more clear in your question.

PS -- Padraic busts his butt here to help everyone, and your pissy response back is not a good way to start. You didn't follow the forum guidelines, so you were asked to post your version. Basic stuff. Please respect our moderator!

PPS -- there is an advanced search for the forum that you probably shoudl enable. Got to your user CP for the forum and "join" the "expert" group (memberships). It allows boolean searches.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 01:18 AM.

   

 
X-Cart forums © 2001-2020