Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bkellum

Pioneers
  • Posts

    4,854
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by bkellum

  1. That depends. 1. If you are using the STS Product Info Content template, then yes, you need to make some modifications in order for your custom addon to work in the content template as well. More information provided in the STS User Manual. 2. If you are not using the content template feature in STS, then No, as long as the custom addon has been coded to osCommerce standards. In this case, STS will automatically bring in the custom functionallity of the new addon within the $content$ tag. 3. If you are not using the content template feature in STS and it still does not work and it has been properly coded to osC standards, then you may need to: 3a. Tell STS not to template the custome script or 3b. Make sure you are linking to the script or including the script correctly in your template. For example, if it has some custom JavaScript that is outside of the stock osCommerce scripts, then you will need to link to this JavaScript in your template. No different than you would any other standard HTML web page.
  2. Hello and thanks for the kind comments regarding STSv4.6. First, please post your question in the proper STS Support Thread. You can find the link in my signature below. The answers to all of your questions are quite simple and you can find them in the listed support thread. See you there...
  3. Double check your modifications to the admin/modules.php file. If it helps, compare your admin/modules.php with the one that came with the contribution as the modifications have already been made in that file to ease installation.
  4. Quite frankly, I never knew it was an issue, with STS at least.
  5. Nope, as STS doesn't care what products you have or don't have. When updating your admin/modules.php file, be sure to take a look at this post first.
  6. Then you should simply add the folder to that template set and put your content template inside it. It's not called Simple Template System for nothing
  7. He did give you a hint...post in the official STS Support Thread (if you read the manual, you would have seen the link to use to make your post; I also have the link in my signature below).
  8. Yes, that would be the one. If you go to View | Class ID Information, you will see the style associated with each element on your page.
  9. There is nothing in the original osCommerce (meaning you have not installed any contributions) that cannot be done in STS. You need to familiarize yourself with the stylesheet as well as get a good tool that will allow you to view the parts of the page that is style dependent (web toolbar in your browser).
  10. Not a problem Matt. Thanks for posting back.
  11. Karen, At least you returned to post that you got it sorted.
  12. I guess you can't read either....The STS User Manual would be a great place to look for information regarding the contribution you installed. It also stipulates the proper support thread to use when asking questions (I also posted that link in my signature tag below).
  13. Each of the two contributions mentioned above have their own support thread. I would ask there.
  14. Matt, Did you read the section in the STS User Manual regarding the button sets?
  15. The link pointed to this post.... How to exclude a page from being templated in STSv4.5.x: In the sts_default.php file, find the following code: if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "info_shopping_cart")) return ''; // We don't use template for these scripts Add your php file that you want STS to exclude and it will not template that file. Note: Add the script name as follows: if (strstr($scriptbasename, "popup") || strstr($scriptbasename, "your_script_here")|| strstr($scriptbasename, "info_shopping_cart")) return ''; // We don't use template for these scripts That should do the trick for you. Hope this helped,
  16. Why are you posting this in the STS Support Thread?? Please don't.
  17. Not sure which contribution you are referring to as I use a shipping estimator that does not use popups and it works just fine with STS. With that said, STS allows you to "exempt" a script from being templated by STS. See the following post on how to do this: Exclude a page from being used by STS
  18. Matt, Anytime you manually install a contribution that also provides the files that need to edited as well, it helps to compare the two to see where things may have gone wrong. With that said, the error lies in my instructions. I mistakenly cropped some of the code out in the "cut and paste" when making the manual instructions. Make sure you did not add an extra } at the end of that code segment. It should look like the following: eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');"); // STS V4.6 drop start } else { if($key == 'MODULE_STS_TEMPLATE_FOLDER'){ $dir_name = array(); if ($handle = opendir('../'.MODULE_STS_TEMPLATES_FOLDER.'/')) { while (false !== ($file = readdir($handle))) { $pos = strpos($file, "."); if($pos === false){ $dir_name[] = array("id" => $file, "text" => $file); $i++; } } closedir($handle); } $keys .= tep_draw_pull_down_menu('configuration[MODULE_STS_TEMPLATE_FOLDER]', $dir_name, $value['value']); }else{ $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']); } } // STS V4.6 drop end $keys .= '<br><br>'; } $keys = substr($keys, 0, strrpos($keys, '<br><br>'));
  19. It appears that site really takes advantage of a lot of Ajax scripts. Really nice.
  20. You need to do a couple of things... Update your includes/modules/sts_inc/product_info.php file by modifying the SQL querry to include the new image names like so: // 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); Also, add the following line of code to the same file above (includes/modules/sts_inc/product_info.php): include(DIR_WS_MODULES . 'sts_inc/sts_additional_images.php'); Then, create a new PHP page that creates each of the new tags needed for your template. You should name this file sts_additional_images.php and upload it to includes/modules/sts_inc/ : <?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'] =''; } ?> Then, in your content template (template_folder/content/product_info.php.html), add your new STS tags where you want them: For example: $products_image_sm_1$
  21. Hey, George. I have been sending STS users toward your contribution since you uploaded it. Prior to your add-on, I have always suggested the older CSS Osc add-on: Tableless OsCommerce STS has always used the "core" tables of osCommerce simply because that was what it had to work with. With that said, if the user was to remove the tables from the core files, then STS would respond appropriately. STS doesn't care if it "pulls" in tables or CSS as long as the template that you are creating is designed for it. All of the code (STS) is there for it to work with a 100% CSS osCommerce. Keep in mind that STS also has a built in "Infobox" template feature. This can be easily turned off in the admin or not installed at all. So, with that said, the user could skip the modifications to the boxes.php file if they do not intend to use this feature (the installation instructions point this out). Still, I feel the infobox template feature can still be used with a full CSS layout combined with your code modifications. I plan to dive deep into your code changes and see if there is anything needed to tweak in STS to be sure the two are completely seamless as I am making some assumptions here without doing more than a few "test drives" myself.
  22. Why are you asking this question in the STS support thread? If you can't figure it out on your own, then you should contact the author of the template. TIP: Did you try editing the actual template file to remove the flower image? Seems to me that if the template was created to be used in STS, that would be the first place I would be looking.
  23. The reason that just the tag is showing up is because you did not define the new tag in the includes/modules/sts_inc/sts_user_code.php file. See the following step by step: http://www.oscommerce.com/forums/index.php?showtopic=295660&st=4640&p=1353096entry1353096
×
×
  • Create New...