Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Great contribution! I have a problem though.

 

My products_info page is blank. I've turned on and off all of the settings in the admin tool, but to no avail. I've been reading the manual back and forth and up and down the forum. I don't mind using the index template right now, just want to get the whole site to work before I start with the formatting. Any help would be greatly appriciated!!

What version of STS are you using? Have you checked to be sure you did a complete install (Use a file comparison tool such as Beyond Compare to compare your files with the files in the 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

What version of STS are you using? Have you checked to be sure you did a complete install (Use a file comparison tool such as Beyond Compare to compare your files with the files in the contribution).

 

I'm using 4.3.3 and installed by copying the new files, and added the code according to the STS 4.3.3 Install manual. I'll install separately with Winmerge and see what happens.

 

Thanks for the tip!!

Edited by plancanvas
Link to comment
Share on other sites

Just wanted to say thanks to everyone, particularly Bill K., for their assistance in getting my site up.

THANK YOU!

Marion

Glad to hear it is working out for you. :D

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 all,

 

Got STS 4.3 and HTC 2.6 working great - thanks Bill.

 

Is there a suitable easy populate contribution that works with this setup? Or is it just the standard one?

Anybody recommend other similar contributions? I just want to make it easy to upload multiple products with one click of the button!

 

Thanks

 

Becki

Link to comment
Share on other sites

Hi all,

 

Got STS 4.3 and HTC 2.6 working great - thanks Bill.

 

Is there a suitable easy populate contribution that works with this setup? Or is it just the standard one?

Anybody recommend other similar contributions? I just want to make it easy to upload multiple products with one click of the button!

 

Thanks

 

Becki

Hi, I used the categories.php file from the install folder of HTC but still I get a blank screen on product_info.php ? Have you got any ideas as to what might be the problem? I had STS 4.2 installed fine but then when i installed htc 2.5.9 on top this happened, the tags work in the index.php pages etc though, just this blank screen at product_info ?

 

Thanks

 

Becki

Becki, what did you do to fix your product_info.php blank page issue? Just wondering... :-

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, i have installed php 4.4, oscommce 2.0, and sts v4.3.3, they work fine. then i uploaded the files to my production site. somehow the sts doesn't work. i don't know what version of php the host site is using, so i don't know if it is because of the problems of the php. when i go to the catalog/admin/modules.php?set=sts, it couldn't find the templates in the sts folder. it only displays:

 

Module Directory: /catalog/includes/modules/sts/

 

with the "+install" button. it didn't do anything when i clicked on it. i checked the modules.php for action=install, it is an empty case statement. does anyone have any clue what is wrong or what i missed? thanks in advance. :(

Link to comment
Share on other sites

Hi,

I have STS v4.3.3 installed and it seems to be working great. However, I recently noticed that when I right click on my images for the properties, it says the pathname is http://www.mysite.com/images/img and not as I (thought) I set them (as /images/english/img). The images are installed in the images/english directories so I cant figure out why they are reading as images/img.

Im pretty sure I read in documentation for STS that this is risky which is why Im posting this topic.

 

Another thing Im curious about is setting permissions on my directories. They are currently set at 755. Ive tried setting them(from ftp) to 644 and, when that didnt work, to 444 (also didnt allow me access). Arent permissions supposed to be set to 644, 444, or 400 after upload? Im worried this is a security issue.

 

Thank you

 

Marion

Link to comment
Share on other sites

Hi,

I have STS v4.3.3 installed and it seems to be working great. However, I recently noticed that when I right click on my images for the properties, it says the pathname is http://www.mysite.com/images/img and not as I (thought) I set them (as /images/english/img). The images are installed in the images/english directories so I cant figure out why they are reading as images/img.

Im pretty sure I read in documentation for STS that this is risky which is why Im posting this topic.

 

Another thing Im curious about is setting permissions on my directories. They are currently set at 755. Ive tried setting them(from ftp) to 644 and, when that didnt work, to 444 (also didnt allow me access). Arent permissions supposed to be set to 644, 444, or 400 after upload? Im worried this is a security issue.

 

Thank you

 

Marion

Marion, you are going to want some folders to be accessible such as a download folder and your images folder; otherwise no one would be able to download or see images of your products. Take a peek in the osCommerce Knowledge Base or the online documentation to get more info on the osCommerce folder permission structure. This is not a STS issue.

 

Your image properties appear to be OK. Again, this is an osCommerce way of doing things by what you have setup for the language settings in your store. You need to be concerned with links outside of the osCommerce structure because of security certs and session ids. Again, the osCommerce Knowledge Base can be an excellent resource in this area. :thumbsup:

 

Hope this helped ease your fears,

 

Bill Kellum

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, i have installed php 4.4, oscommce 2.0, and sts v4.3.3, they work fine. then i uploaded the files to my production site. somehow the sts doesn't work. i don't know what version of php the host site is using, so i don't know if it is because of the problems of the php. when i go to the catalog/admin/modules.php?set=sts, it couldn't find the templates in the sts folder. it only displays:

 

Module Directory: /catalog/includes/modules/sts/

 

with the "+install" button. it didn't do anything when i clicked on it. i checked the modules.php for action=install, it is an empty case statement. does anyone have any clue what is wrong or what i missed? thanks in advance. :(

Max, my first impulse would be that not all of the files got transferred over to your new server or that some permission settings were changed on some of your folders.

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

Max, my first impulse would be that not all of the files got transferred over to your new server or that some permission settings were changed on some of your folders.

 

thanks for replying so quickly. i thought of that too. i changed admin folder's permission to 755, and admin/includes to 755, includes/modules/sts to 755, not working. i checked the templates are under /catalog/includes/modules/sts. so i don't know what is wrong. i have tried upload two times for all the files to make sure they are on the host.

Link to comment
Share on other sites

thanks for replying so quickly. i thought of that too. i changed admin folder's permission to 755, and admin/includes to 755, includes/modules/sts to 755, not working. i checked the templates are under /catalog/includes/modules/sts. so i don't know what is wrong. i have tried upload two times for all the files to make sure they are on the host.

 

i have checked this statement in admin/modules.php:

if ($dir = @dir($module_directory))

 

it returns false. any clue? becaue of the php version? i am a newbie to php. please help.

Link to comment
Share on other sites

Becki, what did you do to fix your product_info.php blank page issue? Just wondering... :-

 

Hi Bill,

 

I haven't actually got it fixed yet - that was on my previous shop - I still would like to get it working though as it had come along quite far in terms of adding contributions. I asked in the HTC forums and tried replacing my product_info and categories.php files but still blank. Anybody got any more ideas?

In HTC they said it could be if one product_info had been written over by another one (I think there's two isn't there one in lang/english and one in catalog/...) Im pretty sure i haven't done that!

 

In the end I started again from scratch and installed your STS&HTC first and then other contribs on top which works great. But still haven't got all the contribs I'd installed previously - so if this issue gets a solution please let me know!

 

Bill - any ideas on the Easy populate question?

 

Thanks

Becki

Link to comment
Share on other sites

Ok I can't semm to get STS 4.3 configured properly.When you go to admin panel and modules the STS modules isn't shwong up??? Does anyone know how to fix this?????
This is because of an incomplete install. Try installing STSv4.3.3 again.

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,

 

I don't know if this a STS question specifically but as STS enabled me to do it I thought I'd ask here first, after just reading a thread somewhere I have this question,

 

I have put a navigation bar in my main template which has links to various pages, currently I have the links just as catalog\product_info... etc etc. But i just read somewhere that links should be done with the tep_href_link function or else the session ID will be lost if cookies are disabled (or along those lines?)

 

If anyone knows if this is correct or not could you say how it is done?

 

Thanks

 

Becki

Link to comment
Share on other sites

Hi,

 

I don't know if this a STS question specifically but as STS enabled me to do it I thought I'd ask here first, after just reading a thread somewhere I have this question,

 

I have put a navigation bar in my main template which has links to various pages, currently I have the links just as catalog\product_info... etc etc. But i just read somewhere that links should be done with the tep_href_link function or else the session ID will be lost if cookies are disabled (or along those lines?)

 

If anyone knows if this is correct or not could you say how it is done?

 

Thanks

 

Becki

 

Bill - I have the 4.3.2 and HTC 2.6 installe d- do i need to install the/any of the 3 service packs that ar eon the contribs page? If so what do they do and can i get away with not?! :)

Link to comment
Share on other sites

Bill - I have the 4.3.2 and HTC 2.6 installe d- do i need to install the/any of the 3 service packs that ar eon the contribs page? If so what do they do and can i get away with not?! :)
Becki, you will need SP2 (December 7) since this corrected a bug in some of the infobox templates causing double headers.

 

SP3 (December 12) just allows you to use STS and GZip compression together without having to tweak either. It's up to you if you want to install SP3 or not. I would since it is simple enough.

 

or...you could just compare what you have with STSv4.3.3 and HTCv2.6.0, which is the most current bundle version (that includes all service packs) and can be downloaded from the STS4 Power Pack contribution page. (http://www.oscommerce.com/community/contributions,4456)

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,

 

I don't know if this a STS question specifically but as STS enabled me to do it I thought I'd ask here first, after just reading a thread somewhere I have this question,

 

I have put a navigation bar in my main template which has links to various pages, currently I have the links just as catalog\product_info... etc etc. But i just read somewhere that links should be done with the tep_href_link function or else the session ID will be lost if cookies are disabled (or along those lines?)

 

If anyone knows if this is correct or not could you say how it is done?

 

Thanks

 

Becki

Becki, you should follow the format specified in the osCommerce Knowledge Base:

 

 
<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT) . '">' . 'CHECKOUT' . '</a>'; ?>

