Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

So, I sucessfully installed the Featured Sets contribution. I also successfully created a place holder for it. It works great.

 

But, the contribution did not come with a includes/boxes file.

 

How would I go about creating a custom box for a feature with no box file?

Link to comment
Share on other sites

STS 4.5 & Dynamenu problem.

 

well, I had the store all up and running beautifully until I decided to mess with Dynamenu! I followed Bill Kellum's directions of how to make it work with STS and my problem is that the fly-outs didn't work.

 

So, I went to add

<?php echo $GLOBALS['dmfooter']; ?>

 

to the bottom of application_bottom.php and I am getting funky error message.

Now, I'm not all that familiar with Php. I know the directions said to add the code before the ending ?>

So, should the last line now just look like this?

<?php echo $GLOBALS['dmfooter']; ?>

does the ?> at the end of the inserted code combine with the ending ?> I'm supposed to insert it in front of or should there be two? (?>)'s? I tried several ways and nothing seems to be working but that could and probably is just because I don't know what I'm doing.

 

gah, any advice on how to get this to work with the fly-outs? really appreciated.

Link to comment
Share on other sites

I don't know if the STS Guru's have come up with a remedy for the horizontal fly-out.

 

But for the vertical fly-out your application bottom should look like this:

if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {
if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {
  tep_gzip_output(GZIP_LEVEL);
}
 }
//Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];
?>

 

Hope this helps,

Dano

Edited by dealindano
Link to comment
Share on other sites

I don't know if the STS Guru's have come up with a remedy for the horizontal fly-out.

 

But for the vertical fly-out your application bottom should look like this:

if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {
if ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {
  tep_gzip_output(GZIP_LEVEL);
}
 }
//Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];
?>

 

Hope this helps,

Dano

 

ah thank you Dano, yes, unfortunately the horizontal fly-out is what I was looking for. I should have mentioned that. Thank you much for your help.

Link to comment
Share on other sites

I don't know which one you call horizontal fly-out. I have this in my code:

0 = Horizontal Drop-down

1 = Vertical Flyout

2 = Tree Menu

3 = Plain Horizontal Menu

4 = Plain Vertical Menu

 

and they are all working with STS v4.5.2 (important to have Service Pack 2!).

 

- Chris

Link to comment
Share on other sites

i install it as per instructions

2) Do it again

3) Copy all the new files to your store:

- catalog\includes\classes\sts.php

- catalog\includes\functions\sts.php

- catalog\includes\languages\english\modules\sts folder

- catalog\includes\modules\sts folder

- catalog\includes\modules\sts_inc folder

- catalog\includes\sts_templates: all files

 

 

then when i go to my admin. modules the config is not there, eg the sts box!!

 

 

also can anyone please send me some sts samples you did so i can work of them

Link to comment
Share on other sites

did all this

 

 

3) Copy all the new files to your store:

- catalog\includes\classes\sts.php

- catalog\includes\functions\sts.php

- catalog\includes\languages\english\modules\sts folder

- catalog\includes\modules\sts folder

- catalog\includes\modules\sts_inc folder

- catalog\includes\sts_templates: all files

 

 

now in admin/modules its not there?????????

 

 

thanks

pw

Link to comment
Share on other sites

did all this

 

 

3) Copy all the new files to your store:

- catalog\includes\classes\sts.php

- catalog\includes\functions\sts.php

- catalog\includes\languages\english\modules\sts folder

- catalog\includes\modules\sts folder

- catalog\includes\modules\sts_inc folder

- catalog\includes\sts_templates: all files

 

 

now in admin/modules its not there?????????

 

 

thanks

pw

oops....didn't follow ALL of the instructions. You still need to make the modifications to the rest of the files including those on the admin side as well as changes to the stock osC files.

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 package contains new files, modified files and instructions how to modify those files.

 

Point 3) Lists the new files that you can just copy to your store.

Point 4) Tells that you can copy other files (the modified ones) to your store if you have not added any other contribiutions before STS, or use a file-compare program to merge the changes, or make the changes manually with the provided instructions.

 

I would recommend using a file-compare program (Beyond Compare, WinMerge, ...). It'll be your best friend!

 

 

- Chris

Link to comment
Share on other sites

Many apologies - I clicked on the new topic button instead of the Add Reply and inadvertently started a new thread. Forgive the repetition here - I'll try to get rid of the other topic if I can...

 

Hi

I'm a complete newbie and have looking through this forum but cannot find a resolution to this problem.

STS 4.5.2 is installed according to the instructions but when I edit the Use templates and the Use template for infoboxes on the Default tab of the module and click Update nothing at all happens.

Could someone tell me what I'm doing wrong - or point me in the right direction for help on this?

Many thanks for any help

 

Truly

Bamboozled

Link to comment
Share on other sites

Many apologies - I clicked on the new topic button instead of the Add Reply and inadvertently started a new thread. Forgive the repetition here - I'll try to get rid of the other topic if I can...

 

Hi

I'm a complete newbie and have looking through this forum but cannot find a resolution to this problem.

STS 4.5.2 is installed according to the instructions but when I edit the Use templates and the Use template for infoboxes on the Default tab of the module and click Update nothing at all happens.

Could someone tell me what I'm doing wrong - or point me in the right direction for help on this?

Many thanks for any help

 

Truly

Bamboozled

If this is a new installation of osC 060817, then you are experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc.

There is a simple fix:

 

 

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.

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

If this is a new installation of osC 060817, then you are experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc.

There is a simple fix:

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.

 

Thank you so much bkellum - that was beginning to drive me to an early grave!!!

Link to comment
Share on other sites

Hi Bill,

 

I'm setting up another osC site for a client and I decided to try the latest STS with it. So I downloaded and installed STS v4.5.2. One problem though - apparently the Header Tags Controller isn't included in the latest version. So now that I have the 4.5.2 setup - how do I add the Header Tags Controller (in the least complicated manner that is - LOL)?

:blush:

~Tracy
 

Link to comment
Share on other sites

Hi Bill,

 

I'm setting up another osC site for a client and I decided to try the latest STS with it. So I downloaded and installed STS v4.5.2. One problem though - apparently the Header Tags Controller isn't included in the latest version. So now that I have the 4.5.2 setup - how do I add the Header Tags Controller (in the least complicated manner that is - LOL)?

:blush:

Tracy, it really isn't that difficult, especially with a new shop. I have mentioned that I was going to make a new bundle of these two but just have not got to it yet. I actually have the code done, just have not found the time to update the manual. If you can wait, I will have this done soon but if you can't, try following the directions listed on the STSv4 Power Pack site.

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

Can someone tell me what file holds the '$content' placeholder code so I can edit its output.
$content is taken from the php script (index.php, checkout_process.php, etc.) you are running. For example, the $content for index.php is the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script (index.php) itself.

 

For example: Let's say you have placed your $content tag in the middle column. Now viewing your shop through a browser, you click on a category link. Now the $content tag responds by populating the middle column with the listing proucts for that particular category. Now if you want the listing to appear differently than the stock osC, you will have to edit the PHP code that controls the characteristics of the product listings or install a contribution that will do this for you. Either way, the $content tag is going to populate whatever the PHP code tells it to.

 

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

STS rocks! I've recently installed osCommerce for the first time and I'm trying to create a shop that doesn't really look anything like osCommerce out of the box - STS is helping to find my feet.

 

I'm stuck on one issue though:

 

How do I replace the $content for the index page? I want to use static images and some embedded Flash on the home page for specific promotions

 

I have created custom layouts for the product listing pages by placing the layout in the following folder:

sts_templates > myTemplate > content > product_info.php.html

 

However, if I add index.php.html to the same folder it doesn't seem to work:

sts_templates > myTemplate > content > index.php.html

 

Am I missing something? How can I change the contents of the index page?

 

Thanks

Link to comment
Share on other sites

Well I do appologize for being dumb, I installed the contribution for STS and flash banner. My question is, how do I add a flash banner?? I have it created and uploaded to the site, tried to point index.php to the flash banner, but still no luck and I am lost. Any help is greatly appreciated. I have added the code to imbed and not have the "do you want to use flash" words to not show up. But lost how to link STS to the flash.

 

Thanks

 

Tom

Link to comment
Share on other sites

Well I do appologize for being dumb, I installed the contribution for STS and flash banner. My question is, how do I add a flash banner?? I have it created and uploaded to the site, tried to point index.php to the flash banner, but still no luck and I am lost. Any help is greatly appreciated. I have added the code to imbed and not have the "do you want to use flash" words to not show up. But lost how to link STS to the flash.

 

Thanks

 

Tom

Tom, I answered this in your other post in the older STS Forum.

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

$content is taken from the php script (index.php, checkout_process.php, etc.) you are running. For example, the $content for index.php is the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script (index.php) itself.

 

For example: Let's say you have placed your $content tag in the middle column. Now viewing your shop through a browser, you click on a category link. Now the $content tag responds by populating the middle column with the listing proucts for that particular category. Now if you want the listing to appear differently than the stock osC, you will have to edit the PHP code that controls the characteristics of the product listings or install a contribution that will do this for you. Either way, the $content tag is going to populate whatever the PHP code tells it to.

 

Hope this helped,

 

Thanks Bill!

Link to comment
Share on other sites

Hi guys,

 

Please forgive me if this is an idiotic question or has been answered numerous times - or in numerous places - before (I really HAVE looked for the answer, but don't find it). I'm trying to design a template in my graphics program for use with STS. What size should I make it? Right now I've got it at 1000 pixels wide by 800 pixels high. No particular reason. I would like (I think) the design to be of the type where there's a background, then the main "screen" smaller on top of it. I'm going to have a drawn illustration in the header, so there can be no stretch or distortion (not that distortion is ever a good thing). Before I go on with the design, can you please tell me what dimensions I ought to have the thing be, as a whole, so I don't have to redo? And if there's anything else, tips etc, that I need to know to avoid stretching (or, conversely, left-right scroll bars) later?

 

Thank you!

 

Samantha

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