• 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)
  • Plugin Author Drew Teichman

    (@idwdrew)

    Hey Maehooge, plugin creator here. I just released an update, let me know if it solves your issue.

    Thread Starter maehooge

    (@maehooge)

    Hi,

    Thanks for the quick reply! Good service!

    I updated the 1.12 version, but now I have a new 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 32

    Code start on line 22:

    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    
    add_filter( 'woocommerce_get_price_html', 'omniwp_credit_dollars_price', 10, 2 );
    			
    	function omniwp_credit_dollars_price( $price, $product ) {
    		global $done;
    	if (!is_shop() && !is_product_category() && !woocommerce_upsell_display() && !is_front_page() && !is_page() && !$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();
    		?>

    So the problem is still not solved :(.

    Till exemple: https://kivozeeland.hol.es/product/kivo-kennelworst-1kg/

    Thread Starter maehooge

    (@maehooge)

    Also have this error:
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘woocommerce_quantity_table_textdomain’ not found or invalid function name in /home/u775775526/public_html/wp-includes/plugin.php on line 524

    But that error is reflecting to the shoplogo?

    Code start at line 514:

    /*Logos section*/
    	$azera_shop_logos = get_theme_mod('azera_shop_logos_content');
    	if( !empty( $azera_shop_logos ) ){
    		$azera_shop_logos_decoded = json_decode($azera_shop_logos);
    		foreach ($azera_shop_logos_decoded as $azera_shop_logo_box) {
    			$id = '';
    			$image = '';
    			$link = '';			
    			if( !empty( $azera_shop_logo_box->id ) ){
    				$id = $azera_shop_logo_box->id;
    			}
    			if( !empty( $azera_shop_logo_box->image_url ) ){
    				$image = $azera_shop_logo_box->image_url;
    			}
    			if( !empty( $azera_shop_logo_box->link ) ){
    				$link = $azera_shop_logo_box->link;
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘array_shift() expects parameter 1 to be array’ is closed to new replies.