Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[contribution] Simple Template System (sts)


DiamondSea

Recommended Posts

Hi,

 

I'm trying to use a different template for a specific category.

 

I have my default template and I have made a template and called it:

 

index.php?cPath=22

 

The same as the cataegory address....is this correct?

 

If not....what do I ahve to do? If it is correct, where do I put the category template?

 

Thanks

Link to comment
Share on other sites

The name of the templatefile should be index.php_22.html

 

IE. if you want another template for index.php?cPath=21_13 the name should be index.php_21_13.html

 

You should put the file in your sts_templates/your_template_folder/

Also check that you've installed the sts_index-module in admin.

Edited by rajonbh
Link to comment
Share on other sites

What do you want to change?

 

hi, i've installed sts and it's great, but i'm having a few design problems. STS allows me to have a all nice new products in front page like this (4 products http://osc2.template-help.com/15177/index.php

 

i've tried opening lot's of files but i can't find where to make the changes...

 

thanks

Link to comment
Share on other sites

hi , this is not my page, it's just an example i found on the net, as my page is not finished yet :-/ , here try these two others:

http://osc2.template-help.com/15209/index.php

http://osc2.template-help.com/14619/

 

i want to change the recetly added products from the small thumbnails to these large thumbnails with or without borders...

Link to comment
Share on other sites

You can change the thumbnails globally by going into Admin>Configuration>Images and changing the dimension of the small images.

 

hi , this is not my page, it's just an example i found on the net, as my page is not finished yet :-/ , here try these two others:

http://osc2.template-help.com/15209/index.php

http://osc2.template-help.com/14619/

 

i want to change the recetly added products from the small thumbnails to these large thumbnails with or without borders...

Link to comment
Share on other sites

:) i'm not saying correctly, it's not the thumbnail, it's the structure of the new products, like having the products have it's own table for title, small description, buy now button etc

I want it to look a bit like the stores i've shown (the what's new part). i cant' find a way to explain it better... :blush:

Link to comment
Share on other sites

You might want to look at this contribution to see if it will do what you want:

http://www.oscommerce.com/community/contri...ons,4491/page,7

 

hi , this is not my page, it's just an example i found on the net, as my page is not finished yet :-/ , here try these two others:

http://osc2.template-help.com/15209/index.php

http://osc2.template-help.com/14619/

 

i want to change the recetly added products from the small thumbnails to these large thumbnails with or without borders...

Link to comment
Share on other sites

You might want to look at this contribution to see if it will do what you want:

http://www.oscommerce.com/community/contri...ons,4491/page,7

Yes, this would be the one to use. There is also a contribution that combines the above with Featured Products that gives you even more control of the products that are viewed in that box. :thumbsup:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hey I was wondering if I could use this contribution with STS?

 

http://www.oscommerce.com/community/contri...earch,title+bar

 

I basically want to have the category name show up on the title bar, but I cant seem to get it to work with STS...thanks.

Take a look in the STS User Manual. There is already a tip on how to do this very thing using STS. :thumbsup:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

is there any way i can create a template for each box seperately ?? like having a box_manufacturers.php.html or a box.shoppingcart.php.html ?

 

this way i could control each box like its done with the information box instead of having one single template for all boxes

:huh:

Link to comment
Share on other sites

is there any way i can create a template for each box seperately ?? like having a box_manufacturers.php.html or a box.shoppingcart.php.html ?

 

this way i could control each box like its done with the information box instead of having one single template for all boxes

:huh:

Yes, you can. Follow the naming structure of each box that is listed in your catalog/includes/boxes folder.

 

For example:

To template the categories box, you would name your template infobox_categories.php.html or if you want to customize the header of the same box, you would also create an additional template named infobox_categories_header.php.html.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Did you try the following?

 

How to have a different image per language in STS:

 

Add the following code to your includes/modules/sts_inc/general.php file:

$sts->template['langc'] = $language_code; // new tag for country code

And this code in /catalog/includes/application_top.php :

$language_code = (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) ? $HTTP_GET_VARS['language'] : DEFAULT_LANGUAGE;

And I modified my links consequently like this :

<a href="/catalog/shopping_cart.php?language=$langc$">

 

This solution isn't perfect because it doesn't work in case of redirection.

For example when I click on the link "/catalog/account.php?language=$langc$" and I'm a new client or not connected I arrive on the login.php page and, in the address there's "http://localhost/catalog/login.php" instead of "http://localhost/catalog/login.php?language=fr" (or en)

The language for this page is correctly selected but it's after, when I click on any other link of the page that the default language is selected. The link are as this one "http://localhost/catalog/login.php?language=" instead of "http://localhost/catalog/login.php?language=fr" (or en)

Link to comment
Share on other sites

Hi guys,

 

Need some help from the STS experts.

 

I have started this thread: http://www.oscommerce.com/forums/index.php?showtopic=270999

 

as I can't get this contribution to work with STS: http://www.oscommerce.com/community/contri...,sub+categories

 

Ignoring my first problem for a minute of getting the main categories on front page contribution to work with the menu I would just like to get the menu contribution to work with STS.

 

With STS disabled the contributions works fine, however, when it is installed, I get major formatting problems such as this:

 

Formatting problem in STS

 

Any help appreciated.

 

Thanks

Link to comment
Share on other sites

I'm new to OSC but I really don't want to use the skin OSC comes with...I'm a designer but I'm not a programmer so I don't understand a lot of high end technical stuff. >_<

 

I wanted to know how easy this would be for me to use on a ecommerce website I'm going to be setting up? I just thought of asking because I don't want to get all stuck into it then find out everything is beyond repair..lol :-"

Link to comment
Share on other sites

I found installation pretty straight forward and think this is an easy way to change the look of your web site. If you run into any speed bumps, the people in these forums are a great help. I say 'go for it'.

Link to comment
Share on other sites

I'm new to OSC but I really don't want to use the skin OSC comes with...I'm a designer but I'm not a programmer so I don't understand a lot of high end technical stuff. >_<

 

I wanted to know how easy this would be for me to use on a ecommerce website I'm going to be setting up? I just thought of asking because I don't want to get all stuck into it then find out everything is beyond repair..lol :-"

I know just how you feel, Laura. Pretty much my sentiments.

 

I'm figuring since I was fortunate to do a fairly hassle free install of the default osC template, I don't want to tempt fate and mess things up.

 

Perhaps sometime down the road when I'm more computer savvy, I'll give it a go.

Link to comment
Share on other sites

I know just how you feel, Laura. Pretty much my sentiments.

 

I'm figuring since I was fortunate to do a fairly hassle free install of the default osC template, I don't want to tempt fate and mess things up.

 

Perhaps sometime down the road when I'm more computer savvy, I'll give it a go.

Most users who are serious about osCommerce will have a "test" site installed on a local server (PC) to "play" around with. I would suggest that you install a copy of osCommerce on your computer and then install STS on that test site.

 

:thumbsup: You will find that it is very simple to install...probably the most easiest of all other contributions available, if not the most documented and supported by the authors and users. Keep in mind, it was created for users just like you who do not know (or want to know) PHP but still want osCommerce to flow with "their" design.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Looks like I posted in the wrong place *blonde moment*.

 

I'm not a programmer, though I do understand some basic programming principles. However, even if I knew nothing about programming, I think I would've been able to install STS without a hitch. My current project's design doesn't deviate a whole lot from the basic OSC skin, but I think it is a lot more pleasing to the eye. Give it a go.

 

Most users who are serious about osCommerce will have a "test" site installed on a local server (PC) to "play" around with. I would suggest that you install a copy of osCommerce on your computer and then install STS on that test site.

 

:thumbsup: You will find that it is very simple to install...probably the most easiest of all other contributions available, if not the most documented and supported by the authors and users. Keep in mind, it was created for users just like you who do not know (or want to know) PHP but still want osCommerce to flow with "their" design.

Link to comment
Share on other sites

Don't forget me please Bill.... :(

 

I have not forgotten about you...just that I am not sure what the "best" answer would be in your situation.

For most STS users who have multi-language shops, the images in the template is the only real hurdle to cross since they are already taking advantage of the "built-in" multi-language functions of osCommerce itself.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE 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...