QUERO QUE RETIREM MEU E-MAIL DESSE TÓPICO
Hello Again. I found a method by which I could get vendor shipping rates without overriding admin shipping rates. Sorry but I had to add one line in your plugin file class-wcfmmp-shipping.php at line 568:
if ( 'wcfmmp_product_shipping_by_country' === $rate->method_id || 'wcfmmp_product_shipping_by_zone' === $rate->method_id || 'wcfmmp_product_shipping_by_weight' === $rate->method_id || 'wcfmmp_product_shipping_by_distance' === $rate->method_id ) {
to
if ( 'wcfmmp_product_shipping_by_country' === $rate->method_id || 'wcfmmp_product_shipping_by_zone' === $rate->method_id || 'wcfmmp_product_shipping_by_weight' === $rate->method_id || 'wcfmmp_product_shipping_by_distance' === $rate->method_id || 'flat_rate' === $rate->method_id ) {
If you could, please give me a hook by which I can do what I did above with out disturbing the plugin files and write. Thank you.
-
This reply was modified 5 years, 8 months ago by
osamublack.
-
This reply was modified 5 years, 8 months ago by
osamublack.
Your requirement not clear to me.
If you want to work with Admin’s shipping setting then disable store shipping from WCFM Admin Setting – Shipping Setting