Giter VIP home page Giter VIP logo

Comments (5)

RitterKnightCreative avatar RitterKnightCreative commented on August 26, 2024

Did some more debugging, client is offering free shipping on some orders and I think this method is breaking it. Commented out line 97 and 101, immediately brought in the order.

   public function shippingMethod(\SimpleXMLElement $order_xml, $order) {
        $shippingMethod = null;
      //  if (!is_null($shippingMethod) || ($shippingMethod = $order->getShippingMethod()->handle)) {
            $this->addChildWithCDATA($order_xml, 'ShippingMethod', $shippingMethod);
        //}
    }

from shipstation-connect.

sjcallender avatar sjcallender commented on August 26, 2024

More info. The shipping method in Craft is blank, which is odd, but it happened and needs to be accounted for or given a better error message.

image

from shipstation-connect.

RitterKnightCreative avatar RitterKnightCreative commented on August 26, 2024

Reopening.

Had an order come in last night with no shipping method attached, SS is complaining. (Trying to get to the bottom of that, but the plugin shouldn't error out regardless)

from shipstation-connect.

sjcallender avatar sjcallender commented on August 26, 2024

Hey David. What's that SS complaint look like? Any specific errors you can throw our way?

from shipstation-connect.

RitterKnightCreative avatar RitterKnightCreative commented on August 26, 2024

Sorry... you bet, here's the trace from the log:

2018-10-22 08:58:21 [-][-][-][error][yii\base\ErrorException:8] yii\base\ErrorException: Trying to get property of non-object in /home/client/site/vendor/fostercommerce/shipstationconnect/src/services/Xml.php:122
#1 /home/client/site/vendor/fostercommerce/shipstationconnect/src/services/Xml.php(122): craft\web\ErrorHandler->handleError(8, 'Trying to get p...', '/home/client/site...', 122, Array)
#2 /home/client/site/vendor/fostercommerce/shipstationconnect/src/services/Xml.php(90): fostercommerce\shipstationconnect\services\Xml->shippingMethod(Object(SimpleXMLElement), Object(craft\commerce\elements\Order))
#3 /home/client/site/vendor/fostercommerce/shipstationconnect/src/services/Xml.php(32): fostercommerce\shipstationconnect\services\Xml->order(Object(SimpleXMLElement), Object(craft\commerce\elements\Order))
#4 /home/client/site/vendor/fostercommerce/shipstationconnect/src/controllers/OrdersController.php(113): fostercommerce\shipstationconnect\services\Xml->orders(Object(SimpleXMLElement), Array)
#5 /home/client/site/vendor/fostercommerce/shipstationconnect/src/controllers/OrdersController.php(39): fostercommerce\shipstationconnect\controllers\OrdersController->getOrders()
#6 [internal function]: fostercommerce\shipstationconnect\controllers\OrdersController->actionProcess()

from shipstation-connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.