Title: Packeta error
Last modified: February 13, 2021

---

# Packeta error

 *  Resolved [petrucccio](https://wordpress.org/support/users/petrucccio/)
 * (@petrucccio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/packeta-error/)
 * 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](https://wordpress.org/support/users/petrucccio/)
 * (@petrucccio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/packeta-error/#post-14045644)
 * 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](https://wordpress.org/support/users/wpify/)
 * (@wpify)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/packeta-error/#post-14045696)
 * 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](https://wordpress.org/support/users/petrucccio/)
 * (@petrucccio)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/packeta-error/#post-14049204)
 * 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](https://wordpress.org/support/users/petrucccio/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Packeta error’ is closed to new replies.

 * ![](https://ps.w.org/wpify-woo/assets/icon.svg?rev=3253587)
 * [WPify Woo - Withdrawal, CRN/VAT, QR payments, Heureka and more for WooCommerce](https://wordpress.org/plugins/wpify-woo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpify-woo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpify-woo/)
 * [Active Topics](https://wordpress.org/support/plugin/wpify-woo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpify-woo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpify-woo/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [petrucccio](https://wordpress.org/support/users/petrucccio/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/packeta-error/#post-14049204)
 * Status: resolved