Jump to content

blucollarguy

Members
  • Content count

    739
  • Joined

  • Last visited

Everything posted by blucollarguy

  1. blucollarguy

    Multi_Vendor_Shipping new thread

    I am planning on integrating MultiVendorShip in Vendors_Auto_Email and am open for input. Has any one gotten the original Multi_Vendor_Shipping mod to work? I have seen a few requests for help, but no replies. I have just installed it and am going through the errors to see if I can get it working. All input and suggestions are welcome and needed, this will be very valuable to me as well as many other folks I think. What do you think? :mellow: Code in development is located here
  2. :D I was just wondering if anyone has the time to help me with finishing off a re-do of the "Manufacterers e-mail" contribution, I am a bit of a php newbie. This mod will enable us to enter all "Vendor" info and have it all available in the Admin. Top it off with the ability to link each product to a "vendor". I also want to have an extra price entry for each product, customer price and our "Vendor" price. I have borrowed some code from the old contrib "Manufacterer email", "Vendors" sql entries as well as additional entries I have already put in, and the standard "manufacterer" feature already installed in osCommerce. I already have most of this working, just a few problems left to work out see the following post for details: http://forums.oscommerce.com/index.php?act=ST&f=7&t=98168 Or if you would like to help, you can contact me directly thru my profile. I have installed many mods to my site, and I think this is an awesome peice of work, with or without help on this, I thank all those who have worked on osCommerce. *Edit* - URL
  3. If this error has already been posted and dealt with, please forgive me, but I have searched and read most of this entire thread and can't find this error from anyone else. I have installed and tested this contrib on a straight osC install and it works fine. Then installed in my test site(which is an exact copy of my live site) using a diff and the install instructions. I have "Print Order" and "PayPal IPN" installed on my live site and when clicking the "continue" button to go to "checkout_confirmation.php" during checkout this is the error I get: Fatal error: Cannot redeclare class order_total in /var/www/html/website_backup/includes/classes/order_total.php on line 13 I have double and triple checked my code work and cannot find any problems. Is it the PayPal IPN? Or something else I can't find yet? Any help would be greatly appreciated. Craig :) PS sorry for positng this here thought I was in the CC-GV support area I will request it moved to there.
  4. I'm still around, just been extremely busy. Got a question? Send me a PM, I'll get back to ya.

  5. blucollarguy

    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 :)
  6. blucollarguy

    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 :)
  7. blucollarguy

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

    Multi_Vendor_Shipping new thread

    Try me again Sorry bout that.
  9. blucollarguy

    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 :)
  10. blucollarguy

    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 :)
  11. blucollarguy

    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 :)
  12. blucollarguy

    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 :)
  13. blucollarguy

    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 :)
  14. blucollarguy

    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:
  15. blucollarguy

    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 :)
  16. blucollarguy

    Multi_Vendor_Shipping new thread

    I appreciate it, but you can keep the kisses! LOL :lol: Enjoy! :thumbsup: Craig :)
  17. blucollarguy

    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 :)
  18. blucollarguy

    Multi_Vendor_Shipping new thread

    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 :)
  19. blucollarguy

    Multi_Vendor_Shipping new thread

    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 :)
  20. blucollarguy

    Multi_Vendor_Shipping new thread

    No, "tep_href_link" is defined in "includes/functions/html_output.php" This is a function built to make sure sessions id's and other background data is being passed properly. Check that file and see if there are any issues there, Craig :)
  21. blucollarguy

    Multi_Vendor_Shipping new thread

    Janet, you will need to double check your edits to the files concerned with MVS. If you simply uploaded the files included with MVS, then I would suggest you upload them again and make sure your FTP is uploading using "ASCII", this should be set to "automatic" in your FTP program but some will need you to set which files need to be uploaded that way. Good luck, Craig :)
  22. blucollarguy

    Multi_Vendor_Shipping new thread

    jyacks, UPS not too far back made a number of major changes/updates and the UPSXML module was also updated. Are you working with the new version or the one that was included in the MVS distribution? gretchen2u, the "order comments" from the customer are not included in the Vendor's email the way things are set up now. One could fairly easily add them. I am not sure you would want all the comments from a customer to show to the Vendor though, I would think about that again if I were you. Good luck to you both, Craig :)
  23. blucollarguy

    Multi_Vendor_Shipping new thread

    You didn't steal anything, if it is something I did, I probably didn't intend it to be released in that condition. I had to do something of this sort(finding a zone_id) with some other project I was working on some time back, I will see if I can remember what I did. The fact that the zones still don't work when the zone_id is populated certainly complicates the bug hunt. I may have some time later tonight(if I don't simply pass out at my laptop again) and I may play with it a bit. Maybe simply request the state form a dropdown perhaps. But I guess one of the points is to ask as little of the customer as possible. Hmmmmm.....
  24. blucollarguy

    Multi_Vendor_Shipping new thread

    My goodness things have been busy here. For some reason I haven't been getting my emails. The Estimator looks pretty good Jim, I like the version from the product_info page, very cool I am guessing from just a quick look through the code here, but the issue with the "Zones" not allowing quotes could be caused from not setting "zone_id" as part of the "order" class. The "zone_id" is in the $order-> array from the "cart" function in the order class. One would need to populate that value in order for the shipping modules to function correctly. If you can't find it I will try to make some time over the weekend to look more deeply into the code and work out how to populate that value. Very nice work though. The original version that was uploaded looks like some code I rushed through a long time ago, but I can't remember who I did it for and can't find it in my notes or archives. I had done a quick version of a popup estimator and had intended to go back and re-write it later, but never did. It seems you have beaten me to it one way or the other. Craig :)
  25. blucollarguy

    Multi_Vendor_Shipping new thread

    Try this: put an "@" sign in front of the call to the constant, in the UPSXML file, like this: @constant('MODULE_SHIPPING_UPSXML_INSURE_' . $vendor_id) This is just a warning however, so it really shouldn't effect whether or not you can get a quote logged in or not. The fact that you don't have a number at the end of the line(MODULE_SHIPPING_UPSXML_INSURE_) shows that you need to change the "$vendor_id" to "$vendors_id", there should be a number at the end of that line. It could be a "register_globals" issue, you would need to add some print statements within the areas of code that are being called when a user is logged, to see what data is missing and causing the error. Good luck, Craig :)
×