Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New UPS XML Shipping Module available


Recommended Posts

I have tried with and without the log file, but nothing done...
If you download the log with ftp and open it with a text editor you will see the xml that is sent out and received back from UPS. If you look at the response of UPS it might give a clue as to what the problem is instead of the uninformative "This module supports only xpci version 1.0001 of the UPS Rates Interface".

 

Don't post the xml that is sent out with your user name and password for UPS still in it...

Link to comment
Share on other sites

Here is my log file:

------------------------------------------
DATE AND TIME: 2005-04-01 17:12:38
UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit
UPS REQUEST using exec(): <?xml version="1.0"?>
<accessrequest xml:lang="en-US">
  <accesslicensenumber>xxxxxxxxxxxxxxx</accesslicensenumber>
  <userid>xxxxxxxxxxxxx</userid>
  <password>xxxxxxxxxxxx</password>
</accessrequest>
<?xml version="1.0"?>
<timeintransitrequest xml:lang="en-US">
  <request>
      <transactionreference>
          <customercontext>Time in Transit</customercontext>
          <xpciversion>1.0001</xpciversion>
      </transactionreference>
      <requestaction>TimeInTransit</requestaction>
  </request>
  <transitfrom>
      <addressartifactformat>
          <politicaldivision2>Paris</politicaldivision2>
          <politicaldivision1>FR</politicaldivision1>
          <countrycode>FR</countrycode>
          <postcodeprimarylow>75010</postcodeprimarylow>
      </addressartifactformat>
  </transitfrom>
  <transitto>
      <addressartifactformat>
          <politicaldivision2>Paris</politicaldivision2>
          <politicaldivision1>Ile de France</politicaldivision1>
          <countrycode>FR</countrycode>
          <postcodeprimarylow>75010</postcodeprimarylow>
          <postcodeprimaryhigh>75010</postcodeprimaryhigh>
      </addressartifactformat>
  </transitto>
  <pickupdate>20050402</pickupdate>
  <shipmentweight>
      <unitofmeasurement>
          <code>KGS</code>
      </unitofmeasurement>
      <weight>10</weight>
  </shipmentweight>
  <invoicelinetotal>
      <currencycode>USD</currencycode>
      <monetaryvalue>100</monetaryvalue>
  </invoicelinetotal>
</timeintransitrequest>

Error from cURL using exec() since there is no $xmlResponse
UPS RESPONSE using exec(): 
------------------------------------------
Time in Transit: 0
------------------------------------------
DATE AND TIME: 2005-04-01 17:12:38
UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate
UPS REQUEST using exec(): <?xml version="1.0"?>
<accessrequest xml:lang="en-US">
  <accesslicensenumber>xxxxxxxxxxxxxxxx</accesslicensenumber>
  <userid>xxxxxxxxxxxxxx</userid>
  <password>xxxxxxxxxxx</password>
</accessrequest>
<?xml version="1.0"?>
<ratingserviceselectionrequest xml:lang="en-US">
  <request>
      <transactionreference>
          <customercontext>Rating and Service</customercontext>
          <xpciversion>1.0001</xpciversion>
      </transactionreference>
      <requestaction>Rate</requestaction>
      <requestoption>shop</requestoption>
  </request>
  <pickuptype>
      <code>06</code>
  </pickuptype>
  <shipment>
      <shipper>
          <address>
              <city>Paris</city>
              <stateprovincecode>FR</stateprovincecode>
              <countrycode>FR</countrycode>
              <postalcode>75010</postalcode>
          </address>
      </shipper>
      <shipto>
          <address>
              <city>Paris</city>
              <stateprovincecode>Ile de France</stateprovincecode>
              <countrycode>FR</countrycode>
              <postalcode>75010</postalcode>
