Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Caver Dave

Pioneers
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Caver Dave

  1. Here's what I have: //Class Methods function quote($method = '') { /* FedEx integration starts */ global $shipping_weight, $shipping_num_boxes, $cart, $order; require_once(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'library/fedex-common.php5'); $path_to_wsdl = DIR_FS_CATALOG . DIR_WS_INCLUDES . "wsdl/RateService_v9.wsdl"; ini_set("soap.wsdl_cache_enabled", "0"); $client = new SoapClient($path_to_wsdl, array('trace' => 1)); $this->types = array(); if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_INTERNATIONAL_PRIORITY == 'true') So I need the following, with some adjustment to the path?: //Class Methods function quote($method = '') { /* FedEx integration starts */ global $shipping_weight, $shipping_num_boxes, $cart, $order; require_once(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'library/fedex-common.php5'); $path_to_wsdl = DIR_FS_CATALOG . DIR_WS_INCLUDES . "wsdl/RateService_v9.wsdl"; ini_set("soap.wsdl_cache_enabled", "0"); // IF SOAP COMPILED WITH PEAR UNCOMMENT BELOW require_once('SOAP/Client.php'); $client = new SoapClient($path_to_wsdl, array('trace' => 1)); $this->types = array(); if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_INTERNATIONAL_PRIORITY == 'true')
  2. Brilliant! Is it "fedexwebservices.php" that gets the additional code?
  3. Has there been any headway made in the past 2 years here? Have an EIG ISP and only PEAR SOAP, so soap test fails :(
  4. We offer both Flat Rate & Free shipping for several items, but only want this be the case for US & CA customers. I've edited zones.php to include 2 zones: - Zone 1 = US,CA - Zone 2 = ROW codes Removed/re-installed "Zone Rates" module to display both zones after zone.php editing. Both zones have Shipping Table & Handling Rate fields zeroed since we're not looking to charge extra, just use these "zones" to restrict flat Rate & Free shipping to the US/Canada. However, when in the Flat Rate (or Free Shipping) module, I can't choose either of these "Shipping Zones" (drop down *only* contains "--none--" as shown in example below). I removed these existing modules and re-installed both modules, hoping to pick up the additional zones (created in "Zone Rates"), but still nothing. What do I need to do to show & select Zone 1 (to enable these low cost shipping methods for the US/CA only) in these modules? I'm miffed... TIA Example:
  5. Narval, Could you elaborate on what you mean by ? I've changed 3 sites to "Aggregate" (from "Itemized"), but was unsure where to use/place the variable you mentioned. TIA CD
  6. Could you elaborate on the specifics? My PayPal profile has a link for "Instant Payment Notification Preferences" (currently "Off" as directed by others). Also, there's "Shipping Information" that doesn't show my preferred FedEx shipping (NO UPS account). Does "Return to Merchant" mean the link titled "Auto Return for Website Payments" under the "Website Payment Preferences"?
  7. Alex, Am having the same issue as Nigel (Ex: Shipping charges are not getting added to PayPal totals). I'm sure this has been answered, but could you tell me *when* PayPal changed their code? Cheers!
  8. I'm also using the "plain" PayPal module, but it appears customers are going thru checkout, making the payment via the module, and not returning to the shop to finish checking out. I DO get an email from PayPal stating the total & shipping, but NO order details... the order NEVER shows up and I'm left guessing what they ordered! :'( Are you saying the IPN version will eliminate this? If so, in what way? Like the order contents are sent with the PayPal notification? Or it runs the checkout differently, so they aren't as likely to stop before completion? TIA
  9. Multi-Vendor Shipping... allows your products to be drop shipped from various vendors directly the customers. I installed it and ran into quality issues (w/ the vendors), so I disabled it. After inspecting checkout_confirmation.php, I wonder if it's not an ordering issue... based on the lines repositioned for CCGV? pre-edit version // load the selected payment module require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment($payment); require(DIR_WS_CLASSES . 'order.php'); $order = new order; $payment_modules->update_status(); if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } //MVS start // load the selected shipping module if (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'true')){ include(DIR_WS_CLASSES . 'vendor_shipping.php'); } else { if ($total_weight > 0 ){ include(DIR_WS_CLASSES . 'shipping.php'); } else { } } //MVS End //MVS start // load the selected shipping module /* if (SELECT_VENDOR_SHIPPING == 'true') { include(DIR_WS_CLASSES . 'vendor_shipping.php'); } else { include(DIR_WS_CLASSES . 'shipping.php'); } */ //MVS End $shipping_modules = new shipping($shipping); require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total;[/quote] Appended version // load the selected payment module require(DIR_WS_CLASSES . 'payment.php'); if ($credit_covers) $payment=''; // CCGV $payment_modules = new payment($payment); require(DIR_WS_CLASSES . 'order_total.php');// CCGV require(DIR_WS_CLASSES . 'order.php'); $order = new order; $payment_modules->update_status(); $order_total_modules = new order_total;// CCGV $order_total_modules->collect_posts();// CCGV $order_total_modules->pre_confirmation_check();// CCGV // Line edited for CCGV // if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { if ( (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$payment)) && (!$credit_covers) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } if (is_array($payment_modules->modules)) { $payment_modules->pre_confirmation_check(); } //MVS start // load the selected shipping module if (($total_weight > 0 ) || (SELECT_VENDOR_SHIPPING == 'true')){ include(DIR_WS_CLASSES . 'vendor_shipping.php'); } else { if ($total_weight > 0 ){ include(DIR_WS_CLASSES . 'shipping.php'); } else { } } //MVS End //MVS start // load the selected shipping module /* if (SELECT_VENDOR_SHIPPING == 'true') { include(DIR_WS_CLASSES . 'vendor_shipping.php'); } else { include(DIR_WS_CLASSES . 'shipping.php'); } */ //MVS End $shipping_modules = new shipping($shipping); //Lines below repositioned for CCGV // require(DIR_WS_CLASSES . 'order_total.php'); // $order_total_modules = new order_total;
  10. Greetings! I've just installed & configured CCGV(trad) (from 2 Oct 2006) and can't wait to implement it! I'm to the point of testing the initial purchase of the GV's and everything's working up to the point of "Continue" from the Payment Info screen> "Continue Checkout Procedure to confirm this order" ... Fatal error: Cannot instantiate non-existent class: shipping in /hermes/web03/b418/pow.tfe01/htdocs/commerce/catalog/checkout_confirmation.php on line 91 Line 91 appears to be the line just before the code added to "checkout_confirmation.php" during the install: [b]$shipping_modules = new shipping($shipping);[/b] //Lines below repositioned for CCGV // require(DIR_WS_CLASSES . 'order_total.php'); // $order_total_modules = new order_total; I thought it might have something to do with MVS (which has been disabled) or a possible fat finger from the install (except I used WinMerge = no manual edits), but I'm over my head here. Any ideas what the issue might be? I can post a copy of my files if it will help... TIA
  11. As an oscommerce novice (I've done a few mods & a couple of contribs), my experience is limited, and I've found things MUCH easier when I have a step-by-step install document. Is there an automated install proceedure? If not, will the "CCGV Manual Instructions Version 2" by "deathgod" dated 30June2006 work for installing CCGV 5.18? Once installed, I assume the remaining instructions provided by "mauriziomagnino" will get me rolling? TIA Dave
  12. Currently have both UPS & FedEx (basic) shipping modules setup. Many of my products are large (oversize) and heavy (overweight, *if* bundled together), so I'm looking for a method of passing multiple package weights or dimensions to the mods for shipping calculation. For example, I have 1 product that totals 75# (1bundle - 60#ea. approx. 6"W x 24"H x 55" and some minor stuff that fits in their small shipping boxes). For example, the FedEx module calculates shipping to CA @ $78... except it costs me $120! I can break it into multiple packages, but have no way to pass those parameters, other than max out the weight (150#) for that product. The only issue comes when the actual product weight is 150# total and their cutoff for regular ground shipping is 150#ea... I have no way to make sure the charges cover the total. Suggestions? TIA!
  13. Currently have both UPS & FedEx (basic) shipping modules setup. Many of my products are large (oversize) and heavy (overweight, *if* bundled together), so I'm looking for a method of passing multiple package weights or dimensions to the mods for shipping calculation. For example, I have 1 product that totals 75# (1bundle - 60#ea. approx. 6"W x 24"H x 55" and some minor stuff that fits in their small shipping boxes). For example, the FedEx module calculates shipping to CA @ $78... except it costs me $120! I can break it into multiple packages, but have no way to pass those parameters, other than max out the weight (150#) for that product. The only issue comes when the actual product weight is 150# total and the cutoffs for regular ground shipping is 150#... I have no way to make sure the charges cover the total. Suggestions? TIA!
  14. Please excuse my obvious lack of searching, but I'm in a bit of a rush... Due to my vendors "quality control", I've found it best to either pickup myself (so I can inspect the product) or have them ship to me. Anyways, I need to UNINSTALL the MVS mod I added earlier this year. Can anyone point me in the right direction? TIA
  15. Well, as much as I (or anyone else :D ) would like it on a silver platter, I have to start somewhere! Let me know your thoughts on this and I'll see what I can figure out!
  16. Jim, my thanks again in your efforts to educate me in the ways of php & subsequent troubleshooting! After numerous changes to figure out WHAT the cause is, I found "Maximum box weight" needed to be filled (is & was "0" on all the vendors)! Once I added a weight, the module was then able to correctly cipher shipping as "4boxes X xx#'s ea = $xx.xx! Sorry to have drug you off into the weeds on a wild goose chase! My next question: Is there a way to force the UPS module into figuring the shipping for EACH individual product as opposed to the total weight from each vendor?
  17. The plot thickens! On my duplicated dummy order, for some reason the shipping is blowing up... Ideas greatly appreciated...
  18. Good info! I've had no reason to modify any of the stock code, so all should be correct. According to "vendor_configuration", there are MODULE_VENDOR_SHIPPING_INSTALLED_# for all 3 vendors with correct values for each... I will create a dummy order to mimic the real order as closely as possible, because I wonder if it was simply "user error" (did not check a shipping method for the missing product, etc.)... everything here is pointing towards "external issues" and not the code/db! :-"
  19. That's what I "assumed" would happen, thanks for the clarification! Yes, All items are listed! No, only for the for the first 2 vendors (Vendor #1 = FedEx & Vendor #3 = UPS)... no mention of Vendor #4 :( Do you mean are they (close to) correct or obviously incorrect? If so, yes, they appear to be correct based on the weights & location (based on prior "manually" ciphered shipments of like product) >_< OK, since this seems to point to the catalog side, let me give you some info that I just saw... I have a total of 3 vendors (vendors_id 1,3, & 4). Could the missing "vendor_id 2" be causing an issue? I'm guessing I had #2 at some point, but deleted that vendor, causing the numbering? Vendors #3 & #4 have NULL for several values like "date_added" & "last_modified", even though they show as "enabled" and have been modified (changed addresses, etc.) in an attempt to change the nulls in the db... Would a copy of my checkout_process.php help? I have not modified the stock code from the install (used MVS Rollup/22Jan2006 unpon recommendation)... Again, thanks for the help Jim! I'm a fairly accomplished system admin (75% Windoze & 25% Linux) with a decent amount of HTML thrown in, but trying to understand PHP & it's processes has me feeling like I just got my first PC... again!
  20. A small milestone was reached earlier today! I rec'd the first order via my oscommerce store! B) However, there looks to be a "malfunctions" or 2 :blink: ... I'll attempt to describe the situation and behaviour in hopes the savy folks might offer me (clueless) some guidance... 1) "Customer #1" places an order for 6 items. 2) 1 item from "Vendor A", (FedEx & UPS) 3) 1 item from "Vendor B", & (UPS only) 4) 4 items from "Vendor C", (UPS only) 5) The customer rec'd an order confirmation, correctly showing all items ordered, but missing the shipping for all items from Vendor C... (he's a friend that forwarded the email on my request) 6) When I view the order via admin/cutomers/orders/edit, I can only see the items from Vendors A & B (showing the 2 items, the shipping cost & methods... 1 via FedEx, 1 via UPS), &7 customer comments. While I cannot see the items from vendor C, the totals for all items, plus shipping for the items I can see appear to be correct. The 4 items from Vendor C all weigh well over several hundred pounds... I thought that possibly it pooched because it tallied over the UPS weight limit? Does this sound plausible? If so, is there a way to split an order from a single vendor that combines for mucho weight into separate shipments? If this doesn't sound like the cause, where should I go from here? I'm more than happy to include any additional info/code that might help pinpoint the issues cause! Dave (mega-NEWB :wacko: )
  21. OMGosh! :blush: :blush: :blush: I completely missed this when browsing the contrib... I have added the correct spu.php and all is functioning as advertised. Again, thanks for the awesome support and handholding to this ultra newb. I can only hope that in the future (once I gain a clue about PHP), I can contribute my assistance in this worthy cause! :thumbsup:
  22. Thanks Marc! I'm back in town and hoping to lay this issue to rest, but couldn't find a likely place to the code you provided... couldn't find that function called (or is the newb in me gleaming?) :blush: Here's my spu.php (actually copied from includes/modules/shipping during install attempt...) from the path you gave: <?php /* $Id: spu.php,v 1.4 2002/11/10 14:29:56 mattice Exp $ CONTRIB is Store Pickup Shipping Module (http://www.oscommerce.com/community/contributions,164) Based upon flat.php / spu.php by M. Halvorsen (http://www.arachnia-web.com) Made to work with latest check-out procedure by Matthijs (Mattice) >> e-mail: [email protected] >> site: [url=http://www.matthijs.org]http://www.matthijs.org[/url] TO TRANSLATE IN GERMAN !! osCommerce, Open Source E-Commerce Solutions [url=http://www.oscommerce.com]http://www.oscommerce.com[/url] Copyright ? 2003 osCommerce Released under the GNU General Public License CHANGES: - formatted to work with latest checkout procedure - removed icon references - updated the db queries */ class spu { var $code, $title, $description, $icon, $enabled; // class constructor function spu() { global $order; $this->code = 'spu'; $this->title = MODULE_SHIPPING_SPU_TEXT_TITLE; $this->description = MODULE_SHIPPING_SPU_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_SPU_SORT_ORDER; $this->icon = ''; $this->enabled = ((MODULE_SHIPPING_SPU_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_SPU_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_SPU_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_SPU_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_SPU_TEXT_WAY, 'cost' => MODULE_SHIPPING_SPU_COST))); if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_SPU_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Store Pick Up', 'MODULE_SHIPPING_SPU_STATUS', 'True', 'Do you want to offer Store Pickup?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Store Pickup Cost', 'MODULE_SHIPPING_SPU_COST', '0.00', 'What is the pickup cost? (The Handling fee will NOT be added.)', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Shipping Zone', 'MODULE_SHIPPING_SPU_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_SPU_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { $keys = ''; $keys_array = $this->keys(); for ($i=0; $i<sizeof($keys_array); $i++) { $keys .= "'" . $keys_array[$i] . "',"; } $keys = substr($keys, 0, -1); tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")"); } function keys() { return array('MODULE_SHIPPING_SPU_STATUS', 'MODULE_SHIPPING_SPU_COST', 'MODULE_SHIPPING_SPU_SORT_ORDER', 'MODULE_SHIPPING_SPU_ZONE'); } } ?> Might you guide me towards the correct location to add the "function sort_order" lines?
  23. Can anyone assist me with integrating the "Store Pick Up" module with MVS? I attempted to load the spu.php into /catalog/includes/modules/vendor_shipping... but it blows up when "manage" is choosen from Vendors...
  24. Thanks again Jim! Obviously I was wrong when stating I could "follow written instructions"! :blush: I had skipped my usual anal check marking of files uploaded & found several files missing on the server (in the root of admin/includes... go figure, huh? Double :blush: ) All seems to functioning well (once the 4 files were uploaded) and I'll begin configuration on the "night shift"...
  25. Before I go on, THANKS JIM! I'd be screwed if not for the excellent support! This fixed the initial error, but now once in the product page, beside the field "Vendors Comments or Special Instructions": ... Is it because I have NO vendors setup? Was looking for that function since I recall adding a button for "new vendor"...
×
×
  • Create New...