Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

I've been working on setting up an online store using osCommerce and the STS v4 add on. It took me forever to figure out what to do with STS, and when I finished the installation according to the instructions, I got this message...

 

Warning: main(includes/modules/sts_inc/sts_display_output.php) [function.main]: failed to open stream: No such file or directory in /home/content/j/o/s/joshuatsmith01/html/oscommerce/catalog/includes/application_bottom.php on line 15

 

Warning: main() [function.include]: Failed opening 'includes/modules/sts_inc/sts_display_output.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/o/s/joshuatsmith01/html/oscommerce/catalog/includes/application_bottom.php on line 15

 

In this thread, I've seen lots of similar problems, but none of them seem to help. If someone could hold my hand and walk me through the process, it would be greatly appreciated. Thanks.

Link to comment
Share on other sites

I need to display our "list price", our current price and savings (if there are any). I found a mod called "MSRP Listing" that claims to do exactly what I want.

 

I'm still learning STS, and have a much better grasp on it now. (Been learning PHP just to better understand this stuff and that helps) However, I get lost when trying to figure out how a mod will work with STS.

 

Is there a mod that is already "STS friendly" that will display MSRP and savings?

 

I appreciate the feedback.

 

Boom

Link to comment
Share on other sites

Maybe someday someone will write some generic instructions for adding add-on when you are using STS. I really need to find out where to look for what I asked but the better people become with this add-on the less they visit this forum.

Pat

Link to comment
Share on other sites

Maybe someday someone will write some generic instructions for adding add-on when you are using STS. I really need to find out where to look for what I asked but the better people become with this add-on the less they visit this forum.

Pat

 

I'm just wondering if I install this mod, if the $regularprice$ placeholder will pull the addon info. I didn't want to just install it, because the install instructions are (no joke) 22 pages long, and I would hate to go through all that work and have the mod fail. I may have to anyways. Whatever I learn, I'll post it back here.

 

Boom

Link to comment
Share on other sites

I would like to get rid of page headings on certain pages. Where is the $content pulled from? I don't want to have to delete it on every page or make new pages for every page of the site.

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Link to comment
Share on other sites

Maybe someday someone will write some generic instructions for adding add-on when you are using STS. I really need to find out where to look for what I asked but the better people become with this add-on the less they visit this forum.

Pat

 

 

I have mentioned this countless times in this forum but here it goes again....

 

Really, the only things to keep in mind regarding if other contributions will work with STS is the following:

 

  1. If the contribution makes edits to the product_info.php file AND you are using the content template feature for product_info templates, you will need to duplicate these edits in the sts_inc/product_info.php file.
     
    If you are not using the content template feature in STS, you do not need to do anything else as STS will automatically pickup the custom product_info edits with the $content tag in your template page.
  2. If the contribution makes a new infobox, you will need to create a new infobox tag in order for STS to "find" the new box and allow you to template it. Instructions for doing so are listed in the sts_user_code.php file or in the following link: http://www.oscommerce.com/forums/index.php?sho...p;#entry1141288
  3. If the contribution creates a page that should not be templated by STS, or you do not want it to be templated, simply "exclude" that page from being templated. See the following link for more info: http://www.oscommerce.com/forums/index.php?sho...p;#entry1222434

Well, as long as the contribution is created according to osC coding standards, then the above should about cover it.

 

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

I would like to get rid of page headings on certain pages. Where is the $content pulled from? I don't want to have to delete it on every page or make new pages for every page of the site.

 

STS works very well with the Header Tags Controller contribution or (better) the Header Tags SEO contribution. Either one of those add-ons will take care of the page headings as well as fill in a hugh hole in the base code of osCommerce regarding keywords/metatags.

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

I've been working on setting up an online store using osCommerce and the STS v4 add on. It took me forever to figure out what to do with STS, and when I finished the installation according to the instructions, I got this message...

 

Warning: main(includes/modules/sts_inc/sts_display_output.php) [function.main]: failed to open stream: No such file or directory in /home/content/j/o/s/joshuatsmith01/html/oscommerce/catalog/includes/application_bottom.php on line 15

 

Warning: main() [function.include]: Failed opening 'includes/modules/sts_inc/sts_display_output.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/o/s/joshuatsmith01/html/oscommerce/catalog/includes/application_bottom.php on line 15

 

In this thread, I've seen lots of similar problems, but none of them seem to help. If someone could hold my hand and walk me through the process, it would be greatly appreciated. Thanks.

 

You seemed to mess up on the installation. Use the files that came with the STS download to compare them with the files in your shop. This will help you spot where you made your mistake.

To help you with this, I suggest a good file comparison tool such as Beyond Compare or WinMerge.

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

I Have installed an add-on called Quotes, it does not seem to be working correct. Jack from the Quotes thread told me to ask in here about the info box. I need to ask though I did lots of additions to the product_info.php page. Should I have done these changes somewhere in the STS add-on instead?

Pat

 

 

See my post above regarding STS and other add-ons.

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

How do I style the login form? I know you're supposed to make a login.php.html and put $contents in it, but then how would I go about styling it? I don't see any variables for the login form.

 

Easy Solution:

<!-- add this to your sts template file. --->
<div id="login">
<form action="[url="http://*YOUR_STORE.COM*/login.php?action=process"]http://*YOUR_STORE.COM*/login.php?action=process[/url]" method="post" name="login" >
Login:<input type="text" name="email_address"/><br/>
Password:<input type="password" name="password"/><br/>
<a id="sign_in" onclick="login.submit()">Sign in</a>
<a id="sign_up" href="/create_account.php">Sign up</a>
<a id="forgot" href="/password_forgotten.php">Forgot?</a><br/>
$logoff
</form>
</div> <!-- end of login -->

 

Better Solution:

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

 

Tip: You can use the Infobox Template feature to style the login box.

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

Sorry for my bad eng :blush:

 

I`m using sts v4(great contri), I also have installed Product-tabs. This works perfect to me. The problems comes when I use the designed product_info.php.html page. Product tabs don`t showing in this page.

What can I do?

 

Hello Lisa,

 

See my post above regarding STS and add-ons that make changes to the stock product_info.php file.

 

If you do not want to change anything, then don't use the product_info content template and STS will pick up the product tabs without any issues at all. Otherwise, see the post above.

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

category list, I am redoing my shopping cart and trying to use the $categorybox placeholder, when I use this only one category shows up even though i have 6 listed. I just have this on my xammp test server that is on my pc, so It would be hard to upload it till it is ready, I dont want to disrupt my present shopping cart with one that is not functional yet. I have looked in the column_left.php file and find nothing that can be modified to give me a drop down menu for the category list. My manufaturer list shows up fine as a drop down list. I am not using the categorycssmenu in this design. Can anyone tell me where to look to fix this problem.

Pat

 

 

STS comes out of the box with a custom category drop down menu tag.

 

Use: $catmenu

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

Thank-you Bill for answering my questions. I have gone through I dont know how many pages reading and looking. I'm not saying thats a bad thing it does teach me some thing. Now That i know how to set this up, I hope it works for me.

Pat

Link to comment
Share on other sites

Well i guess I wont be able to make the changes in the product_info.php that file is completely different than the regular one in catalog.

I am suppose to change this line.

18) In product_info.php,

 

FIND (around line 17):

 

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

If I dont find what I need to find can I just add the new lines with out breaking STS?

Pat

Link to comment
Share on other sites

STS works very well with the Header Tags Controller contribution or (better) the Header Tags SEO contribution. Either one of those add-ons will take care of the page headings as well as fill in a hugh hole in the base code of osCommerce regarding keywords/metatags.

 

I am not talking about meta tags. I'm talking about the "What's New Here?" with the hideous clipart image on the right that's unfortunately on top of every page. I want to get rid of that and just have my text at the top on certain pages. How can I delete that for every page or certain pages? Where does the $content pull from - or is that not the right place to edit this?

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Link to comment
Share on other sites

I have mentioned this countless times in this forum but here it goes again....

 

Really, the only things to keep in mind regarding if other contributions will work with STS is the following:

 

[*]If the contribution makes edits to the product_info.php file AND you are using the content template feature for product_info templates, you will need to duplicate these edits in the sts_inc/product_info.php file.

 