or you could also use:

 

 
<a href="<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL'); ?>" class="links"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

Both of these examples do the same thing. It is important how you create your links so that you do not lose the session ID and risk causing the customers cart to empty after clicking on a bad link.

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

Hi!

 

I am still trying to understand how STS works. I am using the latest package. Now my questions are:

1) I copied the boxes, content, index.php.html of the full folder into my own folder. I have on stylesheet.css, installed in my root, defined the background image in the body, repeated and fixed. There is a .fixcenter under the body by Basic package contribution which I defined a background color. The problem is it shows the background image in and out of the page. I want the image only as background of the entirepage but not inside the body, which I want the defined color of the .fixcenter to be activated.

How do I keep the background only in the body, meaning around it, and not inside the content. It is working perfectly when sts is deactivated.

 

2) Where do you define $content# placeholder if you want to change the definition of it?

3) Generally, where do I change the definitions of these placeholders?

 

Thanks. Hopefully now I will get a response. I probably wrote on the wrong thread.

:rolleyes:

Edited by star8
Link to comment
Share on other sites

@Becki:

If you force the use of cookies (so no SID in the URL), if the destination page of the link does not require SSL, and if you are not using any URL rewriting, then you don't need to use tep_href_link function.

 

@star8:

The content of the $content placeholder is defined in the php script, for example index.php. If you want to modify it, you have to modify index.php. Fot the product_info.php page, it is possible to create a template for this $content, it is called a "content template".

 

General placeholders are defined in catalog/modules/sts_inc/general.php.

Boxes placeholders are defined in catalog/modules/sts_inc/sts_column_left.php.

Your own placeholders should be placed in catalog/modules/sts_inc/sts_user_code.php.

 

That's a start.

 

- Rigadin

Link to comment
Share on other sites

OK I looked on the knowledge base and found this:

 

Graphic Links

 

Link Graphic to Individual Product ID

Link Graphic to Page

 

Adding php links to a regular graphic uses the tep_href_link() function which is what carries the session id.

 

Link Graphic to Individual Product ID

 

<?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=1') . '"><img src="images/graphic.jpg" alt="Graphic" name="graphic_name" width="66" height="100" border="0" id="graphic_name"></a></p>'; ?>

 

Note: This only works on a php page.

 

 

Link Graphic to Page

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'graphic.jpg', 'graphic text') . '</a>'; ?>

 

Text Links

 

Text links can be added a couple of ways which is a matter of preference.

 

<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT) . '">' . 'CHECKOUT' . '</a>'; ?>

 

Or like this:

 

<a href="<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL'); ?>" class="links"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

 

It does say it only works for a php page whereas our template is html isn't it - does that mean it won't work?

 

 

and for mouseover graphics which I want to do for the nav bar:

 

Introduction

 

Mouse over graphic links using php is a little more involved. Mouse over graphics make the site look nice but the session id is carried in the tep_href function. To make this easier create a new text file in the catalog/includes folder called mm.js. The javascript code include (mm.js), the body onLoad code, and the php links have been added to the catalog/includes/header.php so all pages in the store will be able to show this function.

 

Mouse Over Graphic Links

 

