osCmax v2.5 User Manual
Results 1 to 5 of 5

bts mutliple template help

This is a discussion on bts mutliple template help within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Does anyone know if we can assign domiain names to templates in oscmax 2.04? Is there anything buggy about the ...

      
  1. #1
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Question bts mutliple template help

    Does anyone know if we can assign domiain names to templates in oscmax 2.04? Is there anything buggy about the concept of doing that? Or is this something available with 2.1? All I want to do is have 2 domains going to their own respected template folders on the same oscmax site. How would that effect the config file? The Multistore contribution looks outdated and too bulky for such a small request in 2.04 Anyone have any suggestions on the topic? thanks! bh

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: bts mutliple template help

    A conceptual idea (and sounds too simplistic as it stands):
    Name the two templates the same as your domains, then when the index is called use yourstore.com/index.php?tpldir=domain-name
    Most likely PHP_SELF would need to be passed for the domain-name.

    Just a thought.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: bts mutliple template help

    Thanks! on a default install, would the httaccess and DIR_WS_HTTP_CATALOG be the only places where I would need to modify the index? for example turn...

    define('DIR_WS_HTTP_CATALOG', '/catalog/');
    to
    define('DIR_WS_HTTP_CATALOG', '/catalog/index.php?tpldir=domain-name');

    also, and is it possible to have a parked domain on a url, for example assign...
    http:// www .store1.com to index.php?tpldir=store1.com
    and...
    http:// www .store2.com to index.php?tpldir=store2.com
    thanks!
    Last edited by blackhawk; 01-20-2010 at 02:56 AM.

  4. #4
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: bts mutliple template help

    I'm probably making this harder than it is. If i park a 2nd domain name onto the same site, then maybe just use php to capture what that url is, and from there change the cosmetics of how the site looks a bit such as with the stylesheet and home page content. Everything else outside of these 2 things will remain the same. Just a new landing page and stylesheet for the entire site. so maybe all i really need to do is something like this in the config...

    PHP Code:
      if ($_SERVER['HTTP_HOST'] == 'storeB') {        define('HTTP_SERVER''http://storeB');   define('HTTPS_SERVER''http://storeB');   define('ENABLE_SSL'false);   define('HTTP_COOKIE_DOMAIN''storeB');   define('HTTPS_COOKIE_DOMAIN''storeB'); } else {   define('HTTP_SERVER''http://store');   define('HTTPS_SERVER''http://store');   define('ENABLE_SSL'false);   define('HTTP_COOKIE_DOMAIN''store');   define('HTTPS_COOKIE_DOMAIN''store'); }  ...define('HTTP_COOKIE_PATH''/catalog/'); .... .... 
    Last edited by blackhawk; 01-20-2010 at 03:15 AM.

  5. #5
    Member
    Join Date
    Nov 2009
    Posts
    51
    Rep Power
    3


    Default Re: bts mutliple template help

    I got the multi store back end to work just fine. The problem I am having now is being able to switch templates between the two stores. I think that a quick fix would be to just set up the different template with a same name, but that can get confusing later so I was wondering if anyone had a solution.

Similar Threads

  1. BTS Template Tutorial, Examples, converting osC template to BTS
    By michael_s in forum osCMax v2 Features Discussion
    Replies: 24
    Last Post: 07-11-2011, 06:36 PM
  2. template help, please
    By ciscoeuk in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 01-17-2010, 11:02 AM
  3. bts template system with html template
    By silverping in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 10-08-2009, 09:12 AM
  4. new web 2.0 template
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-10-2009, 09:00 AM
  5. TEMPLATE INSTALL ISSUE --> Illegal Template Directory
    By ashelleydesign in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 02-02-2007, 05:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •