• Resolved petrucccio

    (@petrucccio)


    Hi!

    I installed your plugin to use packeta, everything works well. But there is one order that not sending to packeta. I got this error:

    “Packeta error: Invalid value “, please provide an integer value, string given”

    How can I debug this? I checked the address, phone number, everything is correct.

    Thank you for your work!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter petrucccio

    (@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!

    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.

    Thread Starter petrucccio

    (@petrucccio)

    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 3 years, 9 months ago by petrucccio.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Packeta error’ is closed to new replies.