Comments (5)
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.
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.
from shipstation-connect.
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.
Hey David. What's that SS complaint look like? Any specific errors you can throw our way?
from shipstation-connect.
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)
- Invalid Discount price when >= $1000 HOT 1
- Unable to connect to the marketplace! Error: Invalid XML HOT 2
- Failing. XML is invalid. User fields hidden. HOT 1
- Question: Shipping Providers/Prices HOT 1
- Shipped Status for GLS HOT 7
- Push historic orders to shipstation HOT 3
- Orders not passing to Shipstation HOT 5
- Error with orders that have no address HOT 8
- ?action=export not returning all orders HOT 7
- Exported orders should respect XML Schema for Validating Order Information
- Craft 4? HOT 8
- Orders recalculated after Shipstation update? HOT 11
- Exclude Adjustments from XML HOT 5
- Cant get orders to show up in ship station HOT 1
- FR: ability to set phone for addresses HOT 1
- Does XML Pagination Affect Import? HOT 5
- No shipping info coming through shipstation connect. HOT 5
- Getting 403 connecting to Custom Store on Laravel Forge HOT 7
- Processing Short Numbers Only? HOT 2
- Craft 5 Compatibility HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shipstation-connect.