Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

Hello,

 

First off I would like to say this is a great piece of work, secondly I have a question. I made my template however oscommerce has built in variables for ex: $categories when u put that in ur template u first get a blue bullet and then categories, I would like to modify this which file do i do it to. Secondly in the categories section how do i add a style sheet to it to make the text look a little nicer.

 

Thanks

Link to comment
Share on other sites

Hi I'm having a really strange occurrence and I can't figure out why.

 

I am using STS multi templates and have placed $content variable for the main index page somewhere on my index.php_0.html page. When the index page loads, my TEXT_MAIN is there but when i mouseover any of the links on the rest of the page (that's not within the $content variable), the whole entire $content part disappears on me!!!

 

Any idea why??? Would really help cos I just launched my site today and I'm getting this weird problem.

Link to comment
Share on other sites

Hi guys, just a quick note to ask for some help with STS, please don't hurl abuse at me as I am new to this as I'm sure everyone was at one time. Can anyone let me know if there is a step by step instruction to using STS? I have OSC installed and also have installed STS as per Brians' instructions. All appears okay but now it's installed, what do I do? I know I need to edit the STS template file. I'm reasonably happy with the default layout having edited the headings and things like that so all I want to do is find a simpler way off changing the background colours and text colours. I figured STS would be able to do this for me. I changed the background to the colour I wanted in STS template file but now what? Any help would be appreciated, apologies to those who do know how to use this as this must seem a daft question, if there is a step by step I can't find it as I just get an error when searching for STS. Thanks guys.

Link to comment
Share on other sites

Hi Mark,

 

To change the layout of the page (to a degree), edit the sts_template.

 

But, to change the colors of the page, edit the stylesheet.css that's in the main catalog directory.

 

The nice thing about the store is the main look & feel, (background, text color, links, etc) is all run by the style sheet. The STS template system just makes it easier to move the info boxes around, change the structure of the page.

 

Hope this helps, if not, holler - we're here to help each other.

 

Cheers!

 

Chris

Link to comment
Share on other sites

Thanks for the help, Chris! Can you tell me what part of the stylesheet you edit - I have changed the colour for 'background' all over the stylesheet and it hasn't made a single change to the page. I am editing the stylesheet in the catalog directory. Thanks.

Edited by atko
Link to comment
Share on other sites

It's okay Chris, sorted it. Apparently in my installation you need to edit the stylesheet in the root of the main oscommerce directory. This then changed the background colour. Thanks for all your help.

Link to comment
Share on other sites

Hello,

im trying to use mulitple templates where my index page will be differant layout then my categories page or my shopping cart etc the index.php.html will be the only one differant and the rest will be using the same basic template whats the best way of doing it ?

 

Thanks

Link to comment
Share on other sites

The main page error "Warning: Invalid argument supplied for foreach() in /home/speedy/public_html/scs/includes/modules/main_categories.php on line 50" is fixed. All I did was uploaded it again. And the error disappeared. :-)

Hi,

 

I guess it doesn't want to play nice with me. I've tried a couple re-uploads from several different backups of the original, & also searched through the forums to see if someone else came up with the solution.

 

Any other ideas of what might be causing the error?

 

Cheers!

 

Chris

Link to comment
Share on other sites

Hi there!

 

Thank you soo much for this contributions!!! My underwear shop (in swedish) is finally up and running using STS. It took a while and I didn't got my questions answered here, but I finally made it!! :D

 

Take a look at under.se (and remember that the shop is live)

 

Thanks again!!

Edited by Fredrik.r
Link to comment
Share on other sites

I visited your underwear web-sie, it's great.....

I'm happy people already setup their sites and running okay.

But I'm still a beginner, surf on the web-sites to see how to customize the osc.

 

I saw you add tables (boxes, where you place your photos) on your main page of web-site, can you show me how it can be achieve?

(Like which file to edit, and where in the document can I past my work from dreamwaver mx 2004 into it.)

Thank you....

 

Also if anyone knows how to edit the size of boxes on the left column... To make it into separate and small boxes?

 

 

Regards

Louis :)

Link to comment
Share on other sites

G'day gallant troubleshooters,

 

According to Brian Gallagher, author of Simple Template System (STS)

 

STS is not too difficult to add to an existing site, provided that the contributions you are adding conform to the coding and layout standards used by OSC.

Does anyone know if the following two contributions "conform to the coding and layout standards used by OSC"?

1) easy_populate_2.62-ms2.zip

2) CVV1.24.zip

 

Also according to Brian Gallagher

 

Basically, you just need to add the STS_START_CAPTURE, STS_RESTART_CAPTURE and STS_STOP_CAPTURE commands at the beginning and end of the affected includes/ files.

Can anyone enlighten me as to how one would know which includes/ files? Or is that something that becomes apparent with the Debugging settings in /includes/sts_display_output.php ?

 

Appreciate any help on the above two current outstanding issues.

 

Ulysses

Link to comment
Share on other sites

The main page error "Warning: Invalid argument supplied for foreach() in /home/speedy/public_html/scs/includes/modules/main_categories.php on line 50" is fixed. All I did was uploaded it again. And the error disappeared. :-)

Hi,

 

I guess it doesn't want to play nice with me. I've tried a couple re-uploads from several different backups of the original, & also searched through the forums to see if someone else came up with the solution.

 

Any other ideas of what might be causing the error?

 

Cheers!

 

Chris

Chris,

 

Try unzipping into a different directory and then upload the file. That is what I did and the error disappeared.

 

 

 

Speedy007

http://www.the-solutions-place.com

http://www.speedy-computer.com

http://www.ld.net/?sagrav

Link to comment
Share on other sites

Does anyone know STS works with which payment gateway.

I read through a lot of posts, they said sts is not compatible with authorize.net, worldpay.. and what else....

 

One more question, if I change my layout on include/templates.html, do I also need to edit usercode.php?

Link to comment
Share on other sites

Hi

 

I'm using osc 2.2 ms2 and sts1.8

now everything works and i am trying to add a new box (loginbox) i tried to do this by adding this text in sts_user_code.php

 

$sts_block_name = 'loginbox';

require(STS_START_CAPTURE);

require(DIR_WS_BOXES . 'loginbox.php');

require(STS_STOP_CAPTURE);

$template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox');

 

now when i do this the loginbox appears but then my "password forgotten" link doesn't work anymore... :blink: when i remove this text the loginbox is gone but then the " password forgotten" link works.... :o

 

 

can please anybody help me with this as i'm really stuck at this point....

 

thanks, Marco van Meurs (sorry for my poor english)

Link to comment
Share on other sites

I also tried to put the line :

 

$template['loginbox'] = strip_unwanted_tags($sts_block['loginbox'], 'loginbox');

 

in the create custom boxes area of sts_display_output.php but then i have the exact same problem.. :(

 

tried everything but nothing solved the problem.... :unsure:

Link to comment
Share on other sites

I love this contribution and have it running okay on my site, but the popups don't work, and I've searched/re-searched/tried every single suggestion here over the past few weeks to no avail, so my next option is to disable them entirely. I'd like to know if there is any way to disable the "click to view larger image", and also add something like this, where there is a larger view of the product below:

 

http://www.pixeloutlet.com/xcart/customer/...6295&cat=&page=

 

 

 

My site will be selling my original templates, so a detailed view of some sort is very necessary.

 

 

 

PS: Fredrik.r, your site looks wonderful. I just love the layout. :)

Link to comment
Share on other sites

HI,

I've just installed STS 2.1

 

On my testing server it works fine but on my On Line server when I click on a Prodcuts It displays a BLANK PAGE

 

Any suggestion ?

Thanks

Alex

Shame on me. Now it works: just a config mistake.

I read that files hundreds of time .... that's the problem when you try to fix things late in the night.

 

bye

Alex

Link to comment
Share on other sites

I don't know if this will help anyone, but I went a really far roundabout way to get my popup problem fixed.

 

I had given up on using my own design, and was going to just go the standard osc layout method.

 

I then ran across a site that offers free templates WITH STS included ... So I downloaded, installed, then realized that since I now had STS working, popups and all, I simply then uploaded my own sts_template.html css file, and voila, it was all just perfect :D

 

I don't know if I'm allowed to post non-specific OSC links here, but it is definitely STS related, and I searched and could not find any specific rule against it .. so here is the free template w/STS installed (meaning working popups and the ability to upload your own layout)

 

http://www.7dana.com/index.php?freeoscommerce

 

I do recommend dropping the author a thank you note. While I did not use their free template, it took a huge headache out of attempting to fix this seemingly minor but (for my site) crucial problem. I will say though that the template included is very nice ... clean and crisp layout :)

 

Hope that helps someone :)

 

I have to add, STS is such a great contribution .. I honestly probably wouldn't even try to use OSC without it, since I was so determined to use my own layout, and don't know the slightest thing about messing with the necessary coding.

Link to comment
Share on other sites

Looks like a great contrib and can't wait to get this working. This is what I was looking for with OsC. Glad someone put the work in to make it happen.

 

One problem. I just installed it and am recieving a strange series of errors on the page.

 

Please take a look:

http://www.monstergamers.com/Store/

 

How can I solve this issue?

 

I did change the config file of course and uploaded the files to a fresh install of OsC.

 

Can someone please find the time to tell where I went wrong?

Link to comment
Share on other sites

Hi

I am still having a Problem with the following... There is probably a simple answer to it... but I cant find it

 

Hi

I am trying to some banners on my front page to link to the product categories and I am having probs with the link URL's... using the following method to link one banner works and the other does not..

 

The working link

<A href="$cat_Diy"><IMG height=150

src="http://www.beeonline.net/store/images/banners-frontpage/banner-diy.jpg"

width=227 border=0></A> this works and goes to http://beeonline.net/store/index.php?cPath=46

 

The non-working link

 

<A href="$cat_Auto_Care"><IMG height=150

src="http://www.beeonline.net/store/images/banners-frontpage/banner-auto-care.jpg"

width=227 border=0></A> this does not work and goes to http://beeonline.net/store/index.php?cPath=90Auto_Care

 

I have also used the following $urlcat and this doesn't work either...

 

Can anyone help with this one its driving me nuts...

 

I have tried this method also <A href="http://www.beeonline.net/store/index.php?cpath=46"> I can get this to work if I activate search engine safe url wich is supposed to be in development

 

Heeeeeelp Please

Cheers Malc

Link to comment
Share on other sites

Hi,

 

I am using STS for almost a half year and it works really great. Now I will change the design and I built a template without the "$content" on the main page. Furthermore I have a secont template for the product description with $content.

 

All works fine, but now I added the contrib "current auctions" for showing my ebay auctions. Will it work, if I do not have the $content string in my main template???

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