Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

I got it. It's one of those things where I was looking at it for so long I was over thinking things. Made additional css attributes and went into each of the file (login.php, shopping_cart.php, etc) and changed the areas I wanted to the new css attribute.) Duh! LOL

Amy

Link to comment
Share on other sites

It seems to be an STS bug.

 

Matt

Matt, just because it works with STS turned off does not necessarily mean that it is a STS bug. It could be that the contribution was poorly written to begin with so it does not adhere to osC code standards so therefore it has issues when STS is turned on. Master Products is an example of this.

 

Well, it's good that you got it working anyway. :thumbsup:

 

Now I have another,... I installed the "Print Order" mod and get this error on the print invoice page:

 

Fatal error: Call to undefined function: tep_banner_exists() in ///file/ print_footer.php on line 22

 

I've run into this before, but can't fix it fast enough.

????

Since this does not appear to be STS related either, I would suggest asking this in the thread dedicated to that contribution (Print Order). It appears to be an incomplete installation of that contribution.

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

Hi guys, i think i posted this earlier in the wrong place.

 

I have STS 4.5.2 and it works great as far as the sts_template.html goes and lets me drop place holders for the functions and all that.

 

I am having a real problem designing each infobox as I want to.

 

I understand and can use the use of:

 

$headertext

$content

 

I also understand the use of:

 

infobox_information_header.php.html

infobox_information.php.html

 

These will make it so that i can make a table or whatever so that I can drop $content in and it just populates the box i created.

 

But lets take the $cartbox for example.

 

$content just drops in a table that I can create in infobox_shopping_cart.php.html I can make the table look how i want and i can make the text of the cartbox look how i want. But what I cant do, (easily) is change the whole way it is displayed.

 

I understand that the way it is displayed is in boxes/shopping_cart.php

 

I can edit some of the way it looks in there being a beginer in PHP but I am wondering if there is a different way to do this?

 

There are place holders for say, product_info.php that allow you to drop the variables in any way you see fit.

 

Is there a way to do this with infoboxes? Or is there another way to do this?

 

The ultimate goal is to be able to do stuff like say, separate the Products in your $cartbox with a small line, or move the Quantity down by where the price is displayed. Actually EDITING $content for each infobox.

 

I would really appreciate the help. Even if you say the only way is to edit the boxes/whatever. I just need help.

 

Thanks so much for you time.

 

Steve

Steve,

 

Yes, you would have to edit the actual PHP code for the area being called in the $content tag for the infobox in order to custom specific details. You can use the templates that you described to get the content "wrapped" anyway you like using CSS, HTML, etc.

 

For example, if you wanted to add a line between each category in the category infobox, you would have to either do this via the stylesheet or add the code in the categories.php file. Another way to do the same thing would be to add the PHP code directly in the box template itself.

 

:thumbsup: I would love to have some STS users upload some infobox templates that they have truly customized past the standard osC look. A good place to upload these templates would be on the STS Power Pack site for STS add ons (see link in my signature below).

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

STS looks to be an excellent mod but I have a query ........can someone help me??

 

reading the documentation it seems to me that I have to have a seperate page with each product ID on it, a bit long winded?

 

What I am looking for is a page with about 20 products on it and I can set that up but cant seem to figure out how to ID each product

 

thanx in advance

Edited by bagman
Link to comment
Share on other sites

STS looks to be an excellent mod but I have a query ........can someone help me??

 

reading the documentation it seems to me that I have to have a seperate page with each product ID on it, a bit long winded?

 

What I am looking for is a page with about 20 products on it and I can set that up but cant seem to figure out how to ID each product

 

thanx in advance

Nigel, you do not need to have a separate page with each product ID...I think you mean a specific "template page" for each Product ID and the answer is still "no". You can, if you want, but you could essentially do the same thing within the admin product description.

 

Are you trying to create a template page that has your a select product listing and then link them to the osCommerce product description page?

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

Someone had told me to download and install STS to make the customization of osCommerce really easy. Well I have installed STS but have not idea as to how to use the program. I read through the instructions but it really doesn't say what I need to do.

 

