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)

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:17 PM.

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