Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic Template Structure v0.9


phiberz

Recommended Posts

Hi!

having som problem with Basic Template Structure v0.9

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

 

 

------------------------

Installed Basic Template Structure v0.9

 

but what do i do after i?ve uploaded the files to the right catalog?

 

 

 

Do i need to edit any file? Set the ATTRIBUTE on any file?

 

cause when i open the http://www.host.com/eonline/templates/mainpage.tpl.php file after uploading the files, i only get Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_WARNINGS) [function.main]: failed to create stream: No such file or directory in /home/b/bjc/www/eonline/templates/mainpage.tpl.php on line 11

 

Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_WARNINGS) [function.main]: failed to create stream: No such file or directory in /home/b/bjc/www/eonline/templates/mainpage.tpl.php on line 11

 

 

 

what have i done wrong???

 

 

 

 

 

RGDS Phiberz

Link to comment
Share on other sites

There is one "bug" Ive found so far with the contribution. mainpage.tpl.php has the line at the very bottom of the file:

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

This line should be deleted.

 

Do i need to edit any file? Set the ATTRIBUTE on any file?

Add the following code to catalog/includes/configure.php:

define('DIR_WS_TEMPLATES', 'templates/');

define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');

 

*note: must be added after the following code:

define('DIR_WS_INCLUDES', 'includes/');

 

Add the following code to catalog/includes/application_top.php:

// include the list of template namesatenames

require(DIR_WS_INCLUDES . 'templatenames.php');

 

*note: must be added after the following code:

// include server parameters

require('includes/configure.php');

 

cause when i open the http://www.host.com/eonline/templates/mainpage.tpl.php file after uploading the files, i only get Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_WARNINGS) [function.main]: failed to create stream: No such file or directory in /home/b/bjc/www/eonline/templates/mainpage.tpl.php on line 11

Warning: main(DIR_WS_TEMPLATESTEMPLATENAME_WARNINGS) [function.main]: failed to create stream: No such file or directory in /home/b/bjc/www/eonline/templates/mainpage.tpl.php on line 11

what have i done wrong???

This contribution is based on the 05/18/2003 snapshot of osCommerce. What snapshot are you using? It may or may not be compatible with the snapshot youre using.

 

To use this contribution you use the store as you normally would. To enter the store go to default.php. You never need to go to mainpage.tpl.php.

Perdure - Transparent Object Relational Persistence
Link to comment
Share on other sites

Hi there,

 

Nice work, but it looks very similar to what I have developed, structure wise.

 

A few questions on this,

 

Why have you given the ext. tpl to the page body files? Are you planning to use a parser like smarty has for these in the future? If you are, I have a few ideas on how this can be done.....

 

Are you planning to make an admin tool so people can switch via the admin tool?

 

Are you planning on using defines as a switch tool in the future?

 

If you are interested in working on a system together, email me at

 

[email protected]

 

maybe we could work together on it....

 

 

cheers,

Peter McGrath

-----------------------------

See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation

Link to comment
Share on other sites

ok, removed the "bug" but how do i use it?

it look just as the default shop?

http://www.bjc.se/eonline/default.php?language=en

using tep_snapshot-20030525

It is the same as the default shop. Now you only have to edit mainpage.tpl.php to change the DTD, head, header, column_left, column_right, and footer.

 

This contribution does not change the look of osCommerce. This contribution makes changing the look of osCommerce easier.

Perdure - Transparent Object Relational Persistence
Link to comment
Share on other sites

Hi there,

Why have you given the ext. tpl to the page body files?  Are you planning to use a parser like smarty has for these in the future?  If you are, I have a few ideas on how this can be done.....

The .tpl ext was added to distinguish a template file from a non template file. I hate when I have two different files called default.php open. No, I dont plan on using any sort of template engine in the future.

 

Are you planning to make an admin tool so people can switch via the admin tool?

I have a couple of things in mind but wont get to them for a while.

 

Are you planning on using defines as a switch tool in the future?

What do you mean by this?

 

If you are interested in working on a system together, email me

Thanks for the offer but im already working on too many projects.

Perdure - Transparent Object Relational Persistence
Link to comment
Share on other sites

Hi Brenden

 

I've posted today my problem with your contribution, but by mistake not in here, but here

http://www.oscommerce.com/forums/viewtopic.php...plate+structure

So here I am again.

Since I really like the idea I have installed a recent snapshot (29/05/2003) and then your contribution. No I'm able to go to the checkout, but not to create an account. All I get is the title of the page and the Note (If you already have an account with us, please login at the login page) and ...blank blank.

Have any idea how to fix this?

Thanks

Link to comment
Share on other sites

Hi Brendon

I am insatlling latest snapshot 29/05/2003 on another one of my sites

Can this mod be used on this release please?

 

And will it work when we move up to MS2 release?

 

Hope so : :)

 

Paul

Link to comment
Share on other sites

Sorry about the delay in responce.

 

This contribution will work on 18/05/2003 snapshot. It will not work on any newer snapshots. It may or may not work on older snapshots. Ill be releasing a new version once MS2 comes out. This version will include a template for info Boxes and some more documentation.

Perdure - Transparent Object Relational Persistence
Link to comment
Share on other sites

Have I done something wrong with this? I cannot checkout, the pages act as if they don't exsist, however they are on the server "checkout_shipping.php" and "product_reviews_write.php" don't work either. This is not a "live" shop, but I am hoping that I will get it there soon.

Link to comment
Share on other sites

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