Jump to content

cigarsforless

♥Ambassador
  • Content count

    240
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by cigarsforless

  1. cigarsforless

    Multi_Vendor_Shipping new thread

    seems that for some reason the code is not detecting any of the installed vendor shipping modules and as a result returning an empty array // Find all of the modules and instantiate the module classes public function __construct($module = '') { global $language, $PHP_SELF; $installed_modules_array = array(); //Get the vendors_id for each vendor in the database $vendors_data_query = tep_db_query("select vendors_id from " . TABLE_VENDORS); while ($vendors_data = tep_db_fetch_array($vendors_data_query)) { $vendors_id = $vendors_data['vendors_id']; $installed_modules = @constant('MODULE_VENDOR_SHIPPING_INSTALLED_' . $vendors_id); if (isset ($installed_modules) && tep_not_null ($installed_modules)) { $modules_array = explode(';', $installed_modules); $this->modules[$vendors_id] = $modules_array; foreach ($modules_array as $module_name) { //if the module is not already in the array, add it in if (!in_array ($module_name, $installed_modules_array)) { $installed_modules_array[] = $module_name; }//if !in_array }//foreach }//if isset }//while $include_modules = array(); if ( (is_string($module) && (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $modules_array))) ) { $include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1))); // X 2-20-10 ADDED PRINTOUT CODE } else { // LINE 51 BELOW THAT IS THROWING THE ERROR reset($modules_array); foreach ($installed_modules_array as $value) { $class = substr($value, 0, strrpos($value, '.')); $include_modules[] = array('class' => $class, 'file' => $value); } //foreach } //if tep_not_null as well, not a single shipping quote is being returned? MVS_BSv1.4.3 on stock 2.3.4.1 BS Frozen
  2. cigarsforless

    Multi_Vendor_Shipping new thread

    @burt thanks for the suggestion but now error is Fatal error: Only variables can be passed by reference in /home/xxx/xx.xxx.com/includes/classes/vendor_shipping.php on line 51
  3. cigarsforless

    Multi_Vendor_Shipping new thread

    as Burt says "Be aware that EDGE is basically my playground. It is subject to changes in all files and there is zero support for it. If, as a shopowner, you want stable: Go Frozen. If, as a shopowner, you have a good developer or you are technically minded: Go Edge." SO... is there a working version of MVS for BS Frozen? or am I just an idiot who can no longer code?
  4. cigarsforless

    Multi_Vendor_Shipping new thread

    in regards to my post above, please see here pulling my hair out trying to get MVS_BSv1.4.3 to work on 2.3.4.1 BS Frozen (THE "official" stable BS release)
  5. cigarsforless

    Multi_Vendor_Shipping new thread

    Has anyone gotten MVS_BSv1.4.3 working on 2.3.4.1 BS Frozen? (as of 18/05/2018) Can't for the life of me get it to give rates and here are the errors I am getting Notice: Undefined variable: order_id in /includes/classes/order.php on line 287 Warning: reset() expects parameter 1 to be array, null given in /includes/classes/vendor_shipping.php on line 51 Notice: Undefined variable: vendors_id in /checkout_shipping.php on line 223 for what it is worth I have installed just flat rate and table shipping modules at this point
  6. cigarsforless

    Custom Server Error Pages

    awesome, thanks so much for the quick reply Jack
  7. cigarsforless

    Custom Server Error Pages

    curious if this will give a hard 404 or a soft fail. I have a similar add on in my shop and google webmaster tools show a lot of soft fails when I disable a category. (even though a 404 is returned)
  8. cigarsforless

    Multi_Vendor_Shipping new thread

    for what its worth, getting a new USPS API username seemed to fix my issues of no data showing up on the checkout shipping page.
  9. cigarsforless

    Multi_Vendor_Shipping new thread

    I'm at a bit of a loss, the USPS module installs fine in admin, but i get nothing in the catalog side. no errors, nothing. I have a highly modified shop and it is a mix of 2.2 and 2.31 and partially updated for php5.3 but running on an older version (5.2.17) anyone have any ideas?
  10. cigarsforless

    Multi_Vendor_Shipping new thread

    USPS Methods for MVS now uploaded! after much hair pulling and a celebratory shot of rum, I finally got USPS international rates to work. this forum and its contibutors have helped me so much over the years I had to share. :) you can find the usps.php file in the UPS Methods contrib page here UPS Methods for MVS or in the MVS contrib page here USPS for MVS sorry, no taxes, insurance, dimensions and many letter mail services are included as I do not use them, but it does return valid rates for both US domestic and international shiping
  11. cigarsforless

    Multi_Vendor_Shipping new thread

    MVS and usps.php? does anybody have a working version of usps.php modified for MVS? Seems that the folks over at the Post Office royally messed up the API with the latest revisions on Jan 2, 2011 International shipping does not work anymore. looks like they have a "working" version of USPS Methods at USPS Methods Contrib. but i need it to work with MVS losing money hand over foot thanks to the folks at USPS anyone?
  12. cigarsforless

    Order Editor for MVS

    I have a problem with order editor for MVS and shipping totals If I edit the amount of the shipping rate, the order totals update, BUT the values in the orders_shipping table do not update. Also when you delete a product and there are no more products for that vendor, the entry in the orders_shipping table does not also get deleted. Makes it a pain to have to go and manually delete/change the entries via phpMyAdmin I have spent a couple of hours trying to debug this but to no avail I believe the code responsible is here in edit_orders.php ////////////////////////////MVS //1.3.1.1 Update orders_shipping table //if there are no products associated with the vendor, we delete the vendor //but, as of right now, not before we give Admin the chance to send out a new vendors email if ($this_is_an_mvs_order) { if (is_array ($_POST['update_shipping'])) { foreach ($_POST['update_shipping'] as $orders_shipping_id => $shipping_details) { if (isset($delete_this_vendor_check)) unset($delete_this_vendor_check); $save_this_vendor = false; $delete_this_vendor_query = tep_db_query(" SELECT orders_products_id FROM " . TABLE_ORDERS_PRODUCTS . " WHERE vendors_id = '" . $shipping_details["vendors_id"] . "' AND orders_id = '" . (int)$oID . "'"); while ($delete_this_vendor_result = tep_db_fetch_array($delete_this_vendor_query)) { $delete_this_vendor_check = $delete_this_vendor_result['orders_products_id']; } if (tep_not_null($delete_this_vendor_check)) { //then there is something in the orders_products table $save_this_vendor = true; } if ($save_this_vendor) { $Query = "UPDATE " . TABLE_ORDERS_SHIPPING . " SET shipping_method = '" . $shipping_details["method"] . "', shipping_tax = '" . $shipping_details["tax"] . "', shipping_cost = '" . $shipping_details["cost"] . "', shipping_module = '" . $shipping_details["module"] . "' WHERE orders_id = '" . (int)$oID . "' AND orders_shipping_id = '" . $orders_shipping_id . "';"; tep_db_query($Query); //we only add tax to the sum if there are products for the vendor if (DISPLAY_PRICE_WITH_TAX == 'true') { $RunningTax[$default_tax_name] += $shipping_details["tax"] * $shipping_details["cost"] / ($shipping_details["tax"] + 100); } else { $RunningTax[$default_tax_name] += ($shipping_details["tax"] / 100) * $shipping_details["cost"]; }//end if DISPLAY_PRICE_WITH_TAX == true } else { //if we don't update, we delete! //this only works for the first vendor in the array? $Query = " DELETE FROM " . TABLE_ORDERS_SHIPPING . " WHERE orders_id = '" . (int)$oID . "' AND vendors_id = '" . $shipping_details["vendors_id"] . "' AND orders_shipping_id = '" . $orders_shipping_id . "';"; tep_db_query($Query); }//end if ($delete_this_vendor[$orders_shipping_id]) }//end foreach ($_POST['update_shipping'] as $orders_shipping_id => $shipping_details) }//end if (is_array ($_POST['update_shipping'])) }//end if ($this_is_an_mvs_order) /////////////////////////////end MVS it looks like it should work, but for the life of me I can't get it to do what it is supposed to any help is greatly appreciated
  13. cigarsforless

    Request Product Reviews

    I too was getting blank emails sent when run from CRON (perfect when run manually) I tried adding above line 163 if (!isset($PHP_SELF)) $PHP_SELF = $_SERVER['PHP_SELF']; but that did not work so I changed 161 as indicated above (rest of paths are relative) and it now works like a charm. FYI, here are the errors I was getting when blank emails were sent [11-Nov-2009 05:30:01] PHP Warning: file(.tpl) [<a href='function.file'>function.file</a>]: failed to open stream: No such file or directory in /home/cigars/public_html/admin/request_reviews/review_mail.php on line 163 [11-Nov-2009 05:30:01] PHP Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home/cigars/public_html/admin/request_reviews/review_mail.php on line 163 Great script, got 6 reviews from the email I manually sent yesterday!
  14. cigarsforless

    Multi_Vendor_Shipping new thread

    I too would love to see one page checkout and MVS working together. I gave it a try a while ago, but the Ajax part is a bit beyond me at this point.
  15. cigarsforless

    Multi_Vendor_Shipping new thread

    no, my customers get a plain text email
  16. cigarsforless

    Multi_Vendor_Shipping new thread

    the delivery_telephone variable comes from another add-on Address Book Enhancer http://addons.oscommerce.com/info/1868 I use it because UPS (and other delivery companies) require a delivery phone number for all packages You can also use this add-on Add telephone number to shipping & delivery addresses http://addons.oscommerce.com/info/5682 which is based on Address Book Enhancer but is easier to install (with a few less features) My shop has at least 60 or more different add-on installed so it is sometimes hard to keep track of all the code changes If you are not going to add the Address Book Enhancer add-on, deleting the variable as you have done is fine, but I recommend you add it unless you are only going to ship via the post office which does not reguire a customer phone number
  17. cigarsforless

    Multi_Vendor_Shipping new thread

    that image is from the stock Vendor Email Send module and has nothing to do with the my mod My mod sends the email out when the order is placed and will also send you a copy as if it was sent from the vendor. be sure you have the following settings made go to admin, vendors, vendor manager, click on each vendor and be sure that Send Order Emails is checked go to admin, configuration, email options and make sure that "Use MIME HTML When Sending Emails" is set to True go to admin, configuration, Shipping/Packaging, When to send the Vendor Email and check either "Catalog" or "Both" My Mod will NOT work if you have it set to send from "Admin" or "Not at all" the whole point of my mod is to automate the order process as much as possible by sending the vendor the dropship order info and packing slip that they can print out this is done when the order is placed by the customer and requires no additional work by the store owner
  18. cigarsforless

    Multi_Vendor_Shipping new thread

    Do you have your shop set up to send HTML emails? go to admin, cofiguration, email options and make sure that "Use MIME HTML When Sending Emails" is set to True as for the Send Vendor Email page, this mod is not part of that. It sends the vendor email when the order is placed online by the customer
  19. cigarsforless

    Multi_Vendor_Shipping new thread

    1 more fix you also have to remove the } from line 459 before $printinfo = '<br /><br /><b><i>NOTE: Print page 2 only if you just want to print the packing slip.</i></b>'; } $email= '<html><head><title></title></head><body><table><tr><td>' . $trackcomments . $printinfo . $custinvoiceinfo . '</td></tr></table></body></html>'; after $printinfo = '<br /><br /><b><i>NOTE: Print page 2 only if you just want to print the packing slip.</i></b>'; $email= '<html><head><title></title></head><body><table><tr><td>' . $trackcomments . $printinfo . $custinvoiceinfo . '</td></tr></table></body></html>'; let me know if that fixes it
  20. cigarsforless

    Multi_Vendor_Shipping new thread

    sorry about that. When I removed a bunch of my custom coding I forgot to remove an end } remove the } from line 519 just above /// END DROPSHIP ORDER let me know if that fixes the problem
  21. cigarsforless

    Multi_Vendor_Shipping new thread

    No problem! If it wasn't for all the hard work you and Craig have put into MVS, my running my sites would be a lot harder. Glad to give something back to the comunuity. I am using a partially patched older version of MVS (along with some custom modifications), so while I think the code I provided "should" work just fine, as I mention, there might be a bug or two in it or better ways to do what I have done. It certainly looks a lot better and has more info in there than the stock vendors email though! Hope it helps people.
  22. cigarsforless

    Multi_Vendor_Shipping new thread

    I have uploaded my HTML Vendors Email Mod to the MVS package here http://addons.oscommerce.com/info/4129 catalog/checkout_process.php Modified to send Dropship Order, Packing Slip, and Optional Invoice in 1 HTML formated vendors email by Jim Bullen 08/29/2009 this mod will send a nicely formatted HTML Email to the vendors when an order is placed on your site. It includes a dropship order, a packing slip, and if sent to a country other than your own, it will also include a customer receipt to be included with the customs forms NOTE: I do not charge any taxes on my sites, so there are no provisions to include them in this mod also customer Invoice does not include the shipping fees so as to reduce duties and taxes that may be due to the customer on delivery The code I use on my own domains is heavily modified to suit various vendor specs, so I have removed that as best I can but there may be a bug or two in the cleaned up code provided here USE AT YOUR OWN RISK AND BACK UP BACK UP BACK UP BEFORE YOU USE THIS MOD As well as the html email sent to the vendor, this sends a copy of the vendor email to you as if it came from the vendors themselves this makes it very easy to contact a vendor about a dropship order, just hit "reply" If there is more than one vendor, for a customers order, it will send each vendor an order with subject lines like Order #34470a for John Doe from My Company Order #34470b for John Doe from My Company Order #34470c for John Doe from My Company (these order numbers are also included in the email body itself)
  23. cigarsforless

    Multi_Vendor_Shipping new thread

    I'll see if I can clean out my vendor specific customizations and trim it down to just the dropship order, packing slip and if required for international orders, the customer receipt to be included with the customs form. Will see if I can get to it this weekend and will post here when I get it uploaded. I also have a bit of code mod done so that I get a copy of the vendor email as if it was sent by the vendor (to and from are reversed in the email) makes it really easy to contact the vendor about an order by just hitting reply. I'll include that as well as it sure is a time saver
  24. cigarsforless

    Multi_Vendor_Shipping new thread

    I have a VERY, VERY modified checkout_process.php file that sends out nicely formated html emails to the vendors. I have several differnt vendor specs and special options so there is a lot of hard coding in there but I'm sure it can be modified to suit if anyone is interested. If Craig or Jim would like to have a look at the code, I can clean it up a bit and send it to you for possible inclusion in future MVS versions Below is a screen shot of one of the emails that includes a vendors handling fee section, a dropship order and a packing slip all sent in one email. It will also include a customer receipt for international orders for the customs forms. the only issue I have with it isa that the plain text version is not formatted correctly so some mail clients have issues reading it correctly
  25. cigarsforless

    One Page Checkout Support

    One Page Checkout and MVS? http://addons.oscommerce.com/info/4129 anyone had any luck getting this One Page Checkout contrib to work with MVS (Multi Vendor Shipping)? have been using MVS for several years and would LOVE to get it to work with this new One Page Checkout contrib. anyone?
×