Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by zwayne

  1. zwayne

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

    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?
  3. 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?
  4. 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?
  5. zwayne

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

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

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

    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!
  9. zwayne

    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)));
  10. 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?
  11. I'm confused. Does OSC 2.2 have built-in support for free shipping if over a minimum amount? I have the freeamount contrib installed which seems to be working ok. checkout_shipping.php is bypassing a section for free shipping when the free shipping minimum has been satisfied. The section checkout_shipping.php has // load all enabled shipping modules require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { $pass = false; ... } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { $free_shipping = false; The problem statement is if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) which is always evaluating false. So $free_shipping can never get set to true, even though ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER). So the html section for $free_shipping is not displayed. As I said, I have freeamount installed which does display it's free shipping info, but how do the above constants get defined with a default osc install?
  12. I couldn't find an email address for a Member Approval 1.4 contact (only a web hosting URL for one of the contributors.) So I'm posting some minor items that need to fixed in this contrib and hopefully they'll be taken care of by the author(s): 1) Instruction typo: #### [ OPEN ] admin/filesnames.php SHOULD BE admin/includes/filenames.php 2) Instruction omission: The file button_activate.gif goes in admin/includes/languages/english/images/buttons/ 3) Problem: there is at least one define that is changed in admin/includes/languages/english.php when it should instead be a new define. define('HEADING_TITLE', 'Member approval'); creates page title problems with other pages in the administration. Instead, do something like define('MEMBER_HEADING_TITLE', 'Member approval'); and change the members.php to reflect this. Other than that the contrib works great!