Jump to content

wolfear

Members
  • Content count

    19
  • Joined

  • Last visited

Profile Information

  1. Someone else may have already posted this little tweak, but I always seem to be asking questions, so here is my chance to give a little. I have Sitemap MS2-2.2 and Enable Disable Categories installed and needed to hide the disabled categories in the site map (I mean, why have them hidden in the first place, if they are still acessable)? So...in includes/classes/category_tree.php find this around line 30: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); And simply replace with: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = '1'and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); I'm no programmer so don't ask if something blows up, but I know this works on my site with no problems.
  2. wolfear

    [contribution] Simple Template System (sts)

    I REALLY love STS. It was one of the easiest contribs for me to install and use and has been the answer to my prayers. I don't think I could get along without it....BUT, I want to do one very simple thing, which is remove the "New Products for XXX" in the content area, and possibly add something else. So far I have: Gone back to the install dos and re-read. Searched the forums. Searched all my files to find anything related to "columnleft2columnright" as this seems to define what the "$content" displays. Searched the forums. Set display to "debug" in order to find see what's going one and found "columnleft2columnright", which indicates an sts_block. Searched the forums. Found entries relating to this block and template in "sts_display_output.php". Searched the forums. Did another search to find a define for this block or any other refence to it and came up zilch. Searched the forums. I have seen posts saying to looking in various "index.php" or "product_info.php", but I have yet to make any sense of this as nothing seems to relate. Apparently my feeble mind can't seem to fully grasp where "columnleft2columnright" or "$content" is pulling from or where to modify this at. After spending the last several days reading, searching and seeing the number of posts relating to this very subject, instead of merely saying we "can't normally control what appears", one would think there would be a central post, update, or at least a note included in the docs by now, relating to this in more detail, and if there is, I offer my sincere apologies, I apparently overlooked it somehow and perhaps someone would be kind enough to point me to it. Thanks in advance to anyone who can guide me in the right direction.
  3. wolfear

    PayPal IPN and PWA

    Ooops..my bad. That link should point here It's been a long day
  4. wolfear

    PayPal IPN and PWA

    I forgot to include in the previous post: I'm currently running: OSCommerce 2.2 MS 2 PWA 0.82 Paypal_Shopping_Cart_IPN v 3.1.5 and a few other misc. contribs. After a few more hours of searching I finally found one possible solution. I haven't tested it yet as I have a few more things to get done today. if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); // PWA Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { //end of pwa addition //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); } //end PayPal_Shopping_Cart_IPN //} I found it here Any other suggestions for more recent solutions are still appreciated.
  5. wolfear

    PayPal IPN and PWA

    I have running searches for several hours and cannot find a post so far (I will continue my search) related to this which has a reply that is in any way useful, if answered at all. I have PayPal IPN installed and I'm trying to install PWA and have encountered a snag when merging the chechout_success.php files. When trying to merge the files, I have this code in the PWA version of checkout_success.php: // tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); // Added a check for a Guest checkout and cleared the session - 030411 if (tep_session_is_registered('noaccount')) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL')); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL')); } And in MY checkout_success.php, with Paypal IPN installed, this section reads: //begin PayPal_Shopping_Cart_IPN tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } else if ((isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'success')) { PayPal_osC::reset_checkout_cart_session(); How do I safely combine these so that everything will still be handled properly? I would like to make sure I do this is correctly as I'm pretty much just at a "cut and paste" level. Any help with this or just a link to the correct area would make my day. Thanks in advance
  6. wolfear

    Enable/Disable categories contribution

    I found my problem, or at least a working solution to it. In order to hide the disabled categories in the category box, I changed the line following if ($category_depth == 'nested') { of my index.php file from: $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); to this: $category_query = tep_db_query("select cd.categories_name, cd.categories_heading_title, c.category_head_title_tag, c.category_head_desc_tag, cd.categories_description, c.category_head_keywords_tag, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = '1' and c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); I'm not sure how I had it working before as this line is not changed in the index.php included with my downloaded contrib .zip. Oh well...one of the great mysteries of the universe. Hope this helps someone else. Great contibution. I absolutely love it.
  7. wolfear

    Enable/Disable categories contribution

    Anyone have a clue where I found the code changes to prevent disabled categories from showing the the categories navigation? I had it all working and then due to case of HUA got things messed up and now I can't remember where I originally found the code changes.
  8. wolfear

    [contribution] Simple Template System (sts)

    Problem solved..sort of. Still not sure exactly what the conflict was, but out of desparation, I started replacing files one at a time with freshly downloaded (thats twice in 3 days of getting OSC & STS, so even the old files were not more than 48 hours old) and unzipped copies and when I replaced the includes/lang/english/product_info.php file, everything started working again. Which is really odd as I didn't even realize there was a product_info file in that directory and have never touched that file....it worked before STS..then it quit, then it started again when that file was replaced with a fresh copy. Hopefully this may help someone else if they ever have their site just quit displaying products for no apparent reason. I still think STS is great and look forward to exploring it's potential. Thanks for the help. PS-wichard, To answer your question..no, we have not yet started using the custom product templates yet. Everything is currently running on default except the sts_template.html. Further templating will be implemented on a "when I have time" basis after we are operational again.
  9. wolfear

    [contribution] Simple Template System (sts)

    RI, No, I have not added the $whatsnewbox. I was using that as an example. I felt having a "What's New" in the left column and a "New this Month" in the content area was redundant. On the off chance that was the problem, I added it back in just to check but I still get a blank page when selecting a product to view. However, your question gave me some ideas. Any other ideas or inputs are welcomed. This is still drving me nuts as I know it's just something simple I have over looked.
  10. wolfear

    [contribution] Simple Template System (sts)

    Love STS so far but I have waded through all 101 pages and cannot seem to find the answer to this problem: Everything else seems to be working just fine UNTIL an item is selected for viewing (i.e.- I click on a product in the "What's new") and get a totally blank page. Same thing when navigating through categories...products show just fine until I try to read the info page..then nothing. No source, totally blank. I customized the sts_template file and have left everything else as the default, as at this time we're only wanting to use the default product_info and are mainly interested in getting the overall look ironed out (we'll add custom templates for other areas later once this problem is solved). URL in the nav bar of my browser shows the "oursite/product_info.php?products_id="id#here", but the page is totally blank. Our site is: http://www.phoenixtraders.biz should anyone feel the need to look at it for some reason. The site is still a little rough around the edges as I have been trying to get this solved. We just did a complete rebuild of everything, addded some test products so nothing is technically live yet, but we really need to get back up soon. I re-downloaded the lastest version(i think it's 2_01) and re-uploaded everything,with the same result. I am now at my wits end and have probably just been overlooking something simple. Any help is most appreciated.
×