Hej wszystkim,
Mam problem z paczkomatami InPost tzn.
Zainstalowałem wtyczkę wpisaęem dane i jest wszystko ok, ale w zamówieniu ( checkout ) widnieje to ostrzeżenie:
Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/woo-inpost/classes/shipping/parcel-machines.php on line 288
Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/woo-inpost/classes/shipping/parcel-machines-cod.php on line 273
Warning: in_array() expects parameter 2 to be array, null given in /wp-content/plugins/woo-inpost/classes/shipping/cross-border-parcel-machines.php on line 237
Czy ktoś zmierzył się z tym problemem, albo wie o co chodzi i jak go rozwiązać ???
Bym był bardzo wdzięczny
Pozdrawiam
287 public function woocommerce_review_order_after_shipping() {
288 if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$parcel_machines = EasyPack_API()->machines_options();
$args = array( 'parcel_machines' => $parcel_machines );
$args['parcel_machine_id'] = WC()->session->get( 'parcel_machine_id' );
$args['geowidget_src'] = EasyPack_Helper()->get_geowidget_src();
wc_get_template( 'checkout/easypack-review-order-after-shipping.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
272 public function woocommerce_review_order_after_shipping() {
273 if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$parcel_machines = EasyPack_API()->machines_cod_options();
$args = array( 'parcel_machines' => $parcel_machines );
$args['parcel_machine_id'] = WC()->session->get( 'parcel_machine_id' );
$args['geowidget_src'] = EasyPack_Helper()->get_geowidget_src( $cod = TRUE );
wc_get_template( 'checkout/easypack-review-order-after-shipping.php', $args, '', plugin_dir_path( EasyPack()->getPluginFilePath() ) . 'templates/' );
}
}
236 public function woocommerce_review_order_after_shipping() {
237 if ( in_array( $this->id, WC()->session->get('chosen_shipping_methods') ) ) {
$shipping_country = WC()->session->customer['shipping_country'];
if ( isset( $_REQUEST['country'] ) && trim( $_REQUEST['country'] ) != '' ) {
$shipping_country = $_REQUEST['country'];
}
if ( isset( $_REQUEST['s_country'] ) && trim( $_REQUEST['s_country'] ) != '' ) {
$shipping_country = $_REQUEST['s_country'];
}