• Resolved frolovsite

    (@frolovsite)


    Hello! Problem displaying suffixes in the mini cart.
    Immediately after adding any variable product to the cart, the suffixes of all products in the mini-cart disappear until you open the site in a new browser tab. Even ctrl+f5 doesn’t help.

    In the new tab, everything is displayed correctly.

    Tell me, please, is this how it should be? Or have I broken something somewhere? Disabled all other plugins, didn’t help.

    What functions are responsible for adding suffixes to the mini-cart?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter frolovsite

    (@frolovsite)

    If, after adding a variable product, you add a simple product to the cart, then the suffixes will be displayed.

    Plugin Author Condless

    (@condless)

    Hi,
    The price suffix function is attached to the ‘woocommerce_cart_item_price’ hook.
    There may be issue with your theme, please try to temporarily replace it.

    Thread Starter frolovsite

    (@frolovsite)

    There was Deli. Installed storefront, disabled all unnecessary plugins. Did not help. Please clarify, when adding variable products to the cart from the archive page, do you display all suffixes correctly in the mini-cart? So the problem is on my end?

    Plugin Author Condless

    (@condless)

    Hi,
    The price suffix should be displayed correctly in the mini-cart.
    Please try to disable the server/hosting cache.

    Thread Starter frolovsite

    (@frolovsite)

    Unfortunately, I did not find a way to disable caching, but I created a new demo store in which I installed only woocommerce and your plugin. Created two products, variable and simple. The problem hasn’t been resolved.

    ON THE ARCHIVE PAGE:
    If you add a simple product to the cart, then the price suffixes in the mini-cart are displayed correctly.
    If you add a variable product to the basket, then the price suffixes from the mini-basket disappear.
    If you add a simple product again, then the price suffixes are displayed correctly again, including for a variable product.

    Given that such a wonderful plugin is completely free, I cannot demand a solution to this minor problem. It is important for me to know that the problem was not my fault.
    I’m sorry for the importunity, but please clarify, when you add a variable product to the cart from the archive page, are the price suffixes displayed correctly?
    Demo – https://demo2.prostoy.site/

    Plugin Author Condless

    (@condless)

    Hi,
    Please make change in the plugin (the same change will be applied in the next plugin version), from:

    if ( ! is_admin() && 'yes' === get_option( 'wc_upw_product_price_adjust' ) ) {
    	add_filter( 'woocommerce_get_price_html', [ $this, 'wc_adjust_price_display' ], 10, 2 );
    	add_filter( 'woocommerce_cart_item_price', [ $this, 'wc_adjust_cart_price_display' ], 10, 2 );
    }

    to:

    if ( 'yes' === get_option( 'wc_upw_product_price_adjust' ) ) {
    	if ( ! is_admin() ) {
    		add_filter( 'woocommerce_get_price_html', [ $this, 'wc_adjust_price_display' ], 10, 2 );
    	}
    	add_filter( 'woocommerce_cart_item_price', [ $this, 'wc_adjust_cart_price_display' ], 10, 2 );
    }
    Thread Starter frolovsite

    (@frolovsite)

    Thank you!!! Now it works correctly ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem displaying suffixes in the mini cart.’ is closed to new replies.