wordpress - WooCommerce - Shipping plugin ignored -


i've written plugin adds custom shipping method woocoomerce.

it seems intermittently not returning shipping prices.

on cart page, shipping estimator works fine; then, when click through checkout, display results (from cheapest fastest) on refresh, correct guest billing address, returns nothing; debugging shows not call plugins' shipping calculator or 'enabled' function check. says there no shipping options australia (if shipping option activated)

have tried contacting woo guys, nada.

edit:

lessons learned.

firstly, big one: woocommerce uses transients - caches shipping results. can reset these in woocoomerce settings, system status->tools extra edit: lastest woocommerce version lets turn off! .. if shopping administrator ..

secondly: once above out of way, turned out reading in posted address details incorrectly, , plugin returning 'false' , knocking out of running. big xdebug , php storm ..

thirdly: aside, have hooked plugin's instantiation woocommerce_shipping_init, woo now recommends. check out revised docs @ shipping method api page

you should @ least show code :-)

i bet there related shipping address removing shipping options.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -