Jump to content

bopper

Members
  • Content count

    79
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by bopper

  1. bopper

    UPS, USPS Puerto rico

    here is my fix for the Puerto rico shipping modules problem...I just covered the contingency in both the UPS and USPS shipping modules... for the UPS.php shipping module: first find this function // class methods function quote($method = '') { then at around line 85 you will find $this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']); change that line to a switch block for the PR case //hack for to switch country to PR if shipping address country is US for puerto rico if (($order->delivery['postcode'] == '00912') && ($order->delivery['country']['iso_code_2'] == 'US')) { $this->_upsDest($order->delivery['postcode'], 'PR'); } else { $this->_upsDest($order->delivery['postcode'], $order->delivery['country']['iso_code_2']); } //end hack for to switch country to PR if shipping address country is US for puerto rico that little hack will switch the country passed in to the mod to PR if the customer has set the shipping address to have the US as the country for Puerto rico ---------------------------------------------------------------------------------------------------- for the USPS.php shipping module do a search on that file for ($order->delivery['country']['iso_code_2'] == 'US') and replace that code with (($order->delivery['country']['iso_code_2'] == 'US') || ($order->delivery['country']['iso_code_2'] == 'PR')) then do a search for ($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY) and replace that code with (($order->delivery['country']['id'] == SHIPPING_ORIGIN_COUNTRY) || ($order->delivery['country']['id'] == '172')) then around line 199 you find $request = '<IntlRateRequest USERID="' . MODULE_SHIPPING_USPS_USERID . '" PASSWORD="' . MODULE_SHIPPING_USPS_PASSWORD . '">' . '<Package ID="0">' . '<Pounds>' . $this->pounds . '</Pounds>' . '<Ounces>' . $this->ounces . '</Ounces>' . '<MailType>Package</MailType>' . '<Country>' . $this->countries[$order->delivery['country']['iso_code_2']] . '</Country>' . '</Package>' . '</IntlRateRequest>'; replace that block with if($this->countries[$order->delivery['country']['iso_code_2']] == 'PR') { $strCtry = 'US'; } else { $strCtry = $this->countries[$order->delivery['country']['iso_code_2']]; } $request = '<IntlRateRequest USERID="' . MODULE_SHIPPING_USPS_USERID . '" PASSWORD="' . MODULE_SHIPPING_USPS_PASSWORD . '">' . '<Package ID="0">' . '<Pounds>' . $this->pounds . '</Pounds>' . '<Ounces>' . $this->ounces . '</Ounces>' . '<MailType>Package</MailType>' . '<Country>' . $strCtry . '</Country>' . '</Package>' . '</IntlRateRequest>'; that should allow both mods to correctly display the shipping rates no mateer whether a customer with a Puerto Rico shipping address has chosen the US or PR as the country... the is working fine for me...should be fine for you too unless i missed an edit that I hacked into my shipping module files...let me know if it works for you...if you have any problems I will check the edits listed above with what I have done...the USPS mod was a little trickier to edit because I have the USPS methods contrib added to it...
  2. bopper

    UPS, USPS Puerto rico

    here is the USP response to my query...and my response to theirs... In other words piss off eh? lol...Just find it weird that USPS considers Puerto Rico as a "state" or more to the point, a part of the US country zone and UPS treats it as a separate country. You know, many folks use the OS Commerce open source store scripts and it might be to your advantage to make your stuff work with them. I have read their forums and I am not the only one complaining about this problem. Bottom line is that if someone sets up an account with Puerto Rico in the US zone then the USPS rates show and the UPS rates don't. Bad for business, yours and mine. I will have to hack the script to make your funky sh1t work. On a side note, having to wait 2 weeks to get a response from you guys doesn't win you any points either. Aplogy accepted if it was sincere, which I doubt...lol Sincerely, Ryan ects@ups.com wrote: >Please include the following line in all replies. >Email Reference Number: NT20050221_0000000347 > >Dear Ryan: > >Thank you for your interest in UPS. We have received your e-mail >requesting technical support. > >Ryan, I apologize for any inconvenience that this issue has caused. As >you are using a Service Provider's software, please contact your Provider >for further support on this issue. Service Providers are web developers, >system integrators, and IT consultants who offer customized services and >can deliver integration services to help you implement UPS OnLine? Tools. >UPS provides the information required by a developer to create an >application that can interface with our systems and gather data. The end >user application, such as the UPS components of your shopping cart, are >completely the Service Provider's creation. I apologize if this causes >any inconvenience. >
  3. bopper

    UPS, USPS Puerto rico

    I wrote to UPS...will let you know what they say... bopp out
  4. new problem on the checkout_shipping.php page...can't find this function! bopp Fatal error: Call to undefined function: tep_get_address_book_list()
  5. never mind...this is a conflict with PWA .80 (no account purchase contribution) which I'm trying to put on top of 510c...still can't find that function tho...lol bopp
  6. installed510c and get this error now going thru checkout Fatal error: Call to undefined function: tep_get_address_book_list() in ***/catalognew/checkout_shipping.php on line 277 I cannot find that function in any version...have searched support and don't find that function anywhere...???? bopp code line is: <td class="main" valign="top"><?php echo tep_draw_form('update_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'update'); ?><?php echo tep_get_address_book_list('shipto', $sendto, $customer_id, 'onChange="this.form.submit();"'); ?></form><BR><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); //rmh addr-enhancer ?></td> code line in std osc 2.2 is: <td class="main" valign="top"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
  7. reinstalled 2.2 and .80 works now...go figure...
  8. that code is: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } pwa works okay if i comment that out but don't want to do that... bopp
  9. Howdy Just installed .80 on a clean 2.2 install...cannot get the default page to display. get the error: Fatal error: Call to a member function on a non-object in /home2/linen02/linencloset-www/catalognew/includes/header.php on line 51 perhaps because the catalog directory/folder is catalognew? I've run .70 on another site without problems... thanx, bopp
×