Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BTSv1-1


paulm2003

Recommended Posts

I will try give some specific BTSv1-1 related support here if necessary.

 

As already said at the announcement ( http://www.oscommerce.com/forums/index.php?showtopic=67451 ) I am not a PHP programmer and I did not create the original BTS so I can't promise you anything. I made this contribution only because I had some trouble creating new templates for osC (and guess more people will encounter the same problems), mainly because the of the large amount of tables osC uses for layout, and the lack of CSS id's in the standard osC HTML.

 

This contribution makes it a bit easyer for me, and hopefully for some others also, to create and test new templates using the BTS, CSS and valid HTML.

 

Download at:

http://www.oscommerce.com/community/contributions,1263

for osC2 MS2.2 only!

 

Main new features/changes:

- extra "one table" layout template (loaded as default)

- extra CSS layout template (based on Tim Walling's CSS templates)

- added id's to the small boxes

- small bug fix (bug also aplies to BTSv1b)

- corrected several validation errors

 

The included templates are simple templates, only intended to be used as a basic startpoint to create your own templates.

 

The BTS is not a template system, so you still have to know some HTML/CSS to be able to create new templates.

 

I hope you have lots of: :D

 

Paul

 

All credits for the BTS remain with Brenden Vickery of course, I could not have made this without his BTS!

Edited by paulm2003
Link to comment
Share on other sites

I try test your BTS 1-1

but when I go to enlarge in product.info the pic

I see in popup window next:

 

Warning: main(templates/popup.tpl.php) [function.main]: failed to create stream: No such file or directory in z:\home\localhost\www\knp\popup_image.php on line 24

 

Fatal error: main() [function.main]: Failed opening required 'templates/popup.tpl.php' (include_path='.;/usr/local/php/pear') in z:\home\localhost\www\knp\popup_image.php on line 24

Link to comment
Share on other sites

Hi ruta,

 

but when I go to enlarge in product_info.php the pic I see in popup window next:

 

Warning: main(templates/popup.tpl.php) [function.main]: failed to create stream: No such file or directory in...

 

:o you are right! I introduced a new bug :( . But I am happy you found it this quick, and the solution is very simple (:relief:). Somehow I forgot to copy catalog/templates/popup.tpl.php. You can find it in catalog/templates-ORG just copy this popup.tpl.php to catalog/templates (and also to catalog/templates-CSS if you want to use/try the nice CSS templates).

 

Paul

Link to comment
Share on other sites

Hi ,

I've been trying to figure out how to make header image resize to a %.

Mainly to 100% of resolution. I've posted  within OSC forums , OSCDOX and also Phesis. No one has yet to even reply about it and its been a month.  Can you be of some assitance. FYI Im doing it to the "Original" template using Loaded 6.2 install from Phesis.

Hi FlipC,

 

I am not sure what you want, but to make the top logo image size 100%, using the "original" osC templates I would edit main_page.tpl.php and search for (almost at the top):

    <td valign="middle"><a href="http://www.eeweb.nl/winkel/index.php"><img src="images/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="204" height="50"></a></td>

and change it to

    <td valign="middle"><a href="http://www.eeweb.nl/winkel/index.php"><img src="images/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce "></a></td>

(= delete the width="204" height="50" )

 

Setting any image to a % other than 100% does not seem very usefull to me, since images are "made of pixels". And if you want an image to be 100%, you only have to remove all size settings and it will be 100%.

 

hope this helps (allthough it does not have much to do directly with this contrib if I understand your question well) :)

Paul

Link to comment
Share on other sites

100% of what?

 

If you want a header image that stretches to cover the entire top of the store, the normal way is to break it up into a left part, a middle part, and a right part. The left and middle are just static images. The middle is a recurring image that you set as the background of the whole thing. The middle part is most commonly set to be 1 pixel wide but can be wider if you put a recurring pattern in it (in that case, you usually leave off the right part static image.

 

Hth,

Matt

Link to comment
Share on other sites

Hi Matt,

 

100% of what?

are you asking me? sorry I was talking about 100% of the image itself like a 200px X 100px image is shown as a 200px X 100px image.

 

The best way to make it 100% of the screen indeed depends on the image you like to show and how you want it exactly. A 1px wide background image would be very easy to set in the stylesheet using "a oneliner" to make show over 100% of the screen size (repeat-x). Not sure though what FlipC is asking here exaclty.

Link to comment
Share on other sites

Hi Paul

I just instaled the contribution and works great In 1 hour i changed all the design for my shop:) Is great

But is one thing i dont know how to do. Can i use BTS to change the look of the new products and special products center blocks from the main page of the shop?

From what i saw seems i can change the look of any side boxes How about the center ones?

 

Thanks

Link to comment
Share on other sites

Hi Alex,

I just instaled the contribution and works great In 1 hour i changed all the design for my shop
Wow that's really fast! I'm glad you like it :) .

 

But is one thing i dont know how to do. Can i use BTS to change the look of the new products and special products center blocks from the main page of the shop?

You would have to edit some files in templates/content, you can find a.o. the files specials.tpl.php and products_new.tpl.php. I did not get to "optimizing" these content files yet. So changing the looks of these is a bit more difficult than the sideboxes. The content area does have it's own CSS id though (td#contentLT if you use the one table layout of the BTSv1-1), this does make it quite easy to apply some specific content area styles of course.

 

There is problem with these other three files:

There are only 3 files on the catalog side that still use the infoBox class.

They are:

catalog/includes/modules/also_purchased_products.php

catalog/includes/modules/new_products.php

catalog/includes/templates/content/shopping_cart.tpl.php

(note the difference between new_products and products_new !)

these files are not in a template yet (I hoped to find a programmer to do that but, no luck yet I am afraid :( ). You can change the looks a bit through the stylesheet (ouput of these also in the "td#contentLT box" of course) , but for most major changes you will also have to edit the classes that create these files.

 

I am trying to created a more consistend look for these files at the moment, I only deleted the border setting from includes/classes/boxes.php and added some styles to the sylesheet. I think it looks quite nice already (example http://www.eeweb.nl/osc_tests/less_tables/index.php?cPath=2), but changing the looks a lot more would still take quite some time this way.

Link to comment
Share on other sites

Hi Paul

It was fast cause the shop is a section in a bigger site so i had all the concept, graphics and css files ready :)

 

I saw ur example and i wonder one thing Instead of a complete customization how can i add a background gif to the new_products on the main page? Cause i think this should be enought for now untill i can make a complete customization for the block Basic what i want is to leave the header of the block unchanged and have a background gif to the block content

 

Thanks

Edited by alexfize
Link to comment
Share on other sites

Hi Alex,

/* New Products For... resides in : table#mainLayoutLT tr td#contentLT table tr td table tr td table td ! */
td#contentLT table tr td table tr td table, table.productListing {
background: #ffd url(images/background.jpg);
}

would the above example help you? I don't know what templates you exactly use, could you give me an url?

Link to comment
Share on other sites

Paul ,

To continue with the previous ghost post ...

 

Im using the Phesis Loaded 6.2 install which comes with :

Basic Template Structure 1.0 + Fixes 

Author: Brenden Vickery

Modified by Paul Langford

I had assumed you were Paul Langford ? Why I assumed I had posted in correct location. My apologies if this isnt the correct Contribution.

 

I am customizing the default theme installed with Loaded 6.2. Its called "Original". My "main_page.tpl.php" does not contain the code you posted. Heres what mine has:

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
   <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.jpg','World Conspiracy Sk8boards'). '</a>'; ?></td>
   <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>
 </tr>
</table>

As I mentioned, I tried adding '100%' between the image src and the alternate text but it does nothing unless I make it some extreme number. IE 4000 etc. Then it does crazy things.

I understand this may not be the same contrib and if you dont have time I understand this also and greatly appreciate the time already spent.

Link to comment
Share on other sites

hey Paul

Dissregard my post for a few , at least until I reply again.

I just found out my download of the Phesis Loaded 6.2 beta is misisng the header and footer .php files in the templates. I never saw - nor could I find , any post aobut the download being updated and only one is listed so Im unsure how I have a different version. Go figure. Anyway , Im going to replace my current isntalls with this new one and Im betting since I have an actuall header.php file I will be albe to do what I need now.

Will let you know how it goes.

Thanks again.

Link to comment
Share on other sites

To continue with the previous ghost post ...

 

Im using the Phesis Loaded 6.2 install which comes with :

Basic Template Structure 1.0 + Fixes 

Author: Brenden Vickery

Modified by Paul Langford

I had assumed you were Paul Langford ?

No, never even heard of Langford.

 

Hi Flip,

 

now I think I understand why your post dissapeared, Phesis has nothing to do with the BTSv1-1. And, correct me if I am wrong, Phesis is not supported on the osCommerce forums! A moderator might have deleted it, which seems logical, but without leaving a note :huh: ?

 

The BTSv1-1 is aiming at reducing the "old MS2" HTML code as much as possible (and add some CSS and simple templates) which a.o. makes it easyer to modify the osC looks using standard (X)HTML and CSS. Looking at the piece of code you posted, Phesis is about something completely different. And to be honest, I don't want to be rude, but I really don't (want to) know anything about it.

 

As saw you already found their forums and I really hope you'll find your answers there. Good luck,

PaulM

Link to comment
Share on other sites

Hi again Paul

I got lost with the code u sent me :)

 

CODE

 

/* New Products For... resides in : table#mainLayoutLT tr td#contentLT table tr td table tr td table td ! */

td#contentLT table tr td table tr td table, table.productListing {

background: #ffd url(images/background.jpg);

}

 

In what file i can edit or add it? The only file that i find related to the center block of new products is in includes/modules/new_products.php

 

I cant show u the shop cause is on local server Sorry But if u need any more information i would give u

 

Thanks a lot for ur time

Link to comment
Share on other sites

/* New Products For... resides in : table#mainLayoutLT tr td#contentLT table tr td table tr td table td ! */
td#contentLT table tr td table tr td table, table.productListing {
background: #ffd url(images/background.jpg);
}

In what file i can edit  or add it? The only file that i find related to the center block of new products is in includes/modules/new_products.php

Hi Alex,

 

I forgot to mention, but it should be added to your stylesheet which probably will be in catalog/templates in your case. You will also need the image in catalog/templates/images of course. But I must warn you, if you don't know anything about CSS, the BTS1-1 might not be a usefull contribution to you!

 

The part between /* and */ is a comment, I placed to explain the "strange" CSS line after it. Maybe it makes CSS look complicated, but if the HTML is setup smart (id's and classes at the right places) most CSS rules are very easy apply.

Link to comment
Share on other sites

  • 2 weeks later...

(quoted from post in BTS1.0 support thread)

Hi John,

 

Can someone explain the interaction between the original catalog/stylesheet.css file and the new catalog/templates/stylesheet.css file? Are they both being used? Are they used for different and/or specific things?

 

There are three templates included in the BTSv1-1:

 

1) the default loaded one table layout only uses one stylesheet: "catalog/templates/stylesheet.css" (and print.css for printing styles)

 

