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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -