mardi 10 novembre 2015

Woocommerce Reset Shipping method when updating shipping totals

I'm having an issue with Woocommerce Shipping Methods. When a user goes to Cart and calculates shipping respective to his/her address and press button reading "Update Total", woocommerce automatically resets the shipping method to Default (Free Shipping). I did some work on this issue and found that there is following method being called in file \plugins\woocommerce\includes\shortcodes\class-wc-shortcode-cart.php

WC()->shipping->reset_shipping();

The above code resets the shipping method destroying the session. If I comment this line, my functionality works just fine. Can you tell me the solution of this issue? How can I override this function or if there is another way to solve this issue? Am I missing something in configuration?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire