Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

Hi everyone,

I need help with templates for Infoboxes. (I have site with Div's layout)

 

This is my design for boxes.

<div class="dInfo">
<h3 class="title1">HeaderTitle</h3>
<ul>
  <li><a href="#">Prod 1</a></li>
.....
</ul>
</div>

When I put it in /sts_templates/boxes/infobox.php.html I get all in tables layout...

 

Where can I change the layout for boxes to Divs and List?

Share this post


Link to post
Share on other sites
Hi everyone,

I need help with templates for Infoboxes. (I have site with Div's layout)

 

This is my design for boxes.

<div class="dInfo">
<h3 class="title1">HeaderTitle</h3>
<ul>
  <li><a href="#">Prod 1</a></li>
.....
</ul>
</div>

When I put it in /sts_templates/boxes/infobox.php.html I get all in tables layout...

 

Where can I change the layout for boxes to Divs and List?

 

I'm not sure if I am understanding you correctly....

 

What you are doing is fine and each of your infoboxes would use that template. If you wanted a particular infobox to be different, then you would need to create a specific infobox template for that box.

 

Keep in mind, osCommerce is splattered with tables and you cannot really get around it without drastically changing the core code. With that in mind, you can still use CSS quite extensively to get the design you want as long as you keep the core table issues in mind.

 

Also, this may help:

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


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

bkellum Hi and thanks for your help.

 

when you look at HTML source there are still a lot of tables.

 

What I'm trying to do is get rid of tables in infoBoxes. E.g. now the categories box is contain $headertext and $content:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
<td class="infoBoxHeading" width="100%">Categories</td>
 </tr>
</tbody></table>

				<table class="infoBoxContents" width="100%" border="0" cellpadding="0" cellspacing="0">

 <tbody><tr>
<td class="boxText" align="left"><a href="index.php?cPath=28"><img src="images/pointer_light.gif" alt="" border="0">Sample category</a><br>
<a href="index.php?cPath=29"><img src="images/pointer_light.gif" alt="" border="0">Sample category 2</a><br></td>
 </tr>
</tbody></table>

 

but I want to make it look like:

<div class="dCatalog">
<h3 class="title1">Categories</h3>
<ul>
  <li><a href="products.html">Sample category</a></li>
  <li><a href="products.html">Sample category 2</a></li>
</ul>
</div>

 

STS module can't configure such layout?

 

if I make changes here - \includes\classes\boxes.php it would affect on Center ($content) layout?

Edited by SerNeo

Share this post


Link to post
Share on other sites

The categories box is special. I suggest that you take the advise that I gave in the STS User Manual and install a contribution that would convert the categories.php file into a nested unordered list so that you can easily modify it using CSS.

 

Here is the link again:

 

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

 

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


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
The categories box is special. I suggest that you take the advise that I gave in the STS User Manual and install a contribution that would convert the categories.php file into a nested unordered list so that you can easily modify it using CSS.

 

Here is the link again:

 

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

 

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

 

Thanks I'll try

Share this post


Link to post
Share on other sites

Hello I have put together a full package to download...

 

this includes

 

OSC 2.2 RC1

GCO v1.4.5a

 

and because I like it so much:

 

STS v4.5.8

 

please see pages following:

 

http://www.bluegreenenterprises.com/ebusiness_info/index.php

 

I have put it on my server because the zip file is far too big for the OSC contribs uploads. And this way you can play and see the changes to file at the same time in the knowledge that (fingers crossed tightly) I have no bugs ;o)

 

Titles:

 

STS GoogleCheckout

 

Iwill have a demo Page/site up and running very soon so keep posted....

 

Many Thanks for all your help, Hugs all Round ;o)

 

Matthew John Ritchie

Share this post


Link to post
Share on other sites
DEMO STS + GCO:

 

STS + GCO

 

Matthew John Ritchie

 

 

Hey Mathew,

 

I visited your demo site and it looks greate. Would you package just the changed files and upload to the STS Power Pack site as an STS Add-on?

Thanks,


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
Leah,

Go over to the STS Add-ons site (Power Pack) and download my "Add New Pages using STS" add-on. This will guide you step by step on how to properly add new pages and then template those pages using STS.

 

All of your template pages should be located in your template folder.

 

 

Hey Bill,

 

I added that add-on and I have my new page for 'Costumes', but how do I add all the infoboxes to the new page?

Share this post


Link to post
Share on other sites

p.s.

 

I have another contrib in development:

 

WEB MOBILE COMPLIANT THUMBNAILS

 

it is a fix so you can have thumbnails for the public viewing pages for fast uploads to mobiles as well as having large pictures in the popup windows

 

if this reminds you of anything please let me know so i can have a look

Share this post


Link to post
Share on other sites
Hey Bill,

 

I added that add-on and I have my new page for 'Costumes', but how do I add all the infoboxes to the new page?

STS makes this really easy.

 

You have two options....

 

  1. Don't do anything and leave the page layout to your default template. This is an option but since you took the time to create a custom page I'm sure you want custom content as well so this option will most likely not be your choice (see 2nd option below).
  2. Create a new template and use the filename.php.html syntax as the name of the template. For example: If your new page is costumes.php, then your template page would be costumes.php.html. To make adding custom content to this page, I suggest that you copy your default template (sts_template.html) and rename the copy "costumes.php.html". Now, add or remove any of the infobox STS tags that you want to be displayed in this new page.

If you have static data for this page, simply add it directly into the costumes.php.html template page itself, just like you would enter data into any other web page.

 

The $content tag is optional but I advise that you use it since it will bring in other data that you may want such as Featured Products, etc. If you do not want this extra data to appear in your costumes page, then leave out this tag.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
STS + GCO FILES AND MODS NOW AVAILABLE AT

 

STS POWER PACK

 

MORE INFO AND NOTES AT

 

BGE/STS_GoogleCheckout

 

Matthew John Ritchie

 

Thanks for uploading to the STS Add-on site (Power Pack). I really appreciate STS users sharing STS add-ons that they have put together. Hopefully other STS users will upload their own STS Add-ons to this available STS resource page (Hint Hint STS Users...link is in my signature below "STS Add-ons").

 

By the way, your upload has not shown up yet. This is most likely due to the file size limitation but once approved, it will be available for everyone to download.

 

Thanks again.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Hi Bill,

 

I have searched but not found, so maybe you can help me. I want to add stock levels to the product_info.php page. Page is all made and looks good, I just need the $stock$ or whatever the code is to get the stock amount shown on screen. I did download a contrib that made it work but not with sts! Is there such a thing? Your help is apprectiated!

 

Thanks.

Denz

Share this post


Link to post
Share on other sites
By the way, your upload has not shown up yet. This is most likely due to the file size limitation but once approved, it will be available for everyone to download.

 

Yup Bill_K ;o) just say that this morning, file size was over 612kb, i have stripped it down a little to 211kb and it is now available.

 

Matthew

Share this post


Link to post
Share on other sites

Hey,

I have read though as many as I can, and still reading though all the post, so sorry if I missed it or have not gotten there yet,

 

 

1st AWESOME MOD!! I thought it was gonna be hard to add my own template to my store, and even put it off and was getting ready to pay someone, when i thought what the hey, and let me tell you, you guys have actually made it idiot proof (and i am a idiot when it comes to the WWW) but here goes.

 

The template looks good, but I decided to add my own tables as part of my new template, BUT for some reason, I can still see the outline or latest the table header part from the old template or original template. Also, the header titles that they used, I want it in a different location for example, right now on my table, I have a different row for the table title, and then another row for the content, and I can hand right the title right now, and it looks good, but where the content goes, it will show the title that the original template showed, so it would say Search twice once me typing it, and once it inserting it somewhere. how can I fix this.

 

take a look: unitedwholesale.mpsites.com

 

basically which ones are the ORIGINAL files that I need to edit to get rid of all that other stuff and leave just the content it self.

 

thanks in advance

~:MP:~

Share this post


Link to post
Share on other sites

So you want to use your new iPhone to look at you website and show your mates BUT five minutes later you are still waiting for the page to load...... tick tock.....

 

Have you got a tonne of LARGE images stored in your image folder? well that is a big part of the problem! Mobile devices DO NOT like big images!

 

So you need smaller thumbnail images available first and foremost then bigger images for when customers want to click on the popup image in the product description pages.

 

Please see the Articles below for installation instructions: www.bluegreenenterprises.com

 

 

 

Web Mobile Thumbnails

 

How to have 'micro' images for webmobile fast downloads of your website to say the iPhone:

 

The easy way in THREE quick steps:

(1.)

 

Download freeware: EASY THUMBNAILS. Convert all you large product pictures to thumbnails of the size 100 wide by 80 high.

 

These thumbnails need to be in your image/manufacturer folder such as catalog/images/dvd or catalog/images/microsoft folder.

 

Then move all the large images into a sub folder called 'large' (All lowercase), like so: catalog/images/microsoft/large/...... etc.

(2.)

 

GOTO catalog/popup_image.php and insert:

 

// get large image for popup window from images/xxx/large/

$imgpath = $products['products_image'];

$imgpath = str_replace('/', '/large/', $imgpath);

// end get large image

?>

 

Just after the closing head tag and before opening body tag.

(3.)

 

Change:

 

echo tep_image(DIR_WS_IMAGES . $products['products_image'] , $products['products_name']);

 

To:

 

echo tep_image(DIR_WS_IMAGES . $imgpath, $products['products_name']);

 

All done. you now have a big picture for your popup and small picks everywhere else for fast mobile downloads.

 

Now SETUP UP paypal etc to accept mobile payments!

 

 

Matthew John Ritchie

BlueGreenEnterprises.com

Share this post


Link to post
Share on other sites

Hi!

 

I've running STS and have been testing multilanguage functionality.

 

When I click, for example in English, all the texts change to english, my problem is, after when I click in a category link or in a product link, the texts of Category box and the name of the products changes to the default language, but the other texts still remains in english.

 

Some help, please.

Share this post


Link to post
Share on other sites
Hi!

 

I've running STS and have been testing multilanguage functionality.

 

When I click, for example in English, all the texts change to english, my problem is, after when I click in a category link or in a product link, the texts of Category box and the name of the products changes to the default language, but the other texts still remains in english.

 

Some help, please.

 

 

You can see an example here:

http://www.tutete.com/tienda_def/index.php?

 

Category box is generated by dynamenu contrib.

 

Some idea?, thak you

Share this post


Link to post
Share on other sites

Hello

 

I am new to OScommerse so im not sure if I am posting to the correct place if not im sorry, I have installed STSv4.5.8 on my shop but after I have installed it via the Modules pannel I try to set "Use Templates?" to "True" and them update it does not work just displayes false.

Does anybody think they know what I am doing wrong.

 

Thanks Alot

 

Adam

Share this post


Link to post
Share on other sites
STS makes this really easy.

 

You have two options....

 

  1. Don't do anything and leave the page layout to your default template. This is an option but since you took the time to create a custom page I'm sure you want custom content as well so this option will most likely not be your choice (see 2nd option below).
  2. Create a new template and use the filename.php.html syntax as the name of the template. For example: If your new page is costumes.php, then your template page would be costumes.php.html. To make adding custom content to this page, I suggest that you copy your default template (sts_template.html) and rename the copy "costumes.php.html". Now, add or remove any of the infobox STS tags that you want to be displayed in this new page.

If you have static data for this page, simply add it directly into the costumes.php.html template page itself, just like you would enter data into any other web page.

 

The $content tag is optional but I advise that you use it since it will bring in other data that you may want such as Featured Products, etc. If you do not want this extra data to appear in your costumes page, then leave out this tag.

 

Thank You Bill...got it to work... got just acouple other questions. For the life of me, I can't figure out how to center my $content area on my home page (sts_template.html) or my new costumes.php.html page I created. I made sure to set the middle <td> to 100% and centered it...also double checked the cell padding & cellspacing to see if that's the problem and didn't see anything there...am I missing something? (it's probably right in front of my nose)

 

Also, I've spent hours trying to get my buttons to show and can't seem to figure it out. If you see on www.foxysally.com, you'll see that all the buttons are broken. I created some directories as the instructions say in the sts manual to place the buttons in ...sts_templates/full/images/english/buttons, but they are still not showing up. I also placed them in includes/languages/english/images/buttons to see if that'd work, but still nothing. It might be worth noting that I recently transferred all my mysql databases over from my other website and since doing that, I can't preview the images in my admin when I add them to my product listings, however I can see them on the actual public website. I just thought I'd throw that in there since maybe that could be related to this other image issue I'm having, but I don't know.

 

Leah

Share this post


Link to post
Share on other sites

I am new to Oscommerce and I have the latest of the MNK_Oscommerce installed on the site. It comes with STS 4.5.8 installed.

 

I spent hours trying to edit text appearing on the home pages that says "This is a default setup of osCommerce Online Merchant. Products shown are for demonstrational purposes. Any products purchased will not be delivered nor will the customer be billed. Any information seen on these products is to be treated as fictional." and could not find how to edit it.

 

Can anyone help find the place (or how to) edit this text.

 

Thank you.

 

regards

Share this post


Link to post
Share on other sites
Hello

 

I am new to OScommerse so im not sure if I am posting to the correct place if not im sorry, I have installed STSv4.5.8 on my shop but after I have installed it via the Modules pannel I try to set "Use Templates?" to "True" and them update it does not work just displayes false.

Does anybody think they know what I am doing wrong.

 

Thanks Alot

 

Adam

 

Adam,

 

See the following post regarding this very old osCommerce bug (not nothing to do with STS):

 

http://forums.oscommerce.com/index.php?sho...p;#entry1117449


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×