WooCommerce Multilingual yhteensopivuusongelma
-
Hei,
lis?osa rekister?i toimitustavan liian my?h??n, jolloin WooCommerce Multilingual-lis?osa kadottaa toimitustavan asetussivun./** * If the shipping method is added too early, errors will ensue. * If the shipping method is added too late, errors will ensue. */ add_action( 'wp_loaded', function() { // Instance is only used for hacking classes together. // It's not used by WooCommerce. WooCommerce creates it's own instances, otherwise the legacy // shipping method breaks. If this class doesn't contain the shipping method class instance // things like setup wizard break. $this->shipping_method_instance = $this->load_shipping_method_class(); $this->add_shipping_method(); } );
Testasin kehitysymp?rist?ss? vaihtaa
wp_loaded
-hookin =>woocommerce_shipping_init
-hookkin, jolloin asetussivu palasi takaisin n?kyviin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WooCommerce Multilingual yhteensopivuusongelma’ is closed to new replies.