AbanteCart Community

Shopping Cart Operations => Support => Extension Support => Topic started by: llegrand on January 07, 2015, 02:47:03 PM

Title: UPS extension v1.2 issue
Post by: llegrand on January 07, 2015, 02:47:03 PM
Hi,  In testing 1.2,  I cannot enable the UPS extension -  I am using the same credentials that are on a production site running 1.1.9 without issue

this is what it's saying -
Error: cannot to load config.xml of extension shipping. in /home/abextens/public_html/demo2/core/helper/utils.php on line 527
 warning:  AbanteCart core v.1.2.0 Invalid argument supplied for foreach() in <b>/home/abextens/public_html/demo2/extensions/default_ups/admin/view/default/template/pages/extension/default_ups.tpl</b> on line <b>39</b>

I did get the USPS extension to work on 1.2 without problems,  Just the UPS for now.

Thanks
Lee

Title: Re: UPS extension v1.2 issue
Post by: yonghan on January 07, 2015, 11:29:20 PM
Please go to this file: https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_ups/storefront/model/extension/default_ups.php (https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_ups/storefront/model/extension/default_ups.php)

change line 376

Code: [Select]
if (!$this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
to

Code: [Select]
if ($this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
Hope it helps,
Handoyo
Title: Re: UPS extension v1.2 issue
Post by: Ollie on January 22, 2015, 04:08:27 PM
These two lines of code look the same to me. Am I missing something? It looks like it's the same I have on line 527 and mine is working fine:

if (!$this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
Title: Re: UPS extension v1.2 issue
Post by: llegrand on January 22, 2015, 05:29:04 PM
there is one small difference -  at the beginning of the first code line  you see,  if (!$this....

the second one is ($this....

the difference is the ! before $this




Title: Re: UPS extension v1.2 issue
Post by: Ollie on January 23, 2015, 07:41:52 PM
there is one small difference -  at the beginning of the first code line  you see,  if (!$this....
the second one is ($this....
the difference is the ! before $this
You're right. :-)