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!
Plugin Author
WPify
(@wpify)
Hi, to be able to send the order to Packeta, customer has to select the Packeta branch on checkout. We should probably hide the metabox if the order delivery method is other than Packeta, I’ll add this check to the next version of the plugin. If you need to have the Packeta shipping free for specific conditions, you can use some of the Contional shipping plugins out there, or wait for our Conditional shipping plugin that’ll be avaible in few weeks and will offer options to adjust shipping prices by weight, cart total, items in cart etc.
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.