Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

UPS shipping activation

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 07-30-2014, 10:53 AM
 
NHC-Adam NHC-Adam is offline
 

Member
  
Join Date: Mar 2013
Posts: 12
 

Default Re: UPS shipping activation

I should've probably mentioned this before but in the admin area UPS settings I cannot turn off test mode either.
Attached Thumbnails
Click image for larger version

Name:	test_mode_on.png
Views:	331
Size:	1.7 KB
ID:	3852  
__________________
X-Cart version 4.6.4

www.nassauhobbycenter.com
Reply With Quote
  #12  
Old 08-01-2014, 01:46 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #13  
Old 08-01-2014, 01:58 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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";
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #14  
Old 08-01-2014, 05:22 AM
 
NHC-Adam NHC-Adam is offline
 

Member
  
Join Date: Mar 2013
Posts: 12
 

Default 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.
__________________
X-Cart version 4.6.4

www.nassauhobbycenter.com
Reply With Quote
  #15  
Old 08-05-2014, 03:53 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:14 AM.

   

 
X-Cart forums © 2001-2020