Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

ok i have the database issue fixed and i have the categories showing. So my new question is can i get the categories to display the way i have right now and if so how :)

 

thanks

First of all, you need to make sure you have the current listed categories actually created in your store's admin so that they are true osC categories.

 

Then, you will need to edit the category infobox template to display how you want it to. All HTML, CSS, etc. styling apply. Look to the STS User Manual Infobox Template section on how to create the correct naming of the file and where to save it on your server.

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

The install text file i got in my download, tells me nothing on how to install it. Is there anyway to get the file with installing instructions?
Where did you get it and what exactly did you install? Use the link in my signature below to download the latest version of STS (4.5.5).

 

:thumbsup: At the moment, you will need to download STSv4.5.4 as well as the service pack 5 just above it. Look in the STSv4.5.4 "doc" folder for the install.html file.

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

Then, you will need to edit the category infobox template to display how you want it to. All HTML, CSS, etc. styling apply. Look to the STS User Manual Infobox Template section on how to create the correct naming of the file and where to save it on your server.

 

i was wondering if anyone could help me with that, if they could get me started on the categories one

Link to comment
Share on other sites

Where did you get it and what exactly did you install? Use the link in my signature below to download the latest version of STS (4.5.5).

 

:thumbsup: At the moment, you will need to download STSv4.5.4 as well as the service pack 5 just above it. Look in the STSv4.5.4 "doc" folder for the install.html file.

 

I got it from http://www.oscommerce.com/community/contributions,1524

 

i downloaded STS v4.5.3 for osC Online Merchant RC1

 

but now i have downloaded 4.5.4 and have figured it out thank you

Link to comment
Share on other sites

i was wondering if anyone could help me with that, if they could get me started on the categories one

 

Infobox templates are located in your template folder, using default parameters of STS it gives: catalog/includes/sts_templates/test/boxes.

 

Make at least one template infobox.php.html, it's the default one that will be used for all boxes that don't have own template.

 

After that, you can create templates for individual boxes. Look in catalog/includes/boxes/ for the filename of the box you want to give own look.

For information.php, create catalog/includes/sts_templates/test/boxes/infobox_information.php.html

 

Boxes that appear in the content part of the store, like "also purchased" or "New for products for..." can also have own template. Look at their filename in catalog/includes/modules/ .

For also_purchased_products.php, create catalog/includes/sts_templates/test/boxes/infobox_also_purchased_products.php.html

 

Now, the boxes class is used in other places in the store and you have the problem that you see your default infobox template in places where it should not be. For example, go the shopping cart when there is no product. There is a box there, but it is not an infobox, the box is created directly from the catalog file catalog/shopping_cart.php . You can create a template for this box too:

catalog/includes/sts_templates/test/boxes/catalog_shopping_cart.php.html .

 

Same problem if you go to product_info.php for an unexisting product, a box is displayed with a text inside. Make an infobox catalog/includes/sts_templates/test/boxes/catalog_product_info.php.html

 

 

That's a good start. If you look at the manual, you'll see that you can also create a different infobox header for each box, but this is optional. It helps when only the header changes between boxes, you can make one header template for each box and only one infobox.php.html for all.

 

- Chris

Link to comment
Share on other sites

thanks for the reply, i got it started, my question now is how do i get it to recognize my stylesheet???

i added this to the top of the infobox.php.html

 

<link rel="stylesheet" type="text/css" href="style.css">

i have style.css which i use for the template, and i left the stylesheet.css for the store info

 

if u look at the header, it should be like the featured products header but its not....and the content inside should look like the item description under the featured products (excellent condition), but it doesnt :(

 

also i need more help setting up the categories info box, do i have some kind of loop that i have to do telling it to seperate it the way i wanted????

 

newindex.kumarsbookstore.com

 

i combined my two stylesheets and i changed:

<link rel="stylesheet" type="text/css" href="style.css"> to

<link rel="stylesheet" type="text/css" href="stylesheet.css"> and it looked like i might be able to figure it out but it started to affect the other stuff on the template for instance the links color and stuff

Edited by kewldude_3001
Link to comment
Share on other sites

The link to the stylesheet should be in the html header, not in the infobox template. 3 ways to do now:

1) Copy the styles you need to your stylesheet.css

2) Use the special placeholder $extracss (see manual). You can place the link to style.css inside $extracss, and place $extracss in the html header (look manual for exact syntax).

3) Place links to your 2 stylesheets into your main template(s). If some styles are defined twice, the second one will be used.

 

Also, remember that when running your store, all links are related to catalog folder, but when you are editing your templates, links are related to your template folder.

 

The content of the catalog box is defined in catalog/includes/boxes/categories.php, the loop is there.

 

- Chris

Link to comment
Share on other sites

Hi,

 

I have STS and SSL. I cant get them to work well together. A security alert appears, it talks about secure and non secure items. If i click No, the images dont appear, and the padlock appears. If i click YES, the images appears, but the padlock dont.

How can i solve this problem, for the padlock appears with the images?

 

Hope you understand my poor english

Thanks

phpsurfer

Link to comment
Share on other sites

Also, can someone tell me where in the categories (infobox) would i insert the dotted line to appear between categories and arrow in front of the category name????

 

ex:

 

Categories

->All Products

-----------------

->Something

Edited by kewldude_3001
Link to comment
Share on other sites

ok i wanted my bestsellers header to be in all caps so i made a infobox_bestsellers_header.php.html and put the header part and replaced the $headertext with BESTSELLERS inside and it didnt affect anything how come?
Follow the naming syntax of your actual infobox names found in catalog/includes/boxes. You will find that you named you infobox incorrectly and it should have been named as follows:

 

infobox_best_sellers_header.php.html

 

Another way of doing the above if you want all uppercase for your infobox headers is to edit the stylesheet.css as follows:

 

Open your catalog/stylesheet.css file and look for the following style:

TD.infoBoxHeading

Now add the following attribute to it:

text-transform: uppercase;

That should do the trick!

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

Also, at the top of my site, i would like for it to say how many items are in a persons cart, for instance if they none it would say 0 items in your cart, but if u have one the zero changes to say 1 items in your cart. what $value do i use for this?

 

This Contrib Add Shopping Cart Info to Your Header Contrib 1079 should do the trick, I have it installed on mu site with STS and it works fine, I am in the process of trying to figure out how to make into a link. I have it already for if there is no products in the cart, but can not figure out how to properly get the code so that it is a link if you have items in your cart.

 

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

Powered By osC 2.2RC2a STS 4.5.8 - HTC 2.6.3 - FP 1.5.9 - BCH 1.0.0

Link to comment
Share on other sites

Also, can someone tell me where in the categories (infobox) would i insert the dotted line to appear between categories and arrow in front of the category name????

 

ex:

 

Categories

->All Products

-----------------

->Something

 

Regarding the line separator between categories:

This can be accomplished by adding a css class in your stylesheet.

-or-

In the includes/boxes/categories.php file, find

$categories_string .= '<br>';

and change it to

$categories_string .= '<hr>';

 

**Attention**

I am currently working on a more simpler way of modifying the categories listing in the categories infobox. This would include separating each individual catagory into it's own class in the stylesheet to allow for complete style control using CSS. If someone has already done this or would like to assist just PM me with your information. :thumbsup:

 

I will be uploading this simple mod to the STS Power Pack site when complete.

Hope this helped,

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

Open your catalog/stylesheet.css file and look for the following style:
TD.infoBoxHeading

Now add the following attribute to it:

text-transform: uppercase;

That should do the trick!

Hope this helped,

 

thanks for telling me about the naming thing, also i cant seem to get the header font to match the way i have featured products,

 

the font info for the featured products is: font-size: 11px; font-family: tahoma; font-weight: 600

 

and this is what i have inside the headerinfo

 

TD.infoBoxHeading {

font-family: tahoma;

font-size: 11px;

font-weight: 600;

color: #ffffff;

text-transform: uppercase;

}

 

thanks for all the help so far!!!

Link to comment
Share on other sites

Also, at the top of my site, i would like for it to say how many items are in a persons cart, for instance if they none it would say 0 items in your cart, but if u have one the zero changes to say 1 items in your cart. what $value do i use for this?

 

OK, I had some extra time (rare)....

 

Create two infoboxtemplates named as follows and save them in *your catalog directory*/includes/sts_templates/*your template folder*/boxes:

 

infobox_shopping_cart.php.html

infobox_shopping_cart_header.php.html

 

For the "infobox_shopping_cart_header.php.html", leave empty, meaning, do not add any code whatsover.

 