<residentialaddressindicator/>
          </address>
      </shipto>
      <package>
          <packagingtype>
              <code>01</code>
          </packagingtype>
          <packageweight>
              <unitofmeasurement>
                  <code>KGS</code>
              </unitofmeasurement>
              <weight>22.5</weight>
          </packageweight>
          <packageserviceoptions>
              <insuredvalue>
                  <currencycode>EUR</currencycode>
                  <monetaryvalue>405</monetaryvalue>
              </insuredvalue>
          </packageserviceoptions>
      </package>
  </shipment>
  <customerclassification>
      <code>03</code>
  </customerclassification>
</ratingserviceselectionrequest>

Error from cURL using exec() since there is no $xmlResponse
UPS RESPONSE using exec(): 
------------------------------------------
DATE AND TIME: 2005-04-01 17:12:57
UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit
UPS REQUEST using exec(): <?xml version="1.0"?>
<accessrequest xml:lang="en-US">
  <accesslicensenumber>xxxxxxxx</accesslicensenumber>
  <userid>xxxxxxxxxxx</userid>
  <password>xxxxxxx</password>
</accessrequest>
<?xml version="1.0"?>
<timeintransitrequest xml:lang="en-US">
  <request>
      <transactionreference>
          <customercontext>Time in Transit</customercontext>
          <xpciversion>1.0001</xpciversion>
      </transactionreference>
      <requestaction>TimeInTransit</requestaction>
  </request>
  <transitfrom>
      <addressartifactformat>
          <politicaldivision2>Paris</politicaldivision2>
          <politicaldivision1>FR</politicaldivision1>
          <countrycode>FR</countrycode>
          <postcodeprimarylow>75010</postcodeprimarylow>
      </addressartifactformat>
  </transitfrom>
  <transitto>
      <addressartifactformat>
          <politicaldivision2>Paris</politicaldivision2>
          <politicaldivision1>Ile de France</politicaldivision1>
          <countrycode>FR</countrycode>
          <postcodeprimarylow>75010</postcodeprimarylow>
          <postcodeprimaryhigh>75010</postcodeprimaryhigh>
      </addressartifactformat>
  </transitto>
  <pickupdate>20050402</pickupdate>
  <shipmentweight>
      <unitofmeasurement>
          <code>KGS</code>
      </unitofmeasurement>
      <weight>10</weight>
  </shipmentweight>
  <invoicelinetotal>
      <currencycode>USD</currencycode>
      <monetaryvalue>100</monetaryvalue>
  </invoicelinetotal>
</timeintransitrequest>

Error from cURL using exec() since there is no $xmlResponse
UPS RESPONSE using exec(): 
------------------------------------------
Time in Transit: 0
------------------------------------------
DATE AND TIME: 2005-04-01 17:12:57
UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate
UPS REQUEST using exec(): <?xml version="1.0"?>
<accessrequest xml:lang="en-US">
  <accesslicensenumber>xxxxxxxxxxxxxxxx</accesslicensenumber>
  <userid>xxxxxxxxx</userid>
  <password>xxxxxxxxx</password>
</accessrequest>
<?xml version="1.0"?>
<ratingserviceselectionrequest xml:lang="en-US">
  <request>
      <transactionreference>
          <customercontext>Rating and Service</customercontext>
          <xpciversion>1.0001</xpciversion>
      </transactionreference>
      <requestaction>Rate</requestaction>
      <requestoption>shop</requestoption>
  </request>
  <pickuptype>
      <code>06</code>
  </pickuptype>
  <shipment>
      <shipper>
          <address>
              <city>Paris</city>
              <stateprovincecode>FR</stateprovincecode>
              <countrycode>FR</countrycode>
              <postalcode>75010</postalcode>
          </address>
      </shipper>
      <shipto>
          <address>
              <city>Paris</city>
              <stateprovincecode>Ile de France</stateprovincecode>
              <countrycode>FR</countrycode>
              <postalcode>75010</postalcode>
<residentialaddressindicator/>
          </address>
      </shipto>
      <package>
          <packagingtype>
              <code>01</code>
          </packagingtype>
          <packageweight>
              <unitofmeasurement>
                  <code>KGS</code>
              </unitofmeasurement>
              <weight>22.5</weight>
          </packageweight>
          <packageserviceoptions>
              <insuredvalue>
                  <currencycode>EUR</currencycode>
                  <monetaryvalue>405</monetaryvalue>
              </insuredvalue>
          </packageserviceoptions>
      </package>
  </shipment>
  <customerclassification>
      <code>03</code>
  </customerclassification>
</ratingserviceselectionrequest>

Error from cURL using exec() since there is no $xmlResponse
UPS RESPONSE using exec():

osCommerce 2.2 MS2 in 6 languages

TVA Intracomm

Numbers of visitors online

Who's online Enhancement

....

Link to comment
Share on other sites

A. Better not use exec(), you can't log the cURL errors then. It is more like a last resort that option.

B. You don't seem to get a UPS response, so most likely there is a problem with cURL.

C. The most likely problem with cURL is error 60. Look at around line 647 and uncomment that:

 

	// uncomment the next line if you get curl error 60: error setting certificate verify locations
       // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

I hope this helps.

Link to comment
Share on other sites

Hey All,

 

I have a couple quick (Hopefully) Items to ask. I browsed through most of the thread, and didn't see an answer for either.

 

I was able to sucessfully install this with no errors, and it appears to work with one glitch.

 

UPSXML is automatically adding 3lbs. to every order. I.E. if the item is .1 lbs, it shows 3.1lbs. If it is 10lbs. it shows 13lbs. I checked the admin config and didn't see what I could change that would correct this....

 

Also can someone suggest what to edit to remove the shown weight on the checkout_shipping page (after I get this corrected)?

 

Thanks in advance! :D

Steve K AKA - Knipper -

Link to comment
Share on other sites

UPSXML is automatically adding 3lbs. to every order.  I.E. if the item is .1 lbs, it shows 3.1lbs.  If it is 10lbs.  it shows 13lbs.  I checked the admin config and didn't see what I could change that would correct this....
That is an osC admin setting, see the knowledge base

 

Also can someone suggest what to edit to remove the shown weight on the checkout_shipping page (after I get this corrected)? 

Look in includes/modules/shipping/upsxml.php around line 228.

 

There it is (I think) you can mess with the weight shown:

                $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . $shipping_weight . ' ' . strtolower($this->unit_weight) . ' total)');

Link to comment
Share on other sites

A. Better not use exec(), you can't log the cURL errors then. It is more like a last resort that option.

B. You don't seem to get a UPS response, so most likely there is a problem with cURL.

C. The most likely problem with cURL is error 60. Look at around line 647 and uncomment that:

 

	// uncomment the next line if you get curl error 60: error setting certificate verify locations
       // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

I hope this helps.

My license is out of date, I have to open an account. I will be back with this problem. Thank you for your time....

 

Marc-Andr?

osCommerce 2.2 MS2 in 6 languages

TVA Intracomm

Numbers of visitors online

Who's online Enhancement

....

Link to comment
Share on other sites

UPSXML is automatically adding 3lbs. to every order.  I.E. if the item is .1 lbs, it shows 3.1lbs.  If it is 10lbs.  it shows 13lbs.  I checked the admin config and didn't see what I could change that would correct this....

Check in your catalog admin->Configuration->Shipping/Packaging->Tare Weight. It's probably set to 3. Set it to your packing material weight like .1 or .5. IE. you ship books that weigh 1lb each. Someone buys three books. 3x1lb=3lbs plus the packaging weight of .1lbs=3.1lbs

Link to comment
Share on other sites

Thanks JanZ... I was just coming back to post I found it in the admin configuration when I saw your post.

 

It is under Tare weight under shipping/packaging in the configure area. Also the Percentage increase for larger packages also effects the weight.

 

 

