Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4521449
Price incorrectly calculated when using Bundle Products with Price by Quantity plugin
Open

Comments

  •  1
    Ana Reina started the conversation

    Hello, I have a bundled product configured with some products that also have different prices based on quantity.  Prices are correct at single product and cart view, but at checkout, it seems each product price is added to the bundle price, making the final payment twice the correct amount.

    Please, see the screenshots attached, one is an example of the problem, the other other, is how it should be (when price by quantity is disabled)

    Thanks.

    Attached files:  Captura de pantalla_20251129_181845.png
      Captura de pantalla_20251129_182514.png

  •  1,592
    Dustin replied

    Hi Ana,

    Please add the custom code below. (How to add custom code? ↗):

    add_filter( 'wpcpq_ignore', function ( $ignore, $cart_item ) {
    	if ( is_a( $cart_item['data'], 'WC_Product_Woosb' ) ) {
    		return true;
    	}
    
    	return $ignore;
    }, 99999, 2 );

    If it still doesn't work, please provide your website credentials (wp-admin link, username, and password) or create a development or staging site with identical configurations so that I can check for any issues.

    Best regards,
    Dustin

  •  1
    Ana Reina replied

    Hi, thanks, I have added the code and now I can see the problem is with Fluid Checkout, when the checkout is displayed the price is correct but some seconds later a new AJAX request seems to be done updating the product list and then the price get wrong, I think it is querying using the product individually and so the if-condition is not meet.

    I will try to create a new environment and send the credentials.