Guest Posted December 29, 2005 Share Posted December 29, 2005 STS PLUS is a variation of the famous and excellent STS (Simple Template System) created by Brian Gallagher. The goal is the same: use an html template to modify the look of the shop. How STS and STS PLUS work: Instead of displaying the result of the scripts straight to the browser, STS "captures" it into variables. To each variable corresponds a placeholder (for example "$banner") that can be placed on an html template. STS will then replace all placeholders with the corresponding code and display it in the browser. This involves only few modifications of the osCommerce files while allowing changing the design of the shop by modifying an html page. In its most simple form, only one template is created and it will be used for all pages of the shop. It is also possible to create a template for a specific page, a specific category or a specific product. There were few things I wanted to do better in the STS contribution and it ended up in a quite different structure and code, so I made a new contribution. However, "old" templates can still be used. Main changes: - Group the templates in sets and select the displayed set from admin panel. - Test a set of templates only for admin: test your new templates online without disturbing your visitors. - Turn STS PLUS on/off from admin. If turned off, the normal osC will be displayed. - Turn STS PLUS on only for admin: test your templates online without disturbing your visitors. - Less html in placeholders, so more flexibility for the design work. - Code specific to a page is put into a module. Advantages: use only modules you need => less code processed. Write your own module to integrate a contribution and share the modules with other users. - Module are configurable from admin panel, like you do with shipping modules. - Less code, should be faster. - For the product info page, possibility to have a template only for the content area, while header, columns and footer are coming from the category template. - All boxes are available separately, no need to show specials if you want to show tell a friend box, no need to show best sellers if you want to show product notifications. - Possibility to place php scripts in the templates (like in STS v3). Installation of this contribution is very easy. Please read the doc available with the contribution, I have write quite much there. I will post the link to the contribution after I have add it to the contribution section. Have to start somewhere... Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.