I'll see what I can figure out for the weight display.... I'd Also like to get rid of the time in transit.

 

Thanks. :thumbsup:

 

PS, yoo to pickup man! You posted the same time I was typing!

Edited by knipper

Steve K AKA - Knipper -

Link to comment
Share on other sites

  • 2 weeks later...

First off - Thanks Jan for being so on top of everything :thumbsup:

 

I had a complete look through the thread (this time) and didn't find an answer to my problems (or at least I wasn't smart enough to see one).

 

I seem to have a problem with the ready to ship option when adding/modifying a product, i.e. it doesn't seem to do anything. Is is supposed to remain checked once its selected?

 

I have a couple of products that need to ship in their own box and I've set up the packaging to the correct dimensions, made sure that the dimensions correlate to the catalog items, and checked the ready to ship box, but when I go to checkout it puts the item in a different box than the one it is supposed to.

 

If I put other items in the cart it puts everything in one box rather than splitting it up into separate boxes.

 

Other than this everything's working great. Hopefully I've just missed something simple.

 

Thanks for any help

 

Steve

Link to comment
Share on other sites

I have a couple of products that need to ship in their own box and I've set up the packaging to the correct dimensions, made sure that the dimensions correlate to the catalog items, and checked the ready to ship box, but when I go to checkout it puts the item in a different box than the one it is supposed to. 

 

If I put other items in the cart it puts everything in one box rather than splitting it up into separate boxes.

 

Steve

Check to make sure dimension support is enabled =1 disable=0

/catalog/includes/modules/shipping/upsxml.php Line 24

define('DIMENSIONS_SUPPORTED', 1);

Link to comment
Share on other sites

You might also want to take a look at the contribution section again. Michiel Heeringa uploaded version 1.1.5a on April 11 which has a fix for the checkbox in admin/categories.php:

The ready to ship checkbox isn't checked when it should. When it's checked and saved, the value is not saved.
Link to comment
Share on other sites

I followed the directions for changing the following line:

 

define('DIMENSIONS_SUPPORTED', 1); I changed this to:

 

define('DIMENSIONS_SUPPORTED', 0);

 

However, now I am getting the following error:

Fatal error: Call to undefined function: curl_init() in D:\home\site.com\catalog\includes\modules\shipping\upsxml.php on line 644

 

I was originally getting the TABLE-PACKAGING error stated above.

Link to comment
Share on other sites

I followed the directions for changing the following line:

 

define('DIMENSIONS_SUPPORTED', 1); I changed this to:

 

define('DIMENSIONS_SUPPORTED', 0);

 

However, now I am getting the following error:

Fatal error: Call to undefined function: curl_init() in D:\home\site.com\catalog\includes\modules\shipping\upsxml.php on line 644

 

I was originally getting the TABLE-PACKAGING error stated above.

 

you may want to double-check that you have curl support compiled into php... create a little page called phpinfo.php or something, and put this in it:

 

<?php

phpinfo();

?>

 

then access the page and you'll get a ton of info about your php compile... you're looking for a section at the top that tells what options it's compiled with, and you're looking for this within those options "--with-curl" i believe... then further down the page (just search for curl) you'll find a section dedicated to the curl settings... you should also check to see if over in the right section of that part, you can see OpenSSL as part of the package...

Richard Lindsey

Link to comment
Share on other sites

THIS is totally throwing me for a loop- I've installed the UPS XML 1.1.5 module and as a customer without an account moves through the process, they create the account and move to shipping, where I get:

 

 

This is currently the only shipping method available to use on this order.

 

United Parcel Service (XML)?

 

111210: The requested service is unavailable between the selected locations.

If you prefer to use ups as your shipping method, please contact etc...

 

 

HERE'S THE WEIRD PART- just refreshing the screen will then pull the rates fine! Also, logging out, then logging back in and starting through checkout again will also never see the above message again! Arg.

 

