prunly
Forum Replies Created
-
Hi Grzegorz,
Below is the XML API request/response, followed by the corresponding OAuth request/response. We are only using Ground method.
<?xml version="1.0"?> <RatingServiceSelectionRequest xml:lang="en-US"> <Request> <TransactionReference/> <RequestAction>Rate</RequestAction> <RequestOption>Shop</RequestOption> </Request> <PickupType> <Code>01</Code> <Description/> </PickupType> <Shipment> <Service> <Code/> <Description/> </Service> <Shipper> <ShipperNumber>3W438F</ShipperNumber> <Address> <AddressLine1>874 Main Street</AddressLine1> <City>Osterville</City> <StateProvinceCode>MA</StateProvinceCode> <PostalCode>02655</PostalCode> <CountryCode>US</CountryCode> </Address> </Shipper> <ShipFrom> <Address> <AddressLine1>874 Main Street</AddressLine1> <City>Osterville</City> <StateProvinceCode>MA</StateProvinceCode> <PostalCode>02655</PostalCode> <CountryCode>US</CountryCode> </Address> </ShipFrom> <ShipTo> <Name/> <CompanyName/> <AttentionName/> <Address> <AddressLine1>2707 San Luis Ct</AddressLine1> <City>Naperville</City> <StateProvinceCode>IL</StateProvinceCode> <PostalCode>60565</PostalCode> <CountryCode>US</CountryCode> </Address> </ShipTo> <RateInformation> <NegotiatedRatesIndicator/> </RateInformation> <Package> <PackagingType> <Code>02</Code> <Description/> </PackagingType> <PackageWeight> <Weight>11</Weight> <UnitOfMeasurement> <Code>LBS</Code> <Description/> </UnitOfMeasurement> </PackageWeight> <PackageServiceOptions/> </Package> <ShipmentServiceOptions/> </Shipment> </RatingServiceSelectionRequest> ----- <?xml version="1.0"?> <RatingServiceSelectionResponse> <Response> <ResponseStatusCode>1</ResponseStatusCode> <ResponseStatusDescription>Success</ResponseStatusDescription> </Response> <RatedShipment> <Service> <Code>01</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>216.62</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>216.62</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery> <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>216.62</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>216.62</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>90.11</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> <RatedShipment> <Service> <Code>02</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>90.87</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>90.87</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>90.87</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>90.87</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>44.23</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> <RatedShipment> <Service> <Code>03</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>26.28</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>26.28</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery/> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>26.28</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>26.28</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>16.23</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> <RatedShipment> <Service> <Code>12</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>63.60</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>63.60</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>63.60</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>63.60</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>35.52</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> <RatedShipment> <Service> <Code>13</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>188.33</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>188.33</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery> <ScheduledDeliveryTime/> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>188.33</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>188.33</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>78.66</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> <RatedShipment> <Service> <Code>14</Code> </Service> <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> <RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>252.02</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>252.02</MonetaryValue> </TotalCharges> <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery> <ScheduledDeliveryTime>8:00 A.M.</ScheduledDeliveryTime> <RatedPackage> <TransportationCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>252.02</MonetaryValue> </TransportationCharges> <ServiceOptionsCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>0.00</MonetaryValue> </ServiceOptionsCharges> <TotalCharges> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>252.02</MonetaryValue> </TotalCharges> <Weight>11.0</Weight> <BillingWeight> <UnitOfMeasurement> <Code>LBS</Code> </UnitOfMeasurement> <Weight>11.0</Weight> </BillingWeight> </RatedPackage> <NegotiatedRates> <NetSummaryCharges> <GrandTotal> <CurrencyCode>USD</CurrencyCode> <MonetaryValue>250.30</MonetaryValue> </GrandTotal> </NetSummaryCharges> </NegotiatedRates> </RatedShipment> </RatingServiceSelectionResponse>OAuth Request/Response
OAUTH REQUEST { "RateRequest": { "PickupType": { "Code": "01" }, "Shipment": { "Service": [], "ShipFrom": { "Address": { "AddressLine1": "874 Main Street", "City": "Osterville", "CountryCode": "US", "PostalCode": "02655", "StateProvinceCode": "MA" } }, "ShipTo": { "Address": { "City": "Naperville", "CountryCode": "US", "PostalCode": "60565", "StateProvinceCode": "IL" } }, "Shipper": { "Address": { "AddressLine1": "874 Main Street", "City": "Osterville", "CountryCode": "US", "PostalCode": "02655", "StateProvinceCode": "MA" }, "ShipperNumber": "3W438F" }, "RateInformation": { "NegotiatedRatesIndicator": "1" }, "Package": [ { "PackageWeight": { "UnitOfMeasurement": { "Code": "LBS" }, "Weight": "11" }, "PackagingType": { "Code": "02" } } ] } } } ---- { "RateResponse": { "Response": { "ResponseStatus": { "Code": "1", "Description": "Success" }, "Alert": [ { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" } ], "TransactionReference": { "CustomerContext": "Octolize Plugin", "TransactionIdentifier": "xwssoat269p5jLj54j1nvK" } }, "RatedShipment": [ { "Service": { "Code": "01", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "209.72" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "209.72" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "1", "DeliveryByTime": "10:30 A.M." }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "209.72" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "177.73" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "31.99" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "209.72" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "02", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "83.97" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "83.97" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "2" }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "83.97" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "71.16" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "12.81" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "83.97" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "03", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "20.21" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "20.21" }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "20.21" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "17.50" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "2.71" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "20.21" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "12", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "56.70" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "56.70" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "3" }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "56.70" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "48.05" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "8.65" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "56.70" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "13", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "181.43" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "181.43" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "1", "DeliveryByTime": "3:00 P.M." }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "181.43" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "153.75" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "27.68" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "181.43" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "14", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "245.12" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "245.12" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "1", "DeliveryByTime": "8:00 A.M." }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "245.12" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "207.73" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "37.39" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "245.12" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } }, { "Service": { "Code": "59", "Description": "" }, "RatedShipmentAlert": { "Code": "110971", "Description": "Your invoice may vary from the displayed reference rates" }, "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" }, "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "92.95" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "92.95" }, "GuaranteedDelivery": { "BusinessDaysInTransit": "2", "DeliveryByTime": "10:30 A.M." }, "RatedPackage": { "TransportationCharges": { "CurrencyCode": "USD", "MonetaryValue": "92.95" }, "BaseServiceCharge": { "CurrencyCode": "USD", "MonetaryValue": "78.77" }, "ServiceOptionsCharges": { "CurrencyCode": "USD", "MonetaryValue": "0.00" }, "ItemizedCharges": { "Code": "375", "CurrencyCode": "USD", "MonetaryValue": "14.18" }, "TotalCharges": { "CurrencyCode": "USD", "MonetaryValue": "92.95" }, "Weight": "11.0", "BillingWeight": { "UnitOfMeasurement": { "Code": "LBS", "Description": "Pounds" }, "Weight": "11.0" } } } ] } }Thank you for looking into this!
Forum: Plugins
In reply to: [Weather Atlas Widget] City ShortcodeThe ID for Tonasket, WA is 2392011.
I was having the same problem and figured out that if you go to weather-us.com and find your city, the ID can be found in the source code.Search the source code for weather_cookie and you will find the ID next to it. Hope this helps.
Cookies.set(‘weather_cookie’,’2392011|250|55|en’…
Forum: Plugins
In reply to: [Awesome Weather Widget] Any way to convert the wind speed to kph?Excellent work, thank you for sharing @oxxyfx.
I needed to convert from m/s to mph, so by expanding on your code I was able to achieve that with the snippet below.
// change m/s to mph add_filter('awesome_weather_wind_speed_text', 'hvrcf_awesome_weather_wind_speed_text'); function hvrcf_awesome_weather_wind_speed_text() { return $wind_speed_text = " mph"; } add_filter('awesome_weather_wind_speed', 'hvrcf_awesome_weather_wind_speed'); function hvrcf_awesome_weather_wind_speed( $val ) { return $wind_speed = round ( $val * 2.237 ); // thanks Google }I found some others that were looking for this conversion but their topics were closed to new replies. I hope this helps anyone else who is looking.
Forum: Plugins
In reply to: [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Php errors@alriksson I can confirm that this function has been rewritten to fix this error in Yoast 14.0.2
Forum: Plugins
In reply to: [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Php errorsSame. To fix the error I’ve edited line 27 in the file robots-helper.php so that it checks for a valid array before trying to look in it.
So line 27:
if ( in_array( 'noindex', $presentation->robots, true ) ) {Is changed to:
if ( is_array($presentation->robots) && in_array( 'noindex', $presentation->robots, true ) ) {Not sure what other ramifications this might have. I’m sure it will be addressed by the Yoast team quickly. In any case you can always roll back to an earlier version.
Forum: Plugins
In reply to: [Easy Heads Up Bar] Not Working with Current WPI just came into this problem and fixed it by editing the plugin file located in wp-content/plugins/easy-heads-up-bar/lib/ehb-frontend.php
I changed line 24:
$bar_array = "";To this:
$bar_array = array();Of course you should never edit plugin files as your changes will be overwritten with any future plugin updates. However, since it’s been a couple of years since this plugin has issued an update, I think you will be safe. And hopefully this bug will be fixed if any updates are rolled out.
As you can see the problem is that the type of variable is cast as a string, but it is used as an array later in the code. Interstingly enough, this bug only came to light when I moved my site to a new server. This bug must only affect certain PHP versions and/or server configurations.
Forum: Plugins
In reply to: [WooCommerce] Automatically add Sale product to specific category@vbptrin I found this plugin on GitHub that may fit your needs. Since this plugin is not part of the WordPress plugin directory you should vet the code and author carefully and backup your website files and database before installation. Please note – I did not write this plugin.
https://github.com/jurajk/WooCommerce-Sale-CategoryForum: Plugins
In reply to: [WooCommerce - Gift Cards] Gift card emails not being sentI think the developer took care of this with the most recent updates. I was having this issue until I updated both the free and paid version of the plugin just now.
Forum: Plugins
In reply to: [Quick Restaurant Menu] Get Rid of Space between menu itemsThe default value is 30px on top and bottom so if you want to keep some spacing you could try something like this:
.erm_product { margin: 15px 0; }If you want to get rid of all space between menu items use this:
.erm_product { margin: 0; }Forum: Plugins
In reply to: [Quick Restaurant Menu] prices and descriptions not savingThanks Alejandro, this appears to have done the trick! I am very glad because your plugin is by far the best menu management plugin on WordPress as it makes it very easy for non-technical clients to keep their menus up to date.
Thank you for sharing with the community. This issue is resolved.
Forum: Plugins
In reply to: [Quick Restaurant Menu] prices and descriptions not savingHi Ale,
The AJAX calls seem to say it is successful but the data is not being sent to the database correctly.
Please see the following screencast for ajax debug and database info:
https://youtu.be/KQQyutwyC6oI set up an error_log() call in ajax-functions.php in function erm_update_menu_item() on line 44 – just before wp_send_json_success() to test $_POST data:
error_log(print_r($_POST,true));It looks like the function erm_update_menu_item() is fired three times per menu item, but the order isn’t always the same. In a test with error log on, the title and description were saved OK, but the price did not save on the next item. Not sure if this is helpful or not.
Screenshot of items:
http://prunly.commwebdev.com/erm.jpgSUCCESSFUL ENTRY:
[15-Aug-2016 17:28:18 UTC] Array ( [action] => erm_update_menu_item [post_id] => 288 [title] => Frosties [content] => [image_id] => 0 [visible] => true ) [15-Aug-2016 17:28:18 UTC] Array ( [action] => erm_update_menu_item [post_id] => 288 [title] => Frosties [content] => <p>Theeeeeeeeeey're full of sugar! I mean, great.</p> [image_id] => 0 [visible] => true ) [15-Aug-2016 17:28:18 UTC] Array ( [action] => erm_update_menu_item [post_id] => 288 [title] => Frosties [content] => <p>Theeeeeeeeeey're full of sugar! I mean, great.</p> [image_id] => 0 [visible] => true [prices] => Array ( [0] => Array ( [name] => bowl [value] => 7.99 ) ) )FAILED ENTRY:
[15-Aug-2016 17:27:52 UTC] Array ( [action] => erm_update_menu_item [post_id] => 284 [title] => Coco Pops [content] => <p>Chocolatey, yum!</p> [image_id] => 0 [visible] => true [prices] => Array ( [0] => Array ( [name] => bowl [value] => 7.99 ) ) ) [15-Aug-2016 17:27:52 UTC] Array ( [action] => erm_update_menu_item [post_id] => 284 [title] => Coco Pops [content] => [image_id] => 0 [visible] => true ) [15-Aug-2016 17:27:52 UTC] Array ( [action] => erm_update_menu_item [post_id] => 284 [title] => Coco Pops [content] => <p>Chocolatey, yum!</p> [image_id] => 0 [visible] => true )Forum: Plugins
In reply to: [Quick Restaurant Menu] prices and descriptions not savingHi Alejandro,
I work with tifsy2 and have created a screencast of our issue. This is on a clean install of WordPress 4.5.3 (so clean I had to refresh the permalinks to get the menu to show up!). Twenty Sixteen Theme and no plugins installed except for yours.
In the admin, all fields display after input. However, when you look at the frontend menu page, some fields are gone. Then when you click update in the admin, the same fields disappear in the backend.
I’ve recreated this issue a bunch of times on multiple computers with multiple browsers. It happens when we create a new menu. It happens when we edit an existing menu. Sometimes old items will lose their price or description. Sometimes it happens to new items. The problem is very arbitrary. You never know what information will disappear.
The only thing I can think of is an encoding issue. We use utf8mb encoding so our database collation is utf8mb4_unicode_ci and our wp-config file contains the line:
define(‘DB_CHARSET’, ‘utf8mb4’);Please let me know if I can provide you with any further information.
Forum: Themes and Templates
In reply to: [Sento] How do I upload images to the slider?For my site I used images sized to 1460px x 588px in height but the demo uses 1500px x 350px. For better assistance you should open a separate support thread so the developer can give you the best guidance.
Forum: Themes and Templates
In reply to: [Sento] Errors on 404 pageHi gillianwilliams, this thread has been marked resolved. Please open a new thread for your problem. Thanks!
Forum: Themes and Templates
In reply to: [Sento] Errors on 404 pageThanks ThinkUpThemes. This resolved it. Great theme and nice support!