Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited


Profile Information

Recent Profile Visitors

16,771 profile views
  1. I'm still around, just been extremely busy. Got a question? Send me a PM, I'll get back to ya.

  2. Has Craig evaporated? :-)

  3. Multi_Vendor_Shipping new thread

    This would require significant modifications to MVS or even standard osC shipping code to work. It has been requested, but I don't believe anyone has done it yet. It could be fairly tricky work, so good luck with it if you decide to tackle it. Let us know how it goes, Craig :)
  4. Multi_Vendor_Shipping new thread

    Your welcome, the products report page needs to be modified to use the "split_page_results" class in order to break down the list appropriately, I just haven't had time to get it done yet, still working on getting a fully updated package of MVS up for download. Good luck, Craig :)
  5. Multi_Vendor_Shipping new thread

    The code that sends the email is in checkout_process.php, and it should work as is. Does on the close to hundred sites I have installed it on. In the UPSXML file, you will find a line that can be uncommented to send a debug email. Good luck, Craig
  6. Multi_Vendor_Shipping new thread

    Try me again Sorry bout that.
  7. Multi_Vendor_Shipping new thread

    Try this for the customers: http://www.oscommerce.com/community/contri...h,customer+sort and this one for the order: http://www.oscommerce.com/community/contri...arch,order+sort Be careful with both, pay close attention to the code changes as they may not match any of the newer versions of osC. Good luck, Craig :)
  8. Multi_Vendor_Shipping new thread

    There should be no need to pay anyone for it. Email me(use my profile) and we can probably get it worked out. Craig :)
  9. Multi_Vendor_Shipping new thread

    Sounds like you may have inadvertantly deleted the ".htaccess" file from your Admin directory. You can reset it through you cPanel, look for "Password Protect Directories" or something of the sort and follow the instructions for selecting which folder you want to protect, and set up a new username and password. If you had another form of Admin Access installed and you simply uploaded the MVS version of the "admin/includes/application_top.php", you may simply need to check it for the proper edits. Good luck, Craig :)
  10. Multi_Vendor_Shipping new thread

    In the Vendor list, highlight the Vendor you want to add shipping to, and select the "Manage" button from the right. Then you will see a listing of all the shipping modules available, they will be worked with the same way you work with "Modules" in osCommerce. Good luck, Craig :)
  11. Multi_Vendor_Shipping new thread

    Well Steve, this would be where things get complicated. With MVS turned off, no vendor information is populated in the database, so in order for you to get vendor emails, you will need to do some real work now. The function we have been referencing over the last page or so is the function that sends the emails, in order for the emails to be sent, there needs to be vendors in the order(which won't happen with MVS turned off), so you will need to make changes to several parts of the code to pass enough information in the order to get the vendor information to be added to the database and then to send the email. I think this is what several people have asked about. I have looked at this a few times recently as you know Steve, and I think I know how to do it, just don't know if I have the time right now. Look through the checkout_process.php file for all the Vendor related data, then track it back through the checkout to collect it. This really should only product and Vendor specific information related to each product. You will probably need to "artificially populate" an array or 2 to make this work. I expect you can do it if you have done as much as you have posted about here, so go for it. Just remember to backup every file before you start editing, trial and error is a major educational tool. Post here with specific questions and maybe between Jim and myself and everyone else, we can get it worked out. Good luck :thumbsup: , Craig :)
  12. Multi_Vendor_Shipping new thread

    AHHHHHHH!!! Well now we know the problem don't we! LOL Oh boy, we really do need to get this updated properly, I am trying to make time but it is very difficult. By the time I get to it it will be time for a re-write for MS3! oy! Craig :blink:
  13. Multi_Vendor_Shipping new thread

    Ok, this is a pretty simple debug technique, with "global constants"(a constant that is set in "application_top.php" and is available to EVERY page throughout the site) you can simply add that line code to the includes/header.php file, like this: if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } echo '<br>This is the MVS setting: ' . SELECT_VENDOR_SHIPPING; ?> Note I added it before the closing php tag, go to any page on your site and it will "print out" on your screen and you will see what the site thinks that constant is. I don't think you need to do this though, your second point Is what is allowing that block of code to execute even when MVS is turned off, which it shouldn't. So change that block to this: if (SELECT_VENDOR_SHIPPING == 'true') { //MVS - added insert for new orders_shipping table $shipping_array = $shipping['vendor']; foreach ($shipping_array as $vendors_id => $shipping_data) { $vendors_query = tep_db_query("select vendors_name from " . TABLE_VENDORS . " where vendors_id = '" . (int)$vendors_id . "'" ); $vendors_name = 'Unknown'; if ($vendors = tep_db_fetch_array($vendors_query)) { $vendors_name = $vendors['vendors_name']; } $shipping_method_array = explode ('_', $shipping_data['id']); if ($shipping_method_array[0] == 'fedex1') { $shipping_method = 'Federal Express'; } elseif ($shipping_method_array[0] == 'upsxml') { $shipping_method = 'UPS'; } elseif ($shipping_method_array[0] == 'usps') { $shipping_method = 'USPS'; } else { $shipping_method = $shipping_method_array[0]; } $sql_data_array = array('orders_id' => $insert_id, 'vendors_id' => $vendors_id, 'shipping_module' => $shipping_method, 'shipping_method' => $shipping_data['title'], 'shipping_cost' => $shipping_data['cost'], 'shipping_tax' => $shipping_data['ship_tax'], 'vendors_name' => $vendors_name, 'vendor_order_sent' => 'no' ); tep_db_perform(TABLE_ORDERS_SHIPPING, $sql_data_array); } }// end if MVS enabled //MVS End And it won't execute if MVS is turned off. I am fairly confident that "if" statement has been there since the first release, but I could be wrong about that. Good luck Steve, Craig :)
  14. Multi_Vendor_Shipping new thread

    I appreciate it, but you can keep the kisses! LOL :lol: Enjoy! :thumbsup: Craig :)
  15. Multi_Vendor_Shipping new thread

    This really shouldn't be able to happen if MVS is turned off. Look for this block of code //MVS - added insert for new orders_shipping table if (SELECT_VENDOR_SHIPPING == 'true') { $shipping_array = $shipping['vendor']; foreach ($shipping_array as $vendors_id => $shipping_data) { That is most likely the "foreach" warning you are getting, but if "SELECT_VENDOR_SHIPPING" is off(or false in the database when MVS is turned off) it won't execute, so there should be no warning. Double check that you hadn't accidently added two lines to the database for this "key", I have seen that happen a number of times. You can check by "printing" out that constant on any other page, say the header.php file for instance: echo '<br>This is the MVS setting: ' . SELECT_VENDOR_SHIPPING; And find out what the site thinks it is. Good luck, Craig :)