• Resolved silv3rh4wk

    (@silv3rh4wk)


    My client is using the free plugin from Canada Post to calculate shipping costs. All required information has been inputted into the plugin but I’m getting a php error come up and it says there is no shipping methods available. Everything is enabled. Please advice.

    Warning: Invalid argument supplied for foreach() in

    /home/ash1ey/public_html/site/wp-content/plugins/canada-post-woocommerce-shipping/canada-post-woocommerce-shipping.php on line 113

    https://wordpress.org/plugins/canada-post-woocommerce-shipping/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello silv3rh4wk,

    Looks like product dimension and weight is not configured.

    Thread Starter silv3rh4wk

    (@silv3rh4wk)

    Thanks… that fixed that part of things… i’m getting a shipping being calculated now.. but its created two new errors

    <?xml version=”1.0″ encoding=”UTF-8″?> <mailing-scenario xmlns=”http://www.canadapost.ca/ws/ship/rate-v3″&gt; <parcel-characteristics> <weight>1.36</weight> </parcel-characteristics> <origin-postal-code>A1N3G7</origin-postal-code> <quote-type>counter</quote-type> <destination> <domestic> <postal-code>A5A4H3</postal-code> </domestic> </destination> </mailing-scenario>

    and

    <?xml version=”1.0″ encoding=”UTF-8″?> <price-quotes xmlns=”http://www.canadapost.ca/ws/ship/rate-v3″><price-quote><service-code>DOM.PC</service-code><service-link rel=”service” href=”https://ct.soa-gw.canadapost.ca/rs/ship/service/DOM.PC?country=CA&#8221; media-type=”application/vnd.cpc.ship.rate-v3+xml”/><service-name>Priority</service-name><price-details><base>28.78</base><taxes><gst>0.00</gst><pst>0.00</pst><hst percent=”13.000″>4.12</hst></taxes><due>35.85</due><options><option><option-code>DC</option-code><option-name>Delivery confirmation</option-name><option-price>0</option-price></option></options><adjustments><adjustment><adjustment-code>FUELSC</adjustment-code><adjustment-name>Fuel surcharge</adjustment-name><adjustment-cost>2.95</adjustment-cost><qualifier><percent>10.25</percent></qualifier></adjustment></adjustments></price-details><weight-details/><service-standard><am-delivery>false</am-delivery><guaranteed-delivery>true</guaranteed-delivery><expected-transit-time>1</expected-transit-time><expected-delivery-date>2015-08-25</expected-delivery-date></service-standard></price-quote><price-quote><service-code>DOM.RP</service-code><service-link rel=”service” href=”https://ct.soa-gw.canadapost.ca/rs/ship/service/DOM.RP?country=CA&#8221; media-type=”application/vnd.cpc.ship.rate-v3+xml”/><service-name>Regular Parcel</service-name><price-details><base>12.77</base><taxes><gst>0.00</gst><pst>0.00</pst><hst percent=”13.000″>1.75</hst></taxes><due>15.19</due><options><option><option-code>DC</option-code><option-name>Delivery confirmation</option-name><option-price>0</option-price><qualifier><included>true</included></qualifier></option></options><adjustments><adjustment><adjustment-code>FUELSC</adjustment-code><adjustment-name>Fuel surcharge</adjustment-name><adjustment-cost>0.67</adjustment-cost><qualifier><percent>5.25</percent></qualifier></adjustment></adjustments></price-details><weight-details/><service-standard><am-delivery>false</am-delivery><guaranteed-delivery>false</guaranteed-delivery><expected-transit-time>3</expected-transit-time><expected-delivery-date>2015-08-27</expected-delivery-date></service-standard></price-quote><price-quote><service-code>DOM.XP</service-code><service-link rel=”service” href=”https://ct.soa-gw.canadapost.ca/rs/ship/service/DOM.XP?country=CA&#8221; media-type=”application/vnd.cpc.ship.rate-v3+xml”/><service-name>Xpresspost</service-name><price-details><base>16.34</base><taxes><gst>0.00</gst><pst>0.00</pst><hst percent=”13.000″>2.34</hst></taxes><due>20.35</due><options><option><option-code>DC</option-code><option-name>Delivery confirmation</option-name><option-price>0</option-price></option></options><adjustments><adjustment><adjustment-code>FUELSC</adjustment-code><adjustment-name>Fuel surcharge</adjustment-name><adjustment-cost>1.67</adjustment-cost><qualifier><percent>10.25</percent></qualifier></adjustment></adjustments></price-details><weight-details/><service-standard><am-delivery>false</am-delivery><guaranteed-delivery>true</guaranteed-delivery><expected-transit-time>1</expected-transit-time><expected-delivery-date>2015-08-25</expected-delivery-date></service-standard></price-quote></price-quotes>

    Hello,

    Please disable the debug option.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php plugin error’ is closed to new replies.