Latest News: (loading..)

blucollarguy

Members
  • Content count

    739
  • Joined

  • Last visited

4 Followers

About blucollarguy

Profile Information

  1. 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 :)
  2. 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 :)
  3. 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
  4. Try me again Sorry bout that.
  5. 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 :)
  6. There should be no need to pay anyone for it. Email me(use my profile) and we can probably get it worked out. Craig :)
  7. 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 :)
  8. 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 :)
  9. 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 :)
  10. 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:
  11. 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 :)
  12. I appreciate it, but you can keep the kisses! LOL :lol: Enjoy! :thumbsup: Craig :)
  13. 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 :)
  14. Have you been working within the "function" that actually sends the email or the "call" to it? What I mean is this: if you are working within the function itself, that is your problem, only one vendor at a time is called during the checkout process to send the email. Outside the function(around line 445 in an unmodified checkout_process.php file) you will find this: if ($order_sent_ckeck == 'no') { $status=''; $oID=$insert_id; $vendor_order_sent = false; $status=$order->info['order_status']; vendors_email($vendors_id, $oID, $status, $vendor_order_sent); This is the section where you should modify the order number($oID=$insert_id;). This is wthin a "while" loop, so you should be able to create a count and get your letter to add properly. Good luck, Craig :)
  15. You could also do something like this: $alphabet = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"); for ($l=0, $m=sizeof($vendor_products); $l<$m; $l++) { $vendor_country = tep_get_country_name($vendor_products[$l]['Vcountry']); $order_number = $oID . $alphabet[$l]; This would add the corresponding($l is the start of the loop throught $vendor_products) letter from the $alphabet array to the $oID. For the $alphabet array you could also use $alphabet = range('a', 'z'); If you wanted to for whatever reason. I have done a few of these as well, and have had to come up with some pretty complicated strings too, very much fun. Good luck, Craig :)