For the "infobox_shopping_cart.php.html" template, add the following code:

 

				  <TABLE cellSpacing=0 cellPadding=0 border=0>
				<TBODY>
				<TR>
				 <TD><A 
					href="shopping_cart.php"><IMG 
					height=34 alt="" src="images/sc.gif" 
					width=40 border=0>
  </A>
   </TD>
				 <TD><A class=top11 href="shopping_cart.php"><B>Shopping<BR>Cart</B></A>
   </TD>
  </TR>
				<TR>
				  <TD colSpan=2><IMG height=8 alt="" 
					src="images/spacer.gif" width=1 
					border=0>
	</TD>
  </TR>
				<TR>
				  <TD colSpan=2>
					<DIV class=top11><SPAN class=or11>$content</SPAN> 
					in your cart </DIV>
	</TD>
  </TR>
  </TBODY>
  </TABLE>

 

Now, in your template page, remove the code that currently populates the shopping cart table and replace it with the following STS tag: $cartbox

The will give your shopping cart box full osCommerce functionallity.

 

You may have to do some fine tuning to the above but that should do the trick.

 

Have fun,

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

thanks for telling me about the naming thing, also i cant seem to get the header font to match the way i have featured products,

 

the font info for the featured products is: font-size: 11px; font-family: tahoma; font-weight: 600

 

and this is what i have inside the headerinfo

 

TD.infoBoxHeading {

font-family: tahoma;

font-size: 11px;

font-weight: 600;

color: #ffffff;

text-transform: uppercase;

}

 

thanks for all the help so far!!!

It appears the Featured Products text is using the "class lw" or "class lb" which has the following attributes:

 

.lb 
{ 
FONT-WEIGHT: 600; 
FONT-SIZE: 11px; 
COLOR: #78be30; 
FONT-FAMILY: tahoma; 
POSITION: absolute
} 

.lw 
{ 
FONT-WEIGHT: 600; 
FONT-SIZE: 11px; 
LEFT: -1px; 
COLOR: #ffffff; 
FONT-FAMILY: tahoma; 
POSITION: relative; 
TOP: -1px
}

 

:thumbsup: I stongly suggest that you download the free Microsoft Internet Exlporer Developer Toolbar to assist you in locating the different elements on your page. That is what I used to locate the above.

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

This Contrib Add Shopping Cart Info to Your Header Contrib 1079 should do the trick, I have it installed on mu site with STS and it works fine, I am in the process of trying to figure out how to make into a link. I have it already for if there is no products in the cart, but can not figure out how to properly get the code so that it is a link if you have items in your cart.

 

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

 

thanks for that contrib, it works only thing i would like to change is move Total Price: which i changed to Total to the next line instead :)

 

THANKS AGAIN!!!!

Link to comment
Share on other sites

thanks for that contrib, it works only thing i would like to change is move Total Price: which i changed to Total to the next line instead :)

 

THANKS AGAIN!!!!

 

Ash,

Keep in mind that if you use that contribution (which is a good one by the way), you will have to manualy update that modification everytime you update the Simple Template System for your store, not to mention the other script modifications associated with that contribution.

 

Using the existing infobox templates and the $cartbox tag will accomplish the same thing but uses "out of the box" STS coding.

 

:thumbsup: But hey, whatever works right? :lol:

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

:thumbsup: I stongly suggest that you download the free Microsoft Internet Exlporer Developer Toolbar to assist you in locating the different elements on your page. That is what I used to locate the above.

 

well i knew about the rest, i have the style.css and i didnt think it mattered and i inserted it and it still looked the same :(

 

well i was going to change it but thats way too much information for me anyways thats a great script by the way but all i really need is the item number and total, i cant have the header expanding on me :(

 

THanks though!!!

Edited by kewldude_3001
Link to comment
Share on other sites

well i knew about the rest, i have the style.css and i didnt think it mattered and i inserted it and it still looked the same :(

 

well i was going to change it but thats way too much information for me anyways thats a great script by the way but all i really need is the item number and total, i cant have the header expanding on me :(

 

THanks though!!!

I'm not sure what you meant by the above. :blink: Are you saying that the mini-tutorial that I wrote for you a few posts above is too daunting or that the "Cart in Header" contribution is too much?

 

What I suggested above is standard STS work flow. :rolleyes:

 

STS comes with the shopping_cart infobox in the right column but using the mini-tutorial above will allow you to place it in your template in the same location your purchased template had it. I just took the HTML from your current purchased template and put it in the infobox_shopping_cart.php.html file and then removed that same HTML from the purchased template. ;)

--------------------------------------------------

**EDIT 10:26PM**

I must have been writing the above as you were editing your post. :-

--------------------------------------------------

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

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