Any help would be appreciated. I want to be able to customize my store front easily without modifying a bunch of .php files in diffent places.

 

Thanks in adavance.

 

scott

Link to comment
Share on other sites

sry if anyone already asked this, i just recently installed sts and i had a few questions, i already have a store running and i wanted to test with the sts system so i created a subdomain and installed a fresh copy of oscommerce and then i edited both of the configure files so they would use my original stores database that i already have going but if i add $bestsellersbox it doesnt show anything but if i go to admin section for the subdomain store it shows my other sites info so i know its connected. Also can you guys point me to where i can find out how to customize infobox's and also make the page change when i click on something.. for some reason it just stays on the same page. Also about the categories, on the template its basically hard coated and the featured products section is also hard coated in html, i was wondering if there was some file i could edit for the categories and the featured products so it would display like that without it being hard coated.

 

the site is newindex.kumarsbookstore.com

Edited by kewldude_3001
Link to comment
Share on other sites

Nigel, you do not need to have a separate page with each product ID...I think you mean a specific "template page" for each Product ID and the answer is still "no". You can, if you want, but you could essentially do the same thing within the admin product description.

 

Are you trying to create a template page that has your a select product listing and then link them to the osCommerce product description page?

 

 

Bill

thanx for the reply

what I am trying to do is somthing like a photo gallery for my products with a pop up for each product on the same page so the customer does not have to go to the product info to get further details and the buy. I can use a simple table layout for that no problem. But how do I insert the product ID for each item on the one page?

 

According to the manual it looks as though you have to create a seperate "product info*php.html" page for each product indo ID but I wouls like them on the same "php.html" page.

 

for example.......index page>category one>products list page>add to cart..........done!

 

Would you be able to give an example of how to set this up??

 

 

many thanx.......I am getting balder!!

 

Nigel

Edited by bagman
Link to comment
Share on other sites

Bill

I have just looked at your example dynamenu site and have part of the answer by accident!

 

the page I am trying to set up is similsr to "product_listing page, path 3_10"{ all manufactures..dvd's}. I have tried setting up a copy of the html file named "infobox_product_listing.php_3_10.html" {right?} and put it in the correct, test folder, but still it appears to go to the default file even though FALSE in admin.

 

Now really confused!

by the way dynamenu looks good as soon as I am sorted with STS...maybe!

 

Please help

Link to comment
Share on other sites

sry if anyone already asked this, i just recently installed sts and i had a few questions, i already have a store running and i wanted to test with the sts system so i created a subdomain and installed a fresh copy of oscommerce and then i edited both of the configure files so they would use my original stores database that i already have going but if i add $bestsellersbox it doesnt show anything but if i go to admin section for the subdomain store it shows my other sites info so i know its connected. Also can you guys point me to where i can find out how to customize infobox's and also make the page change when i click on something.. for some reason it just stays on the same page. Also about the categories, on the template its basically hard coated and the featured products section is also hard coated in html, i was wondering if there was some file i could edit for the categories and the featured products so it would display like that without it being hard coated.

 

the site is newindex.kumarsbookstore.com

Ash,

 

You have some serious problems going on here.

  1. You have a purchased osC template that has been improperly installed
  2. Because of point #1, none of your links are working

Here is a short guide to assist you in "starting over" with your purchased non-STS template:

 

*STS Tip*

How to integrate a purchased template to STS:

 

To make an STS template out of a purchased osCommerce template:

 

  1. Install the store in a test directory (meaning, follow all of the installation instructions that came with your purchased template, but be sure to do this in a test osCommerce scenario. You will use these files in your final "live" osCommerce store.
  2. Open the store in your browser
  3. View the Source Code and Save the html code to your computer
  4. Use this html code as your default template (sts_template.html) and start replacing the different elements with their corresponding STS Tags. (see the STS User Manual for details related to tags)
  5. Use the boxes class (includes/classes/boxes.php) from the template you bought in your live store since it will be used by STS as well.
  6. Modify the external stylesheet from the purchased template to your needs (if needed) to be used in your live store. Link to this stylesheet in your STS templates as you normally would.

The above should get you started in the right direction.

When buying a store with contributions already installed, be aware that it does not include BTS (Basic Template System) as it is totally incompatible with STS. You template appears to have at least one other contribution installed; Featured Products, so be careful with that. Beyond that I couldn't tell you what else it has.

 

Hope this helped,

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

Bill

thanx for the reply

what I am trying to do is somthing like a photo gallery for my products with a pop up for each product on the same page so the customer does not have to go to the product info to get further details and the buy. I can use a simple table layout for that no problem. But how do I insert the product ID for each item on the one page?

 

According to the manual it looks as though you have to create a seperate "product info*php.html" page for each product indo ID but I wouls like them on the same "php.html" page.

 

for example.......index page>category one>products list page>add to cart..........done!

 

Would you be able to give an example of how to set this up??

 

 

many thanx.......I am getting balder!!

 

Nigel

Nigel,

 

If I am understanding you correctly, you are just wanting to know how to link to a product within your STS template in order for you to do some custom designing on a single template page....

 

*STS Tip*

How to create category/product links in your STS Template:

 

STS Link to a category:

 

 

<a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>">Category Name Here</a>

Replace the number 21 for the category ID that you are linking to as well as replace NONSSL with SSL if your store has a securtiy certificate.

 

STS Link to a product:

 

<a href="<?php echo tep_href_link('product_info.php', 'products_id=53&', 'NONSSL'); ?>">Product Name Here</a>

Replace the number 53 for the product ID that you are linking to as well as replace NONSSL with SSL if your store has a securtiy certificate.

 

Hope this helped you out,

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

Bill

I have just looked at your example dynamenu site and have part of the answer by accident!

 

the page I am trying to set up is similsr to "product_listing page, path 3_10"{ all manufactures..dvd's}. I have tried setting up a copy of the html file named "infobox_product_listing.php_3_10.html" {right?} and put it in the correct, test folder, but still it appears to go to the default file even though FALSE in admin.

 

Now really confused!

by the way dynamenu looks good as soon as I am sorted with STS...maybe!

 

Please help

For that particular catagory, you would need to create a template called:

*your catalog directory here*/includes/sts_templates/*your template folder here*/index.php_3_10.html

 

**You will also need to have the STS Idex Module enabled in your store's admin.

 

The above would solve your "for example.......index page>category one>products list page>add to cart..........done!" scneario. Keep in mind, this is an osCommerce "built-in" function.

Edited by bkellum

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

Hello. I've installed this contrib (STS v4.5.4) and i have a question. How i can change Categories section and Content section?

oc1os3.jpg to this oc2rb2.jpg

And i want to remove this part from Content section:

oc3gp8.jpg

Thanks :)

Link to comment
Share on other sites

hey, the contributions werent installed, the template all it had was the index file the images for the file, style.css and a fonts folder and all the links just pointed to # meaning that i had to go in there and link them myself

That would be a problem.

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

Hello. I've installed this contrib (STS v4.5.4) and i have a question. How i can change Categories section and Content section?

You would create an infobox template for the category box.

 

For the New Products for "month" section, I strongly suggest that you install the Featured Products contribution. This will give you full contol over this box in the admin (meaning you pick what products populate that box and for how long). After that, you could use the infobox templates to template this box as well.

 

For specific details on the above, see the STS User Manual for infobox templates. If you need additional help, just let us know.

 

:thumbsup: Don't forget to install the service pack 5 so you will end up with all of the bug fixes for STSv4.5.5

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, the contributions werent installed, the template all it had was the index file the images for the file, style.css and a fonts folder and all the links just pointed to # meaning that i had to go in there and link them myself

Ash,

You have your work cut out for you but I will try to give you a few tips on how to get this going...

  1. Be sure you have the following code at the beginning of your template HTML (you need this in order for STS to understand what the tags represent as well as basic STS/osC functionality):
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html $htmlparams>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <!--$headcontent-->
     <link rel="stylesheet" type="text/css" href="stylesheet.css">
    </head>

    The link to your stylesheet would depend upon where your stylesheet is located.

  2. Add the $content tag in the template where you currently have "Big Ad Banner Here".
    This will cause the page to actually pull in the osCommerce content.
  3. Use the link structure mentioned a few posts above for your categories and product links. This works for a shop with just a few categories and products but is not advised for larger shops because of the work you would have to put into it. Larger shops should use the "built-in" link construction already in osCommerce.
  4. Add the $cataloglogo tag where your template currently has the Online Store logo. Be sure you named your logo "header_logo.gif", and saved it in *your catalog directory*/includes/sts_templates/*your template folder*/images/english (or other language).

The above should get you going in the right direction.

Hope this helped,

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

Someone had told me to download and install STS to make the customization of osCommerce really easy. Well I have installed STS but have not idea as to how to use the program. I read through the instructions but it really doesn't say what I need to do.

 

Any help would be appreciated. I want to be able to customize my store front easily without modifying a bunch of .php files in diffent places.

 

Thanks in adavance.

 

scott

 

bump^^

Link to comment
Share on other sites

thanks for the reply, so im guessing if i installed the featured products contrib i would have to change teh php page for that to have it display teh way i have right now?

 

also why is it when i put in the code for the $categorybox that it shows the old categories??? even though under admin it shows the new one since i changed the database connection info to show the new one?

Link to comment
Share on other sites

thanks for the reply, so im guessing if i installed the featured products contrib i would have to change teh php page for that to have it display teh way i have right now?
Yes to installing the Featured Products contribution and yes to making the mods in those files or make an infobox template for the new featured products infobox.

 

 

also why is it when i put in the code for the $categorybox that it shows the old categories??? even though under admin it shows the new one since i changed the database connection info to show the new one?
This does not have anything to do with STS but has to do with your osCommerce settings in both of your configure.php files as well as your database connections.

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 everyone, thanks once again for the contribution it really makes the site look good, i have a small problem though, my last template wasnt working properly so i just sliced it in photoshop and saved it for net as an html file which gave me something like this.......

<html>
<head>
<title>2-KL</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (2-kl.psd) -->
<table id="Table_01" width="1000" height="900" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td colspan="5">
		<img src="images/2-kl_01.gif" width="1000" height="82" alt=""></td>
</tr>
<tr>
	<td colspan="5">
		</td>
</tr>
<tr>
	<td colspan="4">
		<img src="images/2-kl_03.gif" alt="$breadcrumbs" width="994" height="18" align="middle"></td>
<td rowspan="6">
		<img src="images/2-kl_04.gif" width="6" height="816" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/2-kl_05.gif" width="4" height="1" alt=""></td>
	<td rowspan="3">
		<img src="images/2-kl_06.gif" width="159" height="751" alt=""></td>
	<td rowspan="3">
		<img src="images/2-kl_07.gif" width="679" height="751" alt=""></td>
	<td>
		<img src="images/2-kl_08.gif" width="152" height="1" alt=""></td>
</tr>
<tr>
	<td rowspan="3">
		<img src="images/2-kl_09.gif" width="4" height="757" alt=""></td>
	<td>
		<img src="images/2-kl_10.gif" width="152" height="1" alt=""></td>
</tr>
<tr>
	<td>
		<img src="images/2-kl_11.gif" width="152" height="749" alt=""></td>
</tr>
<tr>
	<td colspan="3">
		<img src="images/2-kl_12.gif" width="990" height="7" alt=""></td>
</tr>
<tr>
	<td colspan="4">
		<img src="images/2-kl_13.gif" width="994" height="40" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>

 

Now i'm just completley lost as to where i can put the links in it....i tried experimenting with $breadcrumbs as you can probably see i placed it in the alt tag i also tried placing it outside the angle brackets both of which just resulted in a white box under where i wanted it to show with the required output still there but my template completley broken up...any help would once again be greatly appreciated.

 

Thanks,

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