Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Z Wayne

Recent Profile Visitors

5,984 profile views
  1. frankl - "how hard is it?" Seriously? The first problem I mentioned is only couple lines of code but first one has to encounter the failure, then research to figure out why, and only then make the code mods. And the second problem (php 7 incompatibility) certainly NOT a "single line of code". So your snarky unhelpful reply "how hard is it?" should really be "how hard is it to REMOVE the WRONG version touted as the most current and put up the CORRECT one and thereby avoid the problem in the first place?"
  2. Now I am totally dumbfounded. I'm sorry, but I went to the official site https://www.oscommerce.com/Products and selected Download the latest version to install on your own web server. I installed that version, updated my 2.2 database, and am now struggling with trying to get things looking like the old site (among other things, I used STS). And now I'm told that I'm supposed to go to Github to get the most current version because the official site references an out of date version? Seriously? (Please don't take this as any personal anger as I do appreciate the help.)
  3. Arg. This installation bug was reported in Oct 2015 and the base package was never fixed? Seriously? https://github.com/osCommerce/oscommerce2/issues/368 https://github.com/osCommerce/oscommerce2/commit/d7f47032afbda82c6342c6fc83777de30a36b5b8 Then I got bit with php 7.0 incompatibility errors ( Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP ) even though the installation check said everything was fine. So I reinstalled under php 5.6 Unbelievably unprofessional.
  4. Thanks for the response. Phpinfo says 5.5.3 and the files on test and production are exactly the same (just to make sure that I wasn't hallucinating, I downloaded the production files and ran kdiff to make sure). Which is why this has me puzzled. The big kicker is that this site was slated for eventual replacement (a web developer with a lot of woocommerce experience was going to be using that product.) But it's going to take a while. I'll play with 2.3.4 to get an idea if a quick implementation is possible. However, I'm stretched pretty thin with IT responsibilities and am doubtful if I can do it in time.
  5. Highly customized osCommerce 2.2-MS2 shop that has been online & stable for many years. I had no clue about the incompatibility of OSC 2.2 and php 5.3 until our hosting company updated php to 5.5 without notifying us in advance. It broke the website (deprecated functions and all that) but they downgraded us back to php 5.2 and all was well again. But recently got a notice that they are completely removing 5.2 in a week. V5.3 will still be available but OSC 2.2 doesn't work with that version either. I've since read all of threads about incompatibility with OSC 2.2 and php 5.5 and the difficulties in updating OSC and the most frequent recommendation to start from scratch with the newest OSC release. That simply is not possible in a week's time. Here is the problem which is stumping me: I use a local copy of OSC for testing. Except for a few changes in configure.php due to local file references it uses the exact same files as production. BUT the localhost install uses php 5.5.3 with no problems! Any ideas how this is possible? Thanks.
  6. NEW! Complete Order Editing Tool!

    Problem solved! (see previous post) tep_get_tax_description was defined in both admin\includes\functions\general.php and admin\order_editor\functions.php I removed it from general.php and it is now working. Its inclusion in general.php was from the 2.6.1 version that I was upgrading from. The upgrade instructions neglected to mention that the function should be removed from there (only that some code should be added) and should therefore be amended.
  7. NEW! Complete Order Editing Tool!

    OK, I just tried upgrading from an old version of OE (2.61) and I am getting bit with the blank screen problem. I double checked all of the install instructions. Saw a lot of postings here, and here are some of the things that were suggested and which I've tried - all to no avail. - changed all includes in edit_orders.php to require - changed error_reporting in application_top.php to E_ALL (but no messages resulted) - turned ajax off - turned free shipping off I started putting in some var_dump statements (god does php debugging suck!) and things seem to stop processing at tep_get_tax_description in order_editor\functions.php. That's all I've been able to figure out so far. This is on a test system with MySQL 4.0.23 and PHP 4.3.10. (I have not yet migrated to the same versions as my production site - MySQL 5.0.45 and PHP 5.2.5) Any other ideas for tracking this problem down?
  8. I have a production site with the ccgv integrated. It works fine, but I would also like to be able to create a coupon for a specific item that can used for any multiple quantities of that item ordered. E.g., $10 coupon for $100 item. Customer buys 2, applies coupon, and is charged $180 total ($90 each). Any ideas?
  9. I've done some searching for this problem but came up with only one unanswered question that was similar to this (the search facility here leaves a lot to be desired - I often have to resort to Google with site:forums.oscommerce.com!) Anyway, if I ship only via UPS, but have multiple methods (ground, 2nd day air, etc), the message This is currently the only shipping method available to use on this order shows up. I.e., TEXT_ENTER_SHIPPING_INFORMATION instead of TEXT_CHOOSE_SHIPPING_METHOD. This is determined in checkout_shipping.php here: if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td> <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } elseif ($free_shipping == false) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td> <td><?php var_dump(sizeof($quotes[0]["methods"])); ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> The problem is that sizeof($quotes)=1 with a single carrier and so it skips the first section with TEXT_CHOOSE_SHIPPING_METHOD. It seems to me that if sizeof($quotes)=1 then the code should be checking sizeof($quotes[0]["methods"]) and if >1, then there are multiple shipping methods. Has this been pointed out before?
  10. Product Listing in Columns v2.0

    On further investigation, it looks like the problem is in how the code builds "params" and sends off the $list_box_contents to boxes.php. This does not look easy to fix. I happen to use the "loaded" eosc version of oscommerce and it has incorporated your code but it's possible that there are some conflicts with the other contributions. I'll check out your code but in the meantime will just settle for not highlighting every other row in the product listing. UPDATE: HALLELUJAH! I used your version of product_listing_col and it WORKS! I have to do some modifications (e.g., I added a short description field and display that in the product listing when using columns) but it's looking good! Thanks.
  11. Product Listing in Columns v2.0

    OK, I went to a different version and am convinced that there are major issues with product_listing_col.php 1) Out of the box, the code simply does not apply the alternating odd/even classes for 2 columns. The first row will have no class, all other rows will have the odd class. 2) For three or more columns, it does apply the alternating odd/even classes BUT does not apply a class to the first row. 3) If one adds a class for the first row (previous post), it simply skips that entire row. So - has anyone gotten this working for 2 columns? - has anyone gotten the first row to display properly?
  12. Product Listing in Columns v2.0

    Along the same lines, why - if I replace the whole section: if (($rows/2) == floor($rows/2) && ($row > $counter)) { $list_box_contents[$row] = array('params' => 'class="productListing-odd"'); $class_for_buy_now = 'class="productListing-odd" width="'.$tdsize.'%"'; $counter = $row; } else { if ($row > $counter) { $list_box_contents[$row] = array('params' => 'class="productListing-even"'); $class_for_buy_now = 'class="productListing-even" width="'.$tdsize.'%"'; $counter = $row; } } with just this: $list_box_contents[$row] = array('params' => 'class="productListing-odd"'); $class_for_buy_now = 'class="productListing-odd" width="'.$tdsize.'%"'; does it not display any product info except for the last product? It just shows a bunch of thin lines representing empty table rows.
  13. Product Listing in Columns v2.0

    For the life of me, I cannot get alternating odd/even rows for multiple columns! I have spent an incredible amount of time playing with the code in product_listing_col to no avail. // this was added to the code because the first <tr> was not getting set if ($rows == "1") { $list_box_contents[$row] = array('params' => 'class="productListing-odd"'); $class_for_buy_now = 'class="productListing-odd" width="'.$tdsize.'%"'; $counter = $row; } // [b]this section is unmodified from the original[/b] if (($rows/2) == floor($rows/2) && ($row > $counter)) { [b]// this section never gets invoked![/b] $list_box_contents[$row] = array('params' => 'class="productListing-odd"'); $class_for_buy_now = 'class="productListing-odd" width="'.$tdsize.'%"'; $counter = $row; } else { if ($row > $counter) { [b]// only this section is getting invoked![/b] $list_box_contents[$row] = array('params' => 'class="productListing-even"'); $class_for_buy_now = 'class="productListing-even" width="'.$tdsize.'%"'; $counter = $row; } } The section that attempts to set the class to productListing-odd never gets executed. A column value of 1 works, but that runs product_listing.php; product_listing_col.php doesn't work for any column values. I have tried all kinds of stuff and am pulling out what little hair is left trying to get this to work!
  14. Dynamic SiteMap

    I installed the 2.0 contrib today and the problem persists. The following is a fix. I'm not sure if it is the best fix, and so hesitated to add it as a contrib. In catalog/includes/modules, modify dynamic_sitemap.php: 1) Change: $p_stop = strpos($fp[$idx], "'", $p_start + 2); To: $p_stop = strpos($fp[$idx], ")", $p_start + 2); 2) Change: $files['name'][] = str_replace('%s', '', ucfirst(substr($fp[$idx], $p_start + 1, $p_stop - $p_start - 1))); To: $files['name'][] = str_replace('%s', '', ucfirst(substr($fp[$idx], $p_start + 1, $p_stop - $p_start - 2)));
  15. Say one of my products is widgets which is category 1, and there are subcategories "new" (3) and "used" (4). I want one template for all widgets, index.php_1.html. If I select new widgets from the Categories menu, the URL shows ...index.php?cPath=1_3 and STS will use the template. But if I include $Catmenu in my template, there are big problems as it doesn't maintain the chain of categories. That is, if I select new widgets from the pulldown catmenu, the URL will be ...index.php?cPath=3 and STS won't see a template file for the "new widgets" subcategory (unless I maintain one for every single subcategory, which sort of defeats the purpose.) Is there any easy workaround for this problem?