I enabled logging and here is what you get the first time:

DATE AND TIME: 2005-04-28 01:16:03

UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit

UPS REQUEST: <?xml version="1.0"?>

<AccessRequest xml:lang="en-US">

<AccessLicenseNumber>******</AccessLicenseNumber>

<UserId>*****</UserId>

<Password>*****</Password>

</AccessRequest>

<?xml version="1.0"?>

<TimeInTransitRequest xml:lang="en-US">

<Request>

<TransactionReference>

<CustomerContext>Time in Transit</CustomerContext>

<XpciVersion>1.0001</XpciVersion>

</TransactionReference>

<RequestAction>TimeInTransit</RequestAction>

</Request>

<TransitFrom>

<AddressArtifactFormat>

<PoliticalDivision2>Bend</PoliticalDivision2>

<PoliticalDivision1>OR</PoliticalDivision1>

<CountryCode>US</CountryCode>

<PostcodePrimaryLow>97702</PostcodePrimaryLow>

</AddressArtifactFormat>

</TransitFrom>

<TransitTo>

<AddressArtifactFormat>

<PoliticalDivision2></PoliticalDivision2>

<PoliticalDivision1></PoliticalDivision1>

<CountryCode></CountryCode>

<PostcodePrimaryLow></PostcodePrimaryLow>

<PostcodePrimaryHigh></PostcodePrimaryHigh>

</AddressArtifactFormat>

</TransitTo>

<PickupDate>20050429</PickupDate>

<ShipmentWeight>

<UnitOfMeasurement>

<Code>LBS</Code>

</UnitOfMeasurement>

<Weight>10</Weight>

</ShipmentWeight>

<InvoiceLineTotal>

<CurrencyCode>USD</CurrencyCode>

<MonetaryValue>100</MonetaryValue>

</InvoiceLineTotal>

</TimeInTransitRequest>

 

UPS RESPONSE: <?xml version="1.0"?><TimeInTransitResponse><Response><TransactionReference><CustomerContext>Time in Transit</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>0</ResponseStatusCode><ResponseStatusDescription>Failure</ResponseStatusDescription><Error><ErrorSeverity>Hard</ErrorSeverity><ErrorCode>270006</ErrorCode><ErrorDescription>Invalid Destination Country Code in TimeInTransit</ErrorDescription></Error></Response></TimeInTransitResponse>

------------------------------------------

Time in Transit: 0

 

So it's obviously bombing because no info is sent the first time- any suggestions where to look for an answer??? I am running pretty vanilla installation- CCGV, Header Tags, UPSXML, AIM 1.7 constributions is about it. AFAIK, I have no errors anywhere else in the store and everything else loks great- need to resolve this so i can go live!!!!

 

Thanks!

Zimbu

Link to comment
Share on other sites

