News:

AbanteCart v1.4.2 is released.

Main Menu

UPS extension v1.2 issue

Started by llegrand, January 07, 2015, 02:47:03 PM

Previous topic - Next topic

llegrand

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


yonghan

Please go to this file: https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_ups/storefront/model/extension/default_ups.php

change line 376

if (!$this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {

to

if ($this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {

Hope it helps,
Handoyo

Ollie

#2
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)) {
Assistive technologies for people with special needs:
https://assistech.com/store/

llegrand

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





Ollie

Quote from: 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
You're right. :-)
Assistive technologies for people with special needs:
https://assistech.com/store/

Forum Rules Code of conduct
AbanteCart.com 2010 -