2) the CSS layout, it uses the original "catalog/stylesheet.css" to load most original osC styles and a second stylesheet in the templates directory to create the CSS layout

 

3) a template which almost fully recreates the orginal osC layout/styles/HTML, it also uses the original "catalog/stylesheet.css", plus a tiny stylesheet in its templates directory for some corrections (a.o. to set the width of some input forms like in the search box)

 

Hope this helps :)

Link to comment
Share on other sites

Just to let you all know that the new BTS breaks the search engine friendly stuff :(

 

I have two sites set up,

 

one running the basic 2.2 MS2 default clean install

one running the basic 2.2 MS2 clean with the BTS files copied over the top.

 

No other mods are added. Both stores are running from the same Database and in configuration the Search engine friendly URLS are switched to "true"

 

The clean install shows urls as

www.shop.com/index.php/cPath/47 or however they are supposed to be

 

The install with only the BTS mod added shows the urls as

www.shop.com/index.php/cPath/47?osCsid=579ba7322c1b6e9540358b3b5f31346b

 

Which search engines are not going to like.

Any ideas how to fix this?

Link to comment
Share on other sites

Stop posting that BTS breaks search engine stuff. You did it in another topic. The session id is there for a reason and spiders won't see it.

 

If you want to get rid of it for good, you can force your store to use cookies, which I wouldn't recommend.

 

Go into your store configuration, check your sessions. Make sure prevent spider sessions is set to true.

 

Then goto http://www.webconfs.com/search-engine-spider-simulator.php and verify.

Link to comment
Share on other sites

Hi hotnuts21,

Just to let you all know that the new BTS breaks the search engine friendly stuff
Switch off the "search engine friendly url's", there are several known problems with it and it does not help you to get a higher ranking!

 

I must admitt at first you scared me a bit, I never had any real search engine problems before, but I never had a live osC store before also. About two weeks ago I installed my first really live osC store including the BTSv1-1, and I didn't check my google ranking until now, because I know it can take some time until google is updated.

 

Tonight I checked (because you scared me :) ), and tonight I have PROOF THAT YOU certainly DON'T NEED THE "search engine friendly url's".

 