So it's obviously bombing because no info is sent the first time- any suggestions where to look for an answer?
Very strange. The delivery information is from the class order and should be available right away. You can check that easily by adding two lines of code to the function quote around line 190:

    // class methods
   function quote($method = '') {
       global $HTTP_POST_VARS, $order, $shipping_weight, $shipping_num_boxes, $total_weight, $boxcount, $cart;
       // UPS purports that if the origin is left out, it defaults to the account's location. Yeah, right.
       $state = $order->delivery['state'];
       $zone_query = tep_db_query("select zone_code from " . TABLE_ZONES . " where zone_name = '" .  $order->delivery['state'] . "'");
echo '<pre>Order: ';
print_r($order);
       if (tep_db_num_rows($zone_query)) {

That will echo all the information of $order to the screen. Among that is the array "delivery".

I tried, but couldn't replicate your error.

Link to comment
Share on other sites

That will echo all the information of $order to the screen. Among that is the array "delivery".

 

 

Jan- thanks for the reply and the sanity check- I'm not duplicating some common problem here;)

 

I did as you suggested and looks similar to the upsxml.log- data is NOT being sent. PLEASE I hope you have an idea why or a suggestion on how I can correct? I installed the FedEx module out of desperation here and it suffers from the same failure, so it is not the UPS module and any suggestions you can make are very very appreciated! (even suggestions for phrases to google or search for!!!!)

 

Here is what I get:

 

 

Order: order Object

(

[info] => Array

(

[order_status] => 1

[currency] => USD

[currency_value] => 1.00000000

[payment_method] =>

[cc_type] =>

[cc_owner] =>

[cc_number] =>

[cc_expires] =>

[shipping_method] =>

[shipping_cost] =>

[subtotal] => 149.99

[tax] => 0

[tax_groups] => Array

(

[unknown tax rate] => 0

)

 

[comments] =>

[total] => 149.99

)

 

[totals] => Array

(

)

 

[products] => Array

(

[0] => Array

(

[qty] => 1

[name] => PaperHub

[model] => PH007

[tax] => 0

[tax_description] => Unknown tax rate

[price] => 149.9900

[final_price] => 149.99

[weight] => 5.50

[id] => 29

)

 

)

 

[customer] => Array

(

[firstname] => David

[lastname] => tester

[company] => Pressure Drop

[street_address] => 18038 South Abiqua

[suburb] =>

[city] => silverton

[postcode] => 97381

[state] => Oregon

[zone_id] => 49

[country] => Array

(

[id] => 223

[title] => United States

[iso_code_2] => US

[iso_code_3] => USA

)

 

[format_id] => 2

[telephone] => 541*******

[email_address] => *******@*****.com

)

 

[delivery] => Array

(

[firstname] =>

[lastname] =>

[company] =>

[street_address] =>

[suburb] =>

[city] =>

[postcode] =>

[state] =>

[zone_id] =>

[country] => Array

(

[id] =>

[title] =>

[iso_code_2] =>

[iso_code_3] =>

)

 

[country_id] =>

[format_id] =>

)

 

[content_type] => physical

[billing] => Array

(

[firstname] =>

[lastname] =>

[company] =>

[street_address] =>

[suburb] =>

[city] =>

[postcode] =>

[state] =>

[zone_id] =>

[country] => Array

(

[id] =>

[title] =>

[iso_code_2] =>

[iso_code_3] =>

)

 

[country_id] =>

[format_id] =>

)

 

)

Link to comment
Share on other sites

I hope you have an idea why or a suggestion on how I can correct?
Sorry, I have totally no clue what is going wrong here. In checkout_shipping one of the first things that is done is check whether the session variable sendto is set and if not it is filled with the customers own address. As you show, the customer address is known, but why the array delivery is not filled.... no clue. Perhaps it is better to ask about this in the "general" section.

Could it be that there are PHP errors (warnings) about sessions not being set because of header problems but you don't see it because warnings and/or errors are not echoed to the screen because of the server settings?

 

// if no shipping destination address was selected, use the customers own address as default
 if (!tep_session_is_registered('sendto')) {
   tep_session_register('sendto');
   $sendto = $customer_default_address_id;
 } else {
// verify the selected shipping address
   $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
   $check_address = tep_db_fetch_array($check_address_query);

   if ($check_address['total'] != '1') {
     $sendto = $customer_default_address_id;
     if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
   }
 }

Link to comment
Share on other sites

thank you again Jan- can you suggest how to either:

 

1) echo the php header errors so i can see them

 

2) suggest a way to force a refresh, such as done in post

http://www.oscommerce.com/forums/index.php?sho...ndpost&p=268967

 

with relevant text copied here:

 

? ? ?// sometimes the UPS server gets a little flakey. the block below will

? ? ?// retry every second (recursively calling the _upsGetQuote() method)

? ? ?// until a 'reasonable' (10) number of attempts have been made.

