Jump to content
Sign in to follow this  
paulm2003

BTSv1.2 Support

Recommended Posts

I mean MODULE like "newsdesk" (contribution), "moimage" and others
Aha :)

 

Take the contribution (or "module") description, and look at which files need to be changed. And if, according to the description, you "normally" need to edit product_info.php for example, with the BTS you often need to edit both product_info.php (code but no output) and templates/yourtemplate/product_info.tpl.php (ouput code + HTML). Most BTS code isn't different, it's only separated into separate files.

 

Some contributions are not so easy though, it's about the same problem as you will have after you have already added some contributions, and then try to install another one that affects the same file or sometimes even the same piece of code.


Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

Hi all

 

i hope you can help me. I have installed your nice Contrib on my local PC. Now i have some Problems to porting the Contribution osc_mwhois from the Contrib site on oscommerce.com.

 

http://www.oscommerce.com/community/contri...l/search,mwhois

 

 

The Contrib shows the Header at the Bottom from the Site. Can you help me to fix the Problem? Sorry about my bad English. I'm a german guy.

 

Marcus

Share this post


Link to post
Share on other sites

Has anyone got the tpl for the Wishlist contribution?

 

I've tried creating a template by stripping HTML out, leaving PHP and adding the filenames to filenames.php, blah blah, but no luck.

 

I've actually got the wishlist.php working (somewhat) but it looks weird and I know I am doing something wrong.

 

BTW, I am a web designer with 6 years of experience and I know my way around HTML/CSS. I muck about with small PHP snippets in my HTML code but nothing big.

 

Shine your light on me please. :thumbsup:

Edited by annab

Share this post


Link to post
Share on other sites

Does anyone have a link to a working BTS tutorial? There was one linked to a while back, but it is no longer online. The "BTS forums" someone mentioned [here] seem to be about something called Zen Cart. I couldn't find anything about BTS on those forums anyway.

 

I've found a few free BTS templates online, and I've figured out how to swap between them, but I want to be able to create a unique site design myself, not using a pre-made template.

 

STS I understood, and could use. I switched from STS to BTS because I was having a few problems getting other contributions installed, and now I have the opposite problem: everything works, but I don't really understand BTS. :'(

 

Is there a tutorial somewhere that shows step-by-step how to create new layouts using BTS?

 

Thanks! ^_^

Edited by Taipa

Share this post


Link to post
Share on other sites

Ok here's my question...

 

I need to have a template for the new_products module located at /includes/modules/new_products.php

 

This module is the table with the featured products displayed right after the Welcome to our shop message at the index page. I need to alter all the table completly to fit my site needs...

 

Is this possible?


There's a diference between living & BEING ALIVE!

Share this post


Link to post
Share on other sites

Well, it was a few days ago- but PROBABLY because I wanted to direct the question at you and I forgot to UNQUOTE my reply.

 

-Jyn

 

:rolleyes:

 

here: http://www.exoticgemsbrazil.com/store/temp...2-final/images/ ?

and/or right click on image in browser and choose properties

and/or ake a look at the stylesheet

etc.

 

why do you quote irrelevant information?


=======,+'^'+,===============================

Jyn Meyer

`+,.,+' Be Glad the world sucks- if it didn't we would all fall off.

===========================================

Share this post


Link to post
Share on other sites
Ok here's my question...

 

I need to have a template for the new_products module located at /includes/modules/new_products.php

Unfortunatey this is one of the files that isn't templated yet. Maybe a contrib exists that allows easyer changes to this module?

Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

A couple of pages up there have been some posts about the CCGV & BTS by talon777, I think he has got it working.

 

(at page 2)

Edited by PandA.nl

Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

Dear members,

 

Which kind of conditional could I do in "main_page.tpl.php" to print out different "<BODY>" based in different pages, as example below to by passing:

"checkout_shipping.php":

 

<BODY on load = "document. checkout_payment.submit()"; "return check_form()">

 

I've tried without sucess put conditional with META_TAG_TITLE...

 

 

This "trick" bypass checkout pages "loading" forms in "body tag" with "onLoad events" (http://forums.oscommerce.com/index.php?act=ST&f=12&t=94476)

 

Thank you

Ant?nio Cordeiro

Share this post


Link to post
Share on other sites

Hello, could someone tell me how to uninstall BTS completely? It is far more copletecated than STS. It has no support, although I checked the community forum, the author can answer the question.

 

I am frustratrated with BTS, especially for me a designer who have no idea about php, BTS gave me a very hard time to customize the my own outlook of the OSC.

 

BTS still use pieces of php codes into the layout, it didn't seperate the design from coding, I was trying to do the layout, like how to set the background for some cells, I don't know how BTS realizes that.

Share this post


Link to post
Share on other sites

with you having one post, have you made design changes? easiest way is to start all over from scratch.

 

the documentation does state, that you need to have a few skills to use bts.

 

it also recommends that if you dont understand the instructions, etc that you should probably not be using it.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites
I am frustratrated with BTS, especially for me a designer who have no idea about php, BTS gave me a very hard time to customize the my own outlook of the OSC.

 

BTS still use pieces of php codes into the layout, it didn't seperate the design from coding, I was trying to do the layout, like how to set the background for some cells, I don't know how BTS realizes that.

 

You're a designer and can't figure out how to set the background to a few td's? Hmm.

 

Anyway, check the CSS in the template folder.

Share this post


Link to post
Share on other sites
Anyway, check the CSS in the template folder.

 

 

I have set the background image for the navigation bar, it works for the OSC without BTS, but when it applied to the BTS, background image disappearred, any ideas?

 

 

TD.infoBoxHeadingNew {

font-family: Verdana, Arial, sans-serif;

font-size: 17px;

font-weight: bold;

background-image: url('http://localhost/max/catalog/images/table_categories.gif')

color: #330066;

}

 

and I also try the relative path still didn't work.

 

TR.headerNavigation {

font-family: Verdana, Arial, sans-serif;

font-size: 17px;

font-weight: bold;

background-image: url('images/MainMenu1-bg.gif')

}

 

Please help me out, Thanks !!!!

Share this post


Link to post
Share on other sites

Hi,

 

We are currently using AutoTheme (AT-Lite .8)

 

AT-Lite: The free GPL version of the AutoTheme HTML Theme System for osCommerce, MD-Pro, PostNuke, PHP-Nuke, CPG-Nuke and eNvolution.

 

for an osCommerce site at http://johnnyzmodz.com/

 

(This seems to work more like a templating system though ?). The site looks good, however having looked in detail through the osCommerce modifications, I'm concerned at the method/s that were used to do the templating, in that it could impose restrictions to further improving the site, by the addition of osCommerce contributions, or other customisations.

 

Various files in the /includes path have been modified to suit this product, and at least 40 files in the /catalog path have also been modified. Modifying files does not concern me, however, the replacement of standardised osCommerce code and the addition of various functions, further removes this product from the osCommerce standard/model.

 

As stated, my main concern is the ease of which we can add add other osC contribs, or add our own customisation, and I'm concerned that as most contributions I've installed are based on the 'osCommerce model' if you like, that using 'autotheme' may not be a good long term solution where a site has significant customisation.

 

Now to my question, will the BTS contribution be able to produce the same layout as displayed on the website at present ? We need to keep the same 'green theme'' with the dark background,etc.

 

We also need to be able to:

 

* Remove or add information boxes easily

* Adding a better navigation bar on the left hand side

* Increase the page width without showing 'gaps' with high resolution

* More buttons that are matched to current images.

* Add a good thumbnail contribution

 

Hopefully someone can advise if the BTS contribution will be a suitable replacement.

 

Thanks,

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

Just installed v1.4, does anyone know what this file is used for, got a 404 on it:

 

keepieapart.js

 

it came from line 8 of /templates/CSS-fluid-1/man_page.tpl.php

 

<script src="templates/keepieapart.js"></script>

 

Peter

Share this post


Link to post
Share on other sites
Hi,

 

Just installed v1.4, does anyone know what this file is used for, got a 404 on it:

 

keepieapart.js

You can safely remove the line(s) calling the keepieapart.js script, it's not needed. It was added for testing purposes only (testing compatibility with older IE versions).

 

About the layout: you can produce any layout, with or without the BTS. The main differerence between stock osC, and osC with the BTS, is that most common HTML code and PHP layout code has been moved to one main_page.tpl.php (=>40+ catalog files) and one box.tpl.php (=>15 sideboxes) file. This makes it easyer to modify the looks and create new templates, switch templates etc etc. But adding most catalog side contributions (which are made for stock osC) will be more problematic (because the code has moved).

 

With a stock osC MS2 install you can create exactly the same layout as with the BTS, you only need to modify a lot more files to achieve the same.

 

I.E.: I've seen several skins for download for osC MS2, but none using a CSS main layout. That a CSS mainlayout template exists for the BTS is because I found it was quite easy to create with the BTS. I would certainly not have done it without the BTS.


Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

Hi Paul,

 

You can safely remove the line(s) calling the keepieapart.js script, it's not needed. It was added for testing purposes only (testing compatibility with older IE versions).

 

Okay, thanks for your advice on that. From memory it only occured when switching to the CSS layout.

 

About the layout: you can produce any layout, with or without the BTS. The main differerence between stock osC, and osC with the BTS, is that most common HTML code and PHP layout code has been moved to one main_page.tpl.php (=>40+ catalog files) and one box.tpl.php (=>15 sideboxes) file. This makes it easyer to modify the looks and create new templates, switch templates etc etc. But adding most catalog side contributions (which are made for stock osC) will be more problematic (because the code has moved).

 

With a stock osC MS2 install you can create exactly the same layout as with the BTS, you only need to modify a lot more files to achieve the same.

 

Yes, I have only just changed one minor thing, a background, and it was nice that a 1 line change in the main template file resulted in the background image showing up in all other pages. (I did first try changing the stylesheet, as there was a background image spec, but it didn't work, no doubt because it was actually a spec only for some table and row classes, not the 'body'.).

 

I get your point about being able to do the same thing as BTS, but having to modify many files. I guess the first contrib. I add with BTS will show me more of the advantages/disadvantages of doing it this way, with just one main template.

 

Thanks,

 

Peter

Share this post


Link to post
Share on other sites

Hi,

 

When trying to get some images worked out in the template file, I noticed that the CSS specification "mainLayoutLT" is defined twice in the stylesheet.

 

table#mainLayoutLT {
margin: 0px auto;
width: 100%;
}

table#mainLayoutLT {
border: 2px #ffb21c solid;
}

 

Am I missing something ?

 

Peter

Share this post


Link to post
Share on other sites
Hi,

 

When trying to get some images worked out in the template file, I noticed that the CSS specification "mainLayoutLT" is defined twice in the stylesheet.

 

table#mainLayoutLT {
margin: 0px auto;
width: 100%;
}

table#mainLayoutLT {
border: 2px #ffb21c solid;
}

 

Am I missing something ?

In general I would say this: http://www.w3schools.com/css/default.asp

 

But to be more specific: the code can be combined if you like:

table#mainLayoutLT {
margin: 0px auto;
width: 100%;
border: 2px #ffb21c solid;
}

If I remember well I split the "border and colors" and "fonts" and some other properties into separate sections of the stylesheet then. It is not the standard way to setup the styles, but it seemed fun to try it like that for a change :)


Please do not PM me for support, I will not respond anyway.

Share this post


Link to post
Share on other sites

Hi,

 

Can someone recommend a thumbnailer to use with BTS please. I'd prefer one that isn't "on the fly" (I like to conserve server resources where possible).

 

Thanks,

 

Peter

Share this post


Link to post
Share on other sites
Can someone recommend a thumbnailer to use with BTS please. I'd prefer one that isn't "on the fly" (I like to conserve server resources where possible).
Well I would say Automatic Thumbnail Creator since it doesn't alter any files that affect BTS, but it does create images on the fly, so I don't know if you wanna use it or not...

There's a diference between living & BEING ALIVE!

Share this post


Link to post
Share on other sites

Hi,

 

Well I would say Automatic Thumbnail Creator since it doesn't alter any files that affect BTS, but it does create images on the fly, so I don't know if you wanna use it or not...

 

Thanks, the Thumbnailer with Caching looks okay, as the notes on the caching state:

 

// Cache Images? Set to true if you want to create cached images for each thumbnail.

// This will add to disk space but will save your processor from having to create

// the thumbnail for every visitor.

 

Peter

Share this post


Link to post
Share on other sites

So. i'm trying to install TotalB2B overtop of BTS.

 

i've got everything done except the boxes... i see that a lot has been modified in the moxes directory and i don't quite understand how i need to integrate the files. here's what i have:

 

shopping_cart.php

<?php
 $boxHeading = BOX_HEADING_SHOPPING_CART;
 $corner_left = 'square';
 $corner_right = 'rounded';
 $boxLink = '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a>';
 $box_base_name = 'shopping_cart'; // for easy unique box template setup (added BTSv1.2)

 $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)

 $boxContent = '';
 if ($cart->count_contents() > 0) {
   $boxContent = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
   $products = $cart->get_products();
   for ($i=0, $n=sizeof($products); $i<$n; $i++) {
     $boxContent .= '<tr><td align="right" valign="top" class="infoBoxContents">';

     if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
       $boxContent .= '<span class="newItemInCart">';
     } else {
       $boxContent .= '<span class="infoBoxContents">';
     }

     $boxContent .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';

     if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
       $boxContent .= '<span class="newItemInCart">';
     } else {
       $boxContent .= '<span class="infoBoxContents">';
     }

     $boxContent .= $products[$i]['name'] . '</span></a></td></tr>';

     if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
       tep_session_unregister('new_products_id_in_cart');
     }
   }
   $boxContent .= '</table>';
 } else {
   $boxContent .= BOX_SHOPPING_CART_EMPTY;
 }

 if ($cart->count_contents() > 0) {
   $boxContent .= tep_draw_separator();
   $boxContent .= '<div align="right">' . $currencies->format($cart->show_total()) . '</div>';
 }


include DIR_WS_INCLUDES . 'select_template_boxes.php'; // BTSv1.4


 $boxLink = '';
?>

 

and i need to integrate this into the file:

  $info_box_contents = array();
 $info_box_contents[] = array('text' => $cart_contents_string);

 //TotalB2B start
 global $customer_id;
 $query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'");
 $query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest);
 if ((($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) || ((tep_session_is_registered('customer_id')))) {
     $box_text = $currencies->format($cart->show_total());
 } else {
     $box_text = PRICES_LOGGED_IN_TEXT;
 }
 if ($cart->count_contents() > 0) {
   $info_box_contents[] = array('text' => tep_draw_separator());
   $info_box_contents[] = array('align' => 'right',
                                'text' => $box_text);
 }
 //TotalB2B end

 new infoBox($info_box_contents);

 

i don't understand... was info_box_contents changed to

boxContent ?

 

i would really appreciate if someone could help me integrate this file and help me understand the basic structure of the new boxes/*.php

 

thanks,

Mark

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×