[Typo3-shop] more than 1 shop in a site
Franz Holzinger
franz at fholzinger.com
Wed May 4 18:35:44 CEST 2005
Hello Vladimir,
>>This is possible. But you must override in your template all the default
>>settings. The two shops must be on different branches of the page tree.
>>One template should not inherit anything from the other template.
>
> Thanks for the answer. So you mean that the two shop templates must not
> inherit both the main template, right? So I have to create my second shop
> out of the main template, or to set to true my second shop template
> rootlevel, clear constants and clear setup?
Yes, exactly with this you have the warranty that both shops are
independent from each other.
> And I'll need another one php file. Is there a way I can copy and edit the
> file, so that second shop uses the new one, and the first shop uses the old
> one?
You can copy the tt_products directory and rename it to anything else.
But notice that the 2 shops have still the same database tables, defined
in ext_tables.sql. If the shops should be totally independent you would
have to rename the database tables for the second shop.
You have to edit the file ext_emconf.php and change tt_products in the
other files, where it is used as the name of the extension.
A better solution however would be to replace the name 'tt_products'
with $_EXT in all php-files. Tell me, if you want to do this.
Franz
More information about the TYPO3-project-tt-products
mailing list