X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   UPS shipping activation (https://forum.x-cart.com/showthread.php?t=68790)

poloplata 03-07-2014 04:25 PM

UPS shipping activation
 
I cannot find any help for UPS shipping activation. I have added all the settings but there are no shipping methods showing in the cart. Can you please provide instructions.

Kirill 03-10-2014 07:33 AM

Re: UPS shipping activation
 
Hi,

Could you, please, clarify. You have entered all the UPS credentials on the Store Setup => Shipping => UPS settings tab and still see no shipping estimates on the checkout?

Does the "Test UPS rates calculation" go fine?

poloplata 07-18-2014 02:59 PM

Re: UPS shipping activation
 
No the test does not work

Error while connecting to the UPS server (https://wwwcie.ups.com/ups.app/xml)

tony_sologubov 07-21-2014 04:54 AM

Re: UPS shipping activation
 
Could you please send us a snapshot of the error you are getting?

Thank you.

poloplata 07-21-2014 11:22 AM

Re: UPS shipping activation
 
Input data

Array
(
[srcAddress] => Array
(
[city] => Oakdale
[state] => CA
[country] => US
[zipcode] => 95361
)

[dstAddress] => Array
(
[city] => fresno
[state] => CA
[country] => US
[zipcode] => 93711
)

[cod_enabled] =>
[packages] => Array
(
[0] => Array
(
[weight] => 0.1
[subtotal] => 100
)

)

)
Error while connecting to the UPS server (https://wwwcie.ups.com/ups.app/xml)

Communication log

Array
(
[post URL] => https://wwwcie.ups.com/ups.app/xml
[request] => <?xml version='1.0'?>
<AccessRequest xml:lang='en-US'>
<AccessLicenseNumber>xxx</AccessLicenseNumber>
<UserId>xxx</UserId>
<Password>xxx</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>01</Code>
</PickupType>
<CustomerClassification>
<Code>01</Code>
</CustomerClassification>
<Shipment>
<Shipper>
<ShipperNumber>xxx</ShipperNumber>
<Address>
<City>Oakdale</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>95361</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipFrom>
<Address>
<City>Oakdale</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>95361</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipFrom>
<ShipTo>
<Address>
<City>fresno</City>
<StateProvinceCode>CA</StateProvinceCode>
<PostalCode>93711</PostalCode>
<CountryCode>US</CountryCode>

</Address>
</ShipTo>

<Package>
<PackagingType>
<Code>00</Code>
</PackagingType>
<PackageWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>0.1</Weight>
</PackageWeight>
<Dimensions>
<UnitOfMeasurement>
<Code>IN</Code>
</UnitOfMeasurement>
<Length>10</Length>
<Width>10</Width>
<Height>10</Height>
</Dimensions>


</Package>


</Shipment>
</RatingServiceSelectionRequest>
[response] =>
)

poloplata 07-22-2014 12:58 PM

Re: UPS shipping activation
 
we did get this working - FYI

it has to do with curl verifying the ssl peer. or validating that we were sending data to the endpoint we intended to (ups)

pgailinas 07-22-2014 07:44 PM

Re: UPS shipping activation
 
So can you elaborate on your solution as I experience the same problem with my installation. Thanks!!

NHC-Adam 07-30-2014 10:21 AM

Re: UPS shipping activation
 
How do you fix this?

Please explain thank you.

I am having the same problem with my store

tony_sologubov 07-30-2014 10:35 AM

Re: UPS shipping activation
 
Guys, do you have any errors in the <X-Cart 5>/var/log/ folder?

Thank you.

NHC-Adam 07-30-2014 10:45 AM

Re: UPS shipping activation
 
1 Attachment(s)
Quote:

Originally Posted by tony_sologubov
Guys, do you have any errors in the <X-Cart 5>/var/log/ folder?

Thank you.


Yes

NHC-Adam 07-30-2014 10:53 AM

Re: UPS shipping activation
 
1 Attachment(s)
I should've probably mentioned this before but in the admin area UPS settings I cannot turn off test mode either.

tony_sologubov 08-01-2014 01:46 AM

Re: UPS shipping activation
 
Hi!

I just checked your web-store and your UPS seems to work OK.
http://awesomescreenshot.com/0ff38twx50

Could you please let me know what problem exactly you are experiencing?

Thank you.

tony_sologubov 08-01-2014 01:58 AM

Re: UPS shipping activation
 
Quote:

Originally Posted by NHC-Adam
I should've probably mentioned this before but in the admin area UPS settings I cannot turn off test mode either.


This problem is a bug and it will be fixed in 5.1.5. Now you can either add the following code:

PHP Code:

/**
     * Update settings
     *
     * @return void
     */
    
public function doActionUpdate()
    {
        
$postedData = \XLite\Core\Request::getInstance()->getData();
        
$options    = \XLite\Core\Database::getRepo('\XLite\Model\Config')
            ->
findBy(array('category' => $this->getOptionsCategory(), 'type' => 'checkbox'));

        foreach (
$options as $key => $option) {

            
$name $option->getName();

            if (!isset(
$postedData[$name])) {
                \
XLite\Core\Request::getInstance()->{$name} = '';
            }
        }

        
parent::doActionUpdate();
    } 


after this one:

Code:

        if ($country && $country->getCurrency()) {
            $currencyCode = $country->getCurrency()->getCode();
        }
 
        return $currencyCode;
    }


in the classes/XLite/Module/XC/UPS/Controller/Admin/Ups.php file and then redeploy the store. It will make checkbox working properly.

Or, you can simply turn off the test mode by running following MySQL query:

Code:

UPDATE xlite_config SET value="N" WHERE category="XC\\UPS" AND name="test_mode";

NHC-Adam 08-01-2014 05:22 AM

Re: UPS shipping activation
 
Quote:

Originally Posted by tony_sologubov
Hi!

I just checked your web-store and your UPS seems to work OK.
http://awesomescreenshot.com/0ff38twx50

Could you please let me know what problem exactly you are experiencing?

Thank you.


On Checkout (Customer End) it doesn't update the shipping options after I enter or change the shipping address.

tony_sologubov 08-05-2014 03:53 AM

Re: UPS shipping activation
 
Hi!

It looks like all your products are marked as non-shippable and that is why the shipping methods/shipping address sections do not appear on the checkout. Is that the problem you are trying to resolve or I am still missing the point?

Tony.


Quote:

Originally Posted by NHC-Adam
On Checkout (Customer End) it doesn't update the shipping options after I enter or change the shipping address.



All times are GMT -8. The time now is 07:16 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.