First, make the mouseovers in an html file so you get the javascript code and the body onLoad information. We will use a code that was made for a site as an example. Make a file called mm.js or another name if you choose and put the generated javascript code in it like this:

 

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a<i>.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a<i>;}}

}

 

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a<i>)&&x.oSrc;i++) x.src=x.oSrc;

}

 

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms<i>[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers<i>.document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

if ((x=MM_findObj(a<i>))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

 

 

Add the mm.js Include to catalog/includes/header.php File

Add this code to the catalog/includes/header.php file right before the body tag which will add the included mm.js file with the javascript code in it like this:

 

<head>

<script language="JavaScript" type="text/JavaScript" src="/includes/mm.js"></script>

</head>

 

NOTE: The head tags can be removed and this code will still work.

 

Body onLoad Code

Add the generated body onLoad code from the html file you made to the body tag in the header.php file like this example:

 

<body onLoad="MM_preloadImages('../images/nav_checkout_over.gif','../images/nav_cart_over.gif','../images/nav_home_over.gif','../images/nav_acct_over.gif')">

 

Actual Links

The actual link using php will be added like this example:

 

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '" onMouseOver="MM_swapImage(\'nav_home\', \'\', \'../images/nav_home_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_home.gif', 'Home', null, null, 'name="nav_home"') . '</a>'; ?>

<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '" onMouseOver="MM_swapImage(\'nav_acct\', \'\', \'../images/nav_acct_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_acct.gif', 'My Account', null, null, 'name="nav_acct"') . '</a>'; ?>

<?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '" onMouseOver="MM_swapImage(\'nav_cart\', \'\', \'../images/nav_cart_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_cart.gif', 'My Cart', null, null, 'name="nav_cart"') . '</a>'; ?>

<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '" onMouseOver="MM_swapImage(\'nav_checkout\', \'\', \'../images/nav_checkout_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_checkout.gif', 'Checkout', null, null, 'name="nav_checkout"') . '</a>'; ?>

 

 

NOTE: Change the names of the graphics above to reflect your graphic names and graphic id names.

 

 

I'm using dreamweaver to produce the navigation bar with mouseover images but I'm unsure where to put the code described above:

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '" onMouseOver="MM_swapImage(\'nav_home\', \'\', \'../images/nav_home_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_home.gif', 'Home', null, null, 'name="nav_home"') . '</a>'; ?>

 

Can I enter that into the link box of the dreamweaver nav bar editor instead of 'catalog/product_info.php' etc?

Is there an easy solution to the way I'm doing it? I presume alot of the code above is if you wern't having dreamweaver generate the code? Do I have to do all that it says above?

Also do I not need the SSl on the checkout shipping and account pages etc? Where would that be put in?

 

Any help will be greatly appreciated!

 

Thanks

 

Becki

Link to comment
Share on other sites

The calls of tep_href_link for the menu items (home, checkout, account, ...) are made in modules/sts_inc/general.php, you can add the OnMouseOver effect there. JS file is included from within the head section of the html template, and you don't need Dreamweaver to generate any kind of code.

 

- Rigadin

Link to comment
Share on other sites

The calls of tep_href_link for the menu items (home, checkout, account, ...) are made in modules/sts_inc/general.php, you can add the OnMouseOver effect there. JS file is included from within the head section of the html template, and you don't need Dreamweaver to generate any kind of code.

 

- Rigadin

 

Sorry for my lack of knowledge in this but I'm still not sure what to do! I have looked in the general.php file and found the tep_href_link references.

 

Dreamweaver is generating the mouse over code isn't it?

 

Please could you let me know if what I am trying to is going to work:

In dreamweaver I am editing the sts_template.html and using the function in dreamweaver to create a navigation bar with roll over images (I don't know if you are familiar with this) which is fine as it's all in a set format and it generates it's own code that lies in the html template (I'm doing it in design view)- this way I can move it around as one bar etc etc etc and all the code is written for me.

I've assigned the images to it etc but at present where it says link to i've put in 'conditions.php' for example

but now find it breaks the cart contents etc - even though i have got cookies enabled?

 

So my preferred solution would be to keep this way of editing the nav bar (with the windows style control boxes in dreamweaver rather than raw code) is there a way to do this - for example some code I can put in the link boxes of the nav bar? Such as a placehodler or something(although that wouldn't work)

 

If not are you saying I could geneerate the code for the mouse overs etc and nav bar in dreamweaver and paste that into general.php? Which js file is included in the head section of the html template?

 

Is there any chance of a step by step guide? I think it would be very helpful for others and to put in the manual perhaps?

 

Thank you

 

Sorry if I am being thick!

 

Becki

Edited by Becki
Link to comment
Share on other sites

Hi!

 

After I removed the $catmenu# from the index.php.html , I have the empty space on the left column above the category menu of my page. I tried cause and effects through index.php.html, sts_column_left.php, I could'nt correct it. That means the category heading and the $content# has the same level while the cart menu is on the higher level. How do I get to have these starting on the same level?

 

Any suggestions to this problem?

Thanks :blink:

Edited by star8
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...