array_shift() expects parameter 1 to be array
-
Hi Support,
I get the following message:
“Warning: array_shift() expects parameter 1 to be array, string given in /home/u775775526/public_html/wp-content/plugins/idw-display-woo-dynamic-quantity-table/quantity-table.php on line 35”.Following code start with line 30.
if (!is_shop() && !is_product_category() && !woocommerce_upsell_display() && !is_front_page() && !is_page()){ if (!$done) { global $done; $done = TRUE; $pricing_rule_sets = get_post_meta( $product->post->ID, '_pricing_rules', true ); $pricing_rule_sets = array_shift( $pricing_rule_sets ); if ( $pricing_rule_sets && is_array( $pricing_rule_sets ) && sizeof( $pricing_rule_sets ) ) { ob_start(); ?> <table>
In WooCommerce I use ‘Dynamic Pricing’ from WooCommerce.
The settings are
European, €
thousendseparation is a “.” (Europeen Standard)
Decimal separation is a “,” (Europeen Standard)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘array_shift() expects parameter 1 to be array’ is closed to new replies.