Go to google and type exactly this:

 

"2400 Basis PC Intel"

 

with or without the quote's wathever you like, and tell me who's on top of the list? After at the most two weeks!

 

(Just to be sure I tried "google.nl" and "google.com", same perfect results here..)

 

Note the BTSv1.2 is as good as ready today, it a.o. includes a very handy Template Switch! I expect to upload to the contributions section within, at the most, a few days.

 

PauM

Edited by paulm2003
Link to comment
Share on other sites

  • 1 month later...

Has anyone used BTS along with other contribs such as Credit Class/Gift Vouchers/Discount Coupons (Version 5.10) or other Group Discount-type Modules? I am using MS2+BTS and everything works great, however, when you start adding other contribs the site breaks.

 

These other contribs are obviously made only for clean MS2. Can someone help me with this?

 

Feel free to email me at matt at vmwake dot com.

 

Thanks.

www.vmwake.com

Link to comment
Share on other sites

Has anyone used BTS along with other contribs such as Credit Class/Gift Vouchers/Discount Coupons (Version 5.10) or other Group Discount-type Modules?
I know it is being used with the BTS. I have to search for a moment, I might have a tip for you, and I will PM you later. Don't expect a simple solution to install on a existing shop though.

 

These other contribs are obviously made only for clean MS2.
Since the BTS changes the structure of the whole catalog it is logical other catalog contributions can't be installed just like that. But if the documention of the contrib is well written it should not be to difficult to install it on the BTS most of the time. At least 95% of the BTS code is the same as the standard osC code, only the programming and output are divided into separate files.

 

So if the contribution for example tells you to edit "reviews.php" with the BTS installed you have to look in "reviews.php" (most programming code) and "reviews.tlp.php" (output) for what you have to edit.

Link to comment
Share on other sites

  • 9 months later...

Help! I've been doing this for less than 24 hours and have just tried to install this template system and now I get the following error:

 

 

 

Warning: main(templates/main_page.tpl.php): failed to open stream: No such file or directory in /home/virtual/site238/fst/var/www/html/catalog/index.php on line 150

 

Fatal error: main(): Failed opening required 'templates/main_page.tpl.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site238/fst/var/www/html/catalog/index.php on line 150

 

 

Anybody know what this means? and how to fix it?

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...