petrucccio
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Thank you!
Forum: Plugins
In reply to: [Meta for WooCommerce] So sync variable products@schero86 thanks for posting. Worked for me
@sohanhossain Facebook support please release an update, this is not a stable version
Thanks for the answer! Just in case someone needs it right now, here is my solution to set free delivery for Czech and Slovakia with different totals.
add_filter( 'woocommerce_package_rates', 'adjust_shipping_rate', 10, 2 ); function adjust_shipping_rate( $rates, $cart ) { $custome_shipping_country = WC()->customer->get_shipping_country(); global $woocommerce; $cart_subtotal = WC()->cart->subtotal; if ( ($cart_subtotal >= 3500 && $custome_shipping_country == 'CZ') || ($cart_subtotal >= 4500 && $custome_shipping_country == 'SK') ) { foreach ( $rates as $key => $rate ) { $rates[$key]->cost = 0; } } return $rates; }So good to finally see proper plugins for Czech services! Can’t wait for your plugin. Thanks!
- This reply was modified 5 years, 3 months ago by petrucccio.
UPD: I found the problem, I just had a free delivery option, and it’s not possible to send data to packeta if the client chooses this option.
Could you suggest other way of implementing a free delievry option for packeta?
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)