The file is different that the product_info.php the lines I need to change do not exist in the STS copy. Is it safe to just add the new lines of coding wiith out breaking STS

Link to comment
Share on other sites

Kira Go Into languages/english.php it it is there for the whats new here. You can also find the answer to the cartoon question in the install and configuration thread. The top one getting pinned.

I hope this helps

Pat

Link to comment
Share on other sites

I am not talking about meta tags. I'm talking about the "What's New Here?" with the hideous clipart image on the right that's unfortunately on top of every page. I want to get rid of that and just have my text at the top on certain pages. How can I delete that for every page or certain pages? Where does the $content pull from - or is that not the right place to edit this?

 

 

Please listen to what I am saying. HTC is MORE than metatags. It will assist you in dynamically changing your page headings to match the existing category, page title, or even something custom depending upon what you want.

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

Kira Go Into languages/english.php it it is there for the whats new here. You can also find the answer to the cartoon question in the install and configuration thread. The top one getting pinned.

I hope this helps

Pat

 

 

Yes, changing the language files will work but not as the original poster wants it to. If you want dynamic page headings, you will need to install HTC or HT SEO.

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

Well i guess I wont be able to make the changes in the product_info.php that file is completely different than the regular one in catalog.

I am suppose to change this line.

18) In product_info.php,

 

FIND (around line 17):

 

$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_check = tep_db_fetch_array($product_check_query);

If I dont find what I need to find can I just add the new lines with out breaking STS?

Pat

 

Making these changes require some PHP and MySQL knowledge. If you do not have these skills, then you would be best served not using the product info content feature with other add-ons. Or, you could contact the author and ask them to create it for you.

 

The code you posted is a sql querry. Of course, the STS product_info.php is not going to have this custom string of code. You will need to add the custom querry to the STS product_info.php file in order for STS to know what to go and grab from the database.

 

For example:

 

In the includes/modules/sts_product_info.php file, we have a sql query:

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

This particular query goes out and grabs the product attribute info from the database. Then, STS uses this data to create a new set of STS tags such as:

 $template_pinfo['optionheader'] = TEXT_PRODUCT_OPTIONS;

 

So, basically there are two things you will want to do with the sts_product_info.php file:

  1. Get the data that you need for your custom product info STS tags (custom code, sql query, etc.)
  2. Create your STS tags using the data you just got from the custom query/code you just created.

Here is another example (for the UltraPics contribution):

 

I need to add in the extra query info to pull in the extra images so that I can make STS tags for each image:

 

// Get product information from products_id parameter

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6 from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . $products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

Now I create my STS tags:

 

if (tep_not_null($product_info['products_image'])) {



 $template_pinfo['imagesmall'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');

 $template_pinfo['imagelarge'] = tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), '','','');

 $template_pinfo['product_popup']= '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'."\n";

} else {

 $template_pinfo['imagesmall'] ='';

 $template_pinfo['imagelarge'] ='';

 $template_pinfo['product_popup']=''; 

}



include(DIR_WS_MODULES . 'sts_inc/sts_additional_images.php');

You will notice in the above example, I inserted a "include" statement for the new module "sts_additional_images.php" file. This file will include each of my custom image tags.

The includes/modules/sts_additional_images.php files is below:

 

 

<?php

if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {

$template_pinfo['products_image_sm_1'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



}elseif(($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] != '')) {

$template_pinfo['products_image_sm_1'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_1']) . '" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';



}elseif(($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {

$template_pinfo['products_image_sm_1'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



} else {

  $template_pinfo['products_image_sm_1'] ='';

 } 





if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) {

 $template_pinfo['products_image_sm_2'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



} elseif(($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] != '')) {

 $template_pinfo['products_image_sm_2'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_2']) . '" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';

} elseif

  (($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) {

   $template_pinfo['products_image_sm_2'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"');

}else{

 $template_pinfo['products_image_sm_2'] ='';

}





if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) {

 $template_pinfo['products_image_sm_3'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



} elseif

   (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] != '')) {

	$template_pinfo['products_image_sm_3'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_3']) . '" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';

} elseif

  (($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) {

   $template_pinfo['products_image_sm_3'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"');

}else{

 $template_pinfo['products_image_sm_3'] =''; 

}	 





if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) {

 $template_pinfo['products_image_sm_4'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); 

} elseif

   (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] != '')) {

	$template_pinfo['products_image_sm_4'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_4']) . '" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; 

} elseif

  (($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) {

   $template_pinfo['products_image_sm_4'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_4'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); 

}else{

 $template_pinfo['products_image_sm_4'] ='';

} 





if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) {

 $template_pinfo['products_image_sm_5']= tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"');

} elseif

   (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] != '')) {

	$template_pinfo['products_image_sm_5'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_5']) . '" target="_blank" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';

} elseif

  (($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) {

   $template_pinfo['products_image_sm_5'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"');

}else{

 $template_pinfo['products_image_sm_5'] ='';

}





if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) {

 $template_pinfo['products_image_sm_6'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



} elseif

   (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] != '')) {

	$template_pinfo['products_image_sm_6'] ='<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_xl_6']) . '" target="_blank" rel="lightbox[product_images]">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>';



} elseif

  (($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) {

   $template_pinfo['products_image_sm_6'] =tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"');



}else{

 $template_pinfo['products_image_sm_6'] ='';

}

?>

The are many benefits to creating a new module such as above but the main benefit is that it allows you to SHARE YOUR NEW MODULE with other STS Users. All they have to do is plug this module into their includes/modules/sts_inc folder.

 

OK. I know this post was long but I hope it helped give some insight into the power of STS and what is required to make the product_info content template to function the way you want it to.

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 Bill That will give me something to play with on my test xampp server. It will be a good learning experience for me if I can get it working. Pat

Link to comment
Share on other sites

Kira Go Into languages/english.php it it is there for the whats new here. You can also find the answer to the cartoon question in the install and configuration thread. The top one getting pinned.

I hope this helps

Pat

 

lol @ the "cartoon" question : )

 

For another store I just replaced all the images with 1x1 transparent files (aka spacer.gif - renamed) and that seemed to work. But on this store, it's not. Anyhoo...

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Link to comment
Share on other sites

Please listen to what I am saying. HTC is MORE than metatags. It will assist you in dynamically changing your page headings to match the existing category, page title, or even something custom depending upon what you want.

 

Sorry Bill :( -- It was an extremely hectic day yesterday and I forgot that when you run Header Tags it does change the pages' headings -

 

I will play with it today but I think for now, the index page will have NO $content - I will just put lorem ipsum paragraph and the design I want. Then on the other pages it's not so cumbersome. It doesn't look so bad to say Contact Us on the contact form. I just hate that stupid What's New Here? I've not liked it on any store I've built.

 

ok time to get to it! see ya~

☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆

Link to comment
Share on other sites

Hi Bill,

 

One page checkout by itwebexperts works (version1.03, contains lots of fixes over the original version) with sts except for the change address buttons which are Java controlled. It would appear most payment and shipping modules work.

 

If I disable the change address buttons java coding the non java works and uses the default change address.

 

I appreciate that you can't do everything as previously mentioned but it would be a great module to have compatible with STS.

 

Please can you consider looking at this, I have tried and failed missarbly to try and get this to work for days now.

 

If you can give me some tips i will go and have another look and hopfully be succesfull, but its a great mod and the only thing not working in sts at the moment is teh change address buttons, the rest of the buttons work fine.

 

Thanks

Johnny

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

Important Posts for the STS newbie:

 

Post #3755: http://www.oscommerce.com/forums/index.php?sho...p;#entry1226986

 

Post #4326: http://www.oscommerce.com/forums/index.php?sho...p;#entry1303555

 

Post #4974: http://www.oscommerce.com/forums/index.php?sho...p;#entry1361366

 

Post #3772: http://www.oscommerce.com/forums/index.php?sho...p;#entry1227769

 

Post #3757: http://www.oscommerce.com/forums/index.php?sho...p;#entry1227006

 

Please review the above for insight on how the Simple Template System allows you to make templates for pages, categories, home page, products and infoboxes.

 

Hope this was helpful,

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.
Note: Your post will require moderator approval before it will be visible.

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