osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Template selection

This is a discussion on Template selection within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi, This might sound like an incredibly stupid question, but how do I select the template I want to use ...


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

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-25-2005, 05:26 PM
New Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jsp_1983
Default Template selection

Hi,

This might sound like an incredibly stupid question, but how do I select the template I want to use from the administration control panel?

I know where and how to do it in the Reloaded version of OSC, but OSCMax is quite confusing to me!

Also, I am assuming the method of template creation is different to the method used on Reloaded? Are there any FAQs on creating them in OSCMax?


Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-26-2005, 04:15 AM
neil's Avatar
Active Member
 
Join Date: Nov 2002
Posts: 245
Thanks: 9
Thanked 7 Times in 6 Posts
Rep Power: 6
neil is on a distinguished road
Default RE: Template selection

http://www.oscdox.com/phpWiki.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-26-2005, 08:13 AM
New Member
 
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
webmissie1
Default RE: Template selection

What are the differences in the supplied templates? How do we know which one to use at the start? thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-26-2005, 08:15 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,327
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Template selection

To specifically answer your question about changing the default template, it is really easy:

In the admin under Configuration, click on Default Template Directory and change the directory name to the actual teplate directory name you want to use. It is set by default to aabox, but you can change it to osC, or whatever template you are using.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 09-26-2005, 09:16 AM
New Member
 
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
webmissie1
Default being more specific

What I mean to ask is whether or not the different templates affect the fuctionality of the program or do they all work the same, just look different. I am not familiar with templates, I customized a stock osc site from scratch as my first project years ago so all these fanciful features have me a little confused at the start of a new project using this great package..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 09-26-2005, 11:07 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,327
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: being more specific

Pick whichever template you want. There is no difference in function, they just look different. They are samples for you to check out, but really it does not matter which you start with...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 10-06-2005, 07:01 AM
New Member
 
Join Date: Sep 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
webmissie1
Default do i need to modify fallback/content with css-fluid

am I supposed to be modifying the files in templates/fallback/content even when Im using the other templates. I dont understand why there is no content folder in the other template folders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 10-06-2005, 12:19 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,558
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default RE: do i need to modify fallback/content with css-fluid

There is ONLY one file you really need to change - main_page.tpl.php and the CSS. IF and ONLY IF you need to change something else that is very specifice then COPY that file over to your template ... DO NOT CHANGE THE "fallback" unless your adding a mod....
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 10-17-2005, 12:56 PM
New Member
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jsp_1983
Default

I've tried searching, to no avail.

In STS, I've found you keep each template's images (info buttons etc) in an images folder in that template's folder.

I can't find any similar system for BTS- are you just expected to keep manuaully replacing images in the default /image folder each time you change templates?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 10-20-2005, 08:43 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Posts: 1,558
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

I have found the instruction do to so. Strange that it has not BEEN merged into the core of BTS....YET...

Maybe it will be added into next version for osCMax...

Intructions:
Quote:
How to add different images, buttons etc to each theme with BTS. (In 4 easy steps:

All default graphics normally can be found in
/catalog/includes/languages/< language >/images/
/catalog/includes/languages/< language >/images/buttons/...
/catalog/includes/languages/< language >/images/icon.gif

If you theme should use default images don't copy anything.

=================================================
1. Copy all folders from /catalog/includes/languages/ to your template folder

You should have this:
/catalog/templates/< template folder >/< language 1>/images/buttons/...
/catalog/templates/< template folder >/< language 1>/images/icon.gif
...
/catalog/templates/< template folder >/< language N>/images/buttons/...
/catalog/templates/< template folder >/< language N>/images/icon.gif

=================================================
2. Delete unneeded files with language strings
/catalog/templates/< template folder >/< language N>/*.php

=================================================
3. Open /catalog/includes/functions/html_output.php

FIND THIS-(Aprox line 309):

Code:
////
// Output a function button in the selected language
  function tep_image_button($image, $alt = '', $parameters = '') {
    global $language;

    return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
  }
REPLACE WITH:

Code:
////
// Output a function button in the selected language
  function tep_image_button($image, $alt = '', $parameters = '') {
    global $language;
    if(file_exists($tplDir . $language .'/images/buttons/' . $image)) {
        return tep_image($tplDir . $language .'/images/buttons/' . $image, $alt, '', '', $parameters);
    } else {
        return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
    }
  }

FIND THIS-(Aprox line 294):

Code:
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
  function tep_image_submit($image, $alt = '', $parameters = '') {
    global $language;

    $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

    if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

    if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

    $image_submit .= '>';

    return $image_submit;
  }
REPLACE WITH:

Code:
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
  function tep_image_submit($image, $alt = '', $parameters = '') {
    global $language;

    if(file_exists($tplDir . $language. '/images/buttons/' . $image)) {
        $image_submit = '<input type="image" src="' .
            tep_output_string($tplDir . $language. '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
    } else {
        $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language .
            '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
    }

    if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

    if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

    $image_submit .= '>';

    return $image_submit;
  }
4. For different language icons open /catalog/includes/boxes/languages.php
FIND THIS-(Aprox line 33)

Code:
  while (list($key, $value) = each($lng->catalog_languages)) {
    $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
  }
REPLACE WITH:
Code:
  while (list($key, $value) = each($lng->catalog_languages)) {
    if(file_exists($tplDir . '/'.$value['directory'] . '/images/' . $value['image'])) {
        $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) .
            'language=' . $key, $request_type) . '">' . tep_image($tplDir . '/'. $value['directory'] . '/images/' . $value['image'],
            $value['name']) . '</a> ';
    } else {
        $boxContent .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) .
            'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' .
            $value['image'], $value['name']) . '</a> ';
    }
  }
Done!
Change graphics as needed - next time you change the template it will also use the changed graphics if available also!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

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
Price Updating Dynamically with Drop-Down Selection lisasher osCMax v1.7 Discussion 0 06-07-2005 01:41 PM
Products Attributes - drop-down menu for product selection SuperPickle osCommerce 2.2 Modification Help 0 10-11-2004 09:24 PM
country code selection? rabbit116 osCMax v1.7 Discussion 1 03-30-2004 12:57 PM
Category Selection Buttons auntie22 osCMax v1.7 Discussion 2 03-30-2004 11:14 AM
dynamic character selection dan000 osCommerce 2.2 Modification Help 0 11-18-2003 02:32 PM


All times are GMT -8. The time now is 11:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax