Jump to content

blucollarguy

Members
  • Content count

    739
  • Joined

  • Last visited

Everything posted by blucollarguy

  1. blucollarguy

    Multi_Vendor_Shipping new thread

    The file labeled MVS Options has the EP package included. In the EP contrib, it is the one labeled "VendorAutoEmail". Craig :)
  2. blucollarguy

    Multi_Vendor_Shipping new thread

    If MVS was installed correctly, you will only need to turn it off. In the Admin: Configuration->Shipping/Packaging, set each MVS option to "false" or "no" and all should be fine. If you have trouble, you could go back to straight osC files and re-install whatever else you have, or you could replace the effected files with your backups if you have them from when you installed MVS. You would not necessarily have to do anything on the admin side, just don't use the Vendor related stuff. As long as you don't delete the vendor relate tables in the database, there would be zero hinderance to the functionality of the Admin. Once MVS is turned off, the orders page and order data should go back to standard osC stuff. Good luck, Craig :)
  3. blucollarguy

    Multi_Vendor_Shipping new thread

    You will need to interpret the "shipping" array: //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) { $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]; } This is from checkout_process.php, where the array is broken down for the database insert, one would have to use a method similar to this in order to get the data properly for comparison I think. Hope this helps a bit, I don't have the time right now to get into this too much, but I may have more time later this week if you don't find it. Good luck, Craig :)
  4. blucollarguy

    Multi_Vendor_Shipping new thread

    The instructions for the admin installation have an error. In admin/includes/database_tables.php: ============================================ Add After Line 57 and before the closing ?> ============================================ //MVS Start define('TABLE_HEADING_PRODUCTS_VENDOR', 'Vendor'); define('TABLE_HEADING_QUANTITY', 'Qty'); define('TABLE_HEADING_VENDORS_SHIP', 'Shipper'); define('TABLE_HEADING_SHIPPING_METHOD', 'Method'); define('TABLE_HEADING_SHIPPING_COST', 'Ship Cost'); define('VENDOR_ORDER_SENT', 'Order Sent to '); //MVS End it should be: ============================================ Add After Line 57 and before the closing ?> ============================================ //MVS start define('TABLE_VENDORS', 'vendors'); define('TABLE_VENDORS_INFO', 'vendors_info'); define('TABLE_VENDOR_CONFIGURATION', 'vendor_configuration'); define('TABLE_ORDERS_SHIPPING', 'orders_shipping'); define('TABLE_PACKAGING', 'packaging'); //MVS end Sorry about that, it has been discussed here several times before, please search the thread before posting so we don't have to keep reposting these types of things. I am trying to finish the updates for the next version, but keep getting pulled away. Good luck, Craig :)
  5. blucollarguy

    Multi_Vendor_Shipping new thread

    Well, just a quick look and this is working on my test site: checkout_shipping.php, starting at line 14: change require('includes/application_top.php'); require('includes/classes/http_client.php'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); to require('includes/application_top.php'); require('includes/classes/http_client.php'); if (tep_session_is_registered('shipping')) tep_session_unregister('shipping'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); This seems to be working just fine on my test site with multiple shipping options and multiple vendors. It resets the session such that the "cheapest" will be selected again. It really should be saved to the option that was selected the first time but this is a start. What this means to me is that we actually need to interpret the posted "shipping" variable, which is not the same name as the "field" name anymore. It's a start anyway, Craig :)
  6. blucollarguy

    Multi_Vendor_Shipping new thread

    Hey you guys, I had noticed this before but thought we had dealt with it at some point, so I was looking through all my development sites and sure enough, it never got fixed. So this is another bug to be squashed. Adding it to the list. Craig :)
  7. blucollarguy

    Multi_Vendor_Shipping new thread

    In admin/vendors.php, line 528, in the query: MAX_DISPLAY_SEARCH_RESULTS is the number being used, it is set under Admin->Configuration->Maximum Values->Search Results This setting effects all listings through out the shop, so be smart about the number you choose. Craig :)
  8. blucollarguy

    Multi_Vendor_Shipping new thread

    Cool, let us know how things go. Craig :)
  9. blucollarguy

    Multi_Vendor_Shipping new thread

    This functionality has been talked about many times, but as far as I know no one has finished it and/or made it available. If you have used the "Admin Acess with levels" you should be able to create this functionality with a bit of work. It is in my long term plans for MVS, but has been a low priority for me. Detection and auto selection of which Vendor is closest to the customer is also a feature in my long term plans, there is currently a contribution that offers this functionality and does function(I have installed it and played with it a bit) but once again, it has been low on the priority list. If you get into working with it, we will try to help as much as possible if you have any problems. Good luck, Craig :)
  10. blucollarguy

    Multi_Vendor_Shipping new thread

    There are notes about the "testing" servers not functioning with this version of the USPS module(in the module forums and here on the MVS forums, and in the instructions with the MVS package), you must have missed them. What about the other module is better? As far as I know they are very much alike. I have personally never worked with it so I can't say for sure which is "better" and exactly what are the differences. If the one you reference really is "better" on a discernable level it would not be a bad idea to make it available. I think it is interesting that it hasn't had any support or updates in almost 2 years though, makes me wonder. Craig :)
  11. blucollarguy

    Multi_Vendor_Shipping new thread

    First, did you enable MVS in the admin? Under admin->configuration->shipping/packaging. Second: this block of code is in admin/includes/filenames.php //MVS start define('FILENAME_VENDORS', 'vendors.php'); define('FILENAME_VENDOR_MODULES', 'vendor_modules.php'); define('FILENAME_PRODS_VENDORS', 'prods_by_vendor.php'); define('FILENAME_ORDERS_VENDORS', 'orders_by_vendor.php'); define('FILENAME_VENDORS_EMAIL_SEND', 'vendor_email_send.php'); define('FILENAME_MOVE_VENDORS', 'move_vendor_prods.php'); //MVS end If this block of code was not in the file you uploaded, then you are not uploading the correct files. MVS V1.1 is the latest, it does have a few bugs that have been reported here, but I have not had the time to update and upload a new package yet. The instructions are very detailed, with a FEW mistakes, but most folks have been able to install on very heavily modified stores without much difficulty. Make sure to read through the documentation and you should be fine. Sometimes this mod can be confusing, it is very large with a lot going on, stick with it and you'll get it. Craig :)
  12. blucollarguy

    Multi_Vendor_Shipping new thread

    Please post it to the contribution section with whatever instructions needed to accomodate the changes you've made. Thanks for sharing, Craig :)
  13. blucollarguy

    Multi_Vendor_Shipping new thread

    Only if it has been modified for MVS compatibility. There are some instructions in the package that will guide you through the basics. There will most certainly be some playing to be done as well. I suggest that you look at the code in the other modules that may be similar(USPS, UPS, FedEx) to see some examples of what to do. Good luck, Craig :)
  14. blucollarguy

    Multi_Vendor_Shipping new thread

    What you need to do is install the code for the attribute weights into the MVS section of the code that is added to includes/classes/shopping_cart.php. Look for the block that collects the product information and you will see the bits of code that are alike. You must add the same code here as was added to the normal includes/classes/shopping_cart.php file in order for things to work properly. Craig :)
  15. blucollarguy

    Multi_Vendor_Shipping new thread

    Since MVS doesn't modify either of these files, it's difficult to guess. The error your getting suggests that you have a "redirect" somewhere that is creating yet another "redirect", this can happen when a redirect sends one to a page that does not find(during any error checking in the code) right back to where one came from. The blank screen can be just about any code error, so that could be difficult to find. Considering there aren't that many files being modified with MVS, I would say you have probably added code to a template file that went wrong. Double check your edits in the "content" section in the templates folder and make sure that each file has no code errors, or the wrong portion of the code to be added there. Cre can be difficult to work mostly because of the template system already in place, just back track your installation and you will find it. Good luck, Craig :)
  16. blucollarguy

    Multi_Vendor_Shipping new thread

    Try moving: $vendor_query = tep_db_query(" select vendors_phone1 from " . TABLE_VENDORS . " where vendors_id = '" . (int)$product_info['vendors_id'] . "'"); $vendor = tep_db_fetch_array($vendor_query); $free_shipping = $vendor['vendors_phone1']; so that it is after this line: $product_info = tep_db_fetch_array($product_info_query); IF is does not work after that, then change: $vendor_query = tep_db_query("select vendors_phone2 from " . TABLE_VENDORS . " where vendors_id = '" . (int)$product_info['vendors_id'] . "'"); $vendor = tep_db_fetch_array($vendor_query); $free_shipping = $vendor['vendors_phone1']; to: $vendor_query = tep_db_query("select vendors_phone2 from " . TABLE_VENDORS . " where vendors_id = '" . (int)$product_info['vendors_id'] . "'"); while($vendor = tep_db_fetch_array($vendor_query)) { $free_shipping = $vendor['vendors_phone2']; } I have seen this before, also it could just be the that you were calling "vendors_phone1" and not "vendors_phone2". Good luck, Craig :)
  17. blucollarguy

    Multi_Vendor_Shipping new thread

    FEC can be merged with MVS, but it can be tricky, you will need to take a good look at all the files to work out which ones need what parts of the code. FEC can be tricky to work with so be careful. I have done this on several sites so I guarantee it can work. I have not worked with the latest version of FEC though. Good luck, Craig :)
  18. blucollarguy

    Multi_Vendor_Shipping new thread

    I would suggest holding off a bit, I am trying to get the next release finished which will have a number of updates that would be of interest to most users. I will try to do a better job with the instructions this time as well and hopefully include some instruction on upgrading an existing install. Craig :)
  19. blucollarguy

    Multi_Vendor_Shipping new thread

    Wade: there is an icon included in MVS V1.1, place it in the same directory and it will show for you. Lori: your welcome Writing a shipping module can be a bit difficult. I would suggest you start with modifying one that is already written for your needs. You may need the "Multi-Zone" capabilities, the "Regions" module might also be the one to work with. Keep in mind any module you work with will need to be modified for MVS to begin with. Then, with some patience, you should be able create the functionality you need. Play around with the code and you will learn quickly, I did(sort of, LOL). I am not aware of any written instruction or the like for the structure of a standard shipping module. Good luck to you both, Craig :)
  20. blucollarguy

    Multi_Vendor_Shipping new thread

    The fact that your posts have not been deleted yet suggests the osC team is not concerned with your work with osC Max. You understand what is wrong: the vendor files need to be added to the "files" database for the Admin Access system. The lines you added are correct, but by enabling the vendor box afterward you now have 2 entries, you should probably delete the lines from the database and add them via the "Admin" control system: click on the 'Vendors' box in the list, enable the box, then click "Store Files", from there you need to add each new file from MVS. Be sure to add ALL vendor related files. After this, you should be ok to get started with MVS. Good luck, Craig :)
  21. blucollarguy

    Multi_Vendor_Shipping new thread

    HMMMMMM.... Well, take a good look at the database.php files from both sides and see just how much is different from yours and the ones included with MVS. Perhaps you have a package that has been modified with some other mods that we don't realise we are working with. Craig :)
  22. blucollarguy

    Multi_Vendor_Shipping new thread

    Check that you added the link to the Vendors box in admin/includes/column_left.php. That is where you will see the links to get to all of the setup. Craig :)
  23. blucollarguy

    Multi_Vendor_Shipping new thread

    This is from the server not finding your language files. Double check(look for the files through FTP or your file manager in your hosts CP) and go to 'includes/languages/english/' and see if the files are there. If they are not, you need to upload them again. There should not have been anything during MVS installation to effect the particular file being referenced in the error message you posted, so the question needs to be, what happened to it? When you installed MVS you should have modified the files in the language directory as needed, did you modify or replace? Craig :)
  24. blucollarguy

    Multi_Vendor_Shipping new thread

    The "catalog" folder is referring to the main folder containg the osC installation, you should have noticed when unpacking osCommerce, that the site files are in the "catalog" folder, it is standard practice to use it as a proper reference point for the file structure. So, in your case, "public_html" or "htdocs" is the same as "catalog". If you are still getting the error about the "table does not exist", the problem does lie in the includes/database_tables.php on either the admin side or the "catalog" side or both. I would suggest you go back to the original file and compare it to the one included in the MVS package. You can use a compare program for this as well if you want, I use WinMerge, a free one available at Source Forge. Good luck, Craig :)
  25. blucollarguy

    Multi_Vendor_Shipping new thread

    Here is the issue: you have: EMAIL_TEXT_GREETING . $email_order = STORE_NAME . "\n" . and it should be: $email_order = EMAIL_TEXT_GREETING . STORE_NAME . "\n" . In order for your defined greeting to show before the store name. You may want to add a line break between them, but that will be your preference. Good luck, Craig :)
×