osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 01-19-2010, 09:39 PM
Active Member
 
Join Date: Aug 2009
Location: indiana
Posts: 266
Thanks: 56
Thanked 8 Times in 7 Posts
Rep Power: 1
blackhawk will become famous soon enough
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 01-20-2010, 12:52 AM
ridexbuilder's Avatar
osCMax Development Team

 
Join Date: Jul 2008
Location: Haggisland
Posts: 1,213
Thanks: 129
Thanked 121 Times in 113 Posts
Rep Power: 9
ridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to allridexbuilder is a name known to all
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.
__________________
UK-based hosting plans with installation, configuration, support and maintenance.
(& some ad-hoc jobs).


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 01-20-2010, 02:53 AM
Active Member
 
Join Date: Aug 2009
Location: indiana
Posts: 266
Thanks: 56
Thanked 8 Times in 7 Posts
Rep Power: 1
blackhawk will become famous soon enough
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 01-20-2010, 03:01 AM
Active Member
 
Join Date: Aug 2009
Location: indiana
Posts: 266
Thanks: 56
Thanked 8 Times in 7 Posts
Rep Power: 1
blackhawk will become famous soon enough
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-03-2010, 02:58 PM
Member
 
Join Date: Nov 2009
Posts: 51
Thanks: 9
Thanked 2 Times in 1 Post
Rep Power: 1
lightdancer is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 05:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design