? ? ?if ($returnval == 'comm_error') {

? ? ? ? ?if ($retry < 10) {

? ? ? ? ? ?$retry++;

? ? ? ? ? ?sleep(1);

? ? ? ? ? ?$returnval = $this->_upsGetQuote();

? ? ? ? ?} else {

? ? ? ? ? ?return $returnval;

? ? ? ? ?}

? ? ?}

 

? ? ?$retry = 0;

? ? ?return $returnval;

? ?}

 

thanks!!!

David

Link to comment
Share on other sites

Hey there. i was wondering if anyone has had the same problem as me...

:'(

i installed the module and activated it in the admin. When i input all my data like key, username, password, and click "submit" the options that i choose (Next Day Air, 2nd Day Air, etc) aren't stored. When i go to check out, i have no options to choose. I go back to the admin and edit the module again and nothing is checked.

i check some options and update the module and edit it again and there are no options checked!

 

anyone know what might be causing this problem?

 

thanks,

Mark

Link to comment
Share on other sites

Nevernimd... i figured out that i had incorrectly modified my modules.php file. i found the error and now it works flawlessly!

 

thanks!

-Mark

 

Hey there. i was wondering if anyone has had the same problem as me...

:'(

i installed the module and activated it in the admin.  When i input all my data like key, username, password, and click "submit" the options that i choose (Next Day Air,  2nd Day Air, etc) aren't stored.  When i go to check out, i have no options to choose.  I go back to the admin and edit the module again and nothing is checked.

i check some options and update the module and edit it again and there are no options checked!

 

anyone know what might be causing this problem?

 

thanks,

Mark

Link to comment
Share on other sites

I am trying trying to change the look of the quotes.

So far I got it like this:

 

shipping.gif

 

All I have left to do is to make the "UPS Ground', UPS 3 day select" etc in bold, and I have spend half a day without any luck.

 

I figured I could place the </b> tag in the module upsxml.php here:

// START doing things differently 
 
               
  	 if (isset($this->servicesTimeintransit[$type])) {
  	 $eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
  	 $months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
  	 $eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
   $_type .= "</b> - <acronym title='Estimated Delivery Date'>Estimated delivery</acronym>: ".$eta_arrival_date . ", +/- 1 business day<font color='#FF0000'>*</font>";
   }
        //END of doing things differently:

 

but where do I place the <b> tag?

 

I tried adding it in the language file like:

define('MODULE_SHIPPING_UPSXML_SERVICE_CODE_US_ORIGIN_03', '<b>UPS Ground');

 

It works, but it makes the arrival date disappear and if I remove the </b> tag in the module file and do like this:

 

define('MODULE_SHIPPING_UPSXML_SERVICE_CODE_US_ORIGIN_03', '<b>UPS Ground</b>');

then the whole ground service disappears.

 

Any suggestions?

 

Regards

Mike

Link to comment
Share on other sites

Does this work?

// START doing things differently 
?
? ? ? ? ? ? ? ?
? ?	if (isset($this->servicesTimeintransit[$type])) {
? ?	$eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
? ?	$months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
? ?	$eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
// beginning change JanZ
? ?$_type = "<b>".$_type."</b>";
? ?$_type .= " - <acronym title='Estimated Delivery Date'>Estimated delivery</acronym>: ".$eta_arrival_date . ", +/- 1 business day<font color='#FF0000'>*</font>";
// end change JanZ
? ?}
? ? ? ? //END of doing things differently:

Link to comment
Share on other sites

by the way... At first I tried to do it like

UPS Ground - Delivery within: May 16, 2005 - May 18. 2005
just by adding a 2nd $eta_arrival_date+2, but of course it doesn't look at work days and weekends so it won't work.

 

We are shipping within 2 to 4 days so something like that would be the perfect solution.

Alternatively I set the ship delay to 3 days and added the +/- 1 business day....

 

Regards

Mike

Edited by MikeMike
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...