Skip to main content

Woocommerce Messages Only display on Cart page

Comments

12 comments

  • Permanently deleted user

    Hi,

    Thank you for getting in touch with us.

    I have created an internal issue and one of the developers is already looking at your project. I will come back with a message when I have news about it.

    Best regards, Nelea.

    0
  • Evan Grabenstein

    Hey Nelea,

    Any movement on this?

    0
  • Permanently deleted user

    Hi Evan,

    We are sorry for this inconvenience but the developer team is still working to fix the issue.

    Thank you for your understanding and patience, we highly appreciate that.

    Best regards, Nelea.

    0
  • Evan Grabenstein

    Any news on this bug?

    0
  • Permanently deleted user

    Hi Evan,

    We are very sorry for this inconvenience.

    I just have asked your dev team about this issue and they told me that it will be fixed in the next update, or in the second update.

    Best regards, Nelea.

    0
  • Evan Grabenstein

    Here's hoping.

    Thank you!

    0
  • Daniel López

    We have the same problem, any updates on this?

    0
  • Permanently deleted user

    Hi Daniel,

    Thank you for getting in touch with us.

    This issue was already fixed. Please update Brizy plugin to the latest version: Fre 2.3.24 and Pro 2.3.17

    Best regards, Nelea.

    0
  • Darren Nicholls

    Hi there,

    Sorry for dropping in since this was answered a year ago. But having a similar issue.

    On single product page (which is a Brizy template) we don't see the Product added to cart message / link to cart.

    We're using WP 6.1.1
    Brizy Pro Version 2.4.16
    Brizy Version 2.4.17

    Any thoughts?

    Thanks,
    Darren

    0
  • Ariel H.

    Hi Darren,

    Thank you for reaching out to us.

    I tried this in my test environment, but the issue doesn't seem to be happening.
    https://prnt.sc/113n8tQW4Q7r

    Could you please confirm if the issue occurs if you temporarily switch to another theme?

    I am looking forward to your response.

    Best regards,
    Ariel H.

    0
  • Darren Nicholls

    Hi Ariel,

    Thanks for getting back to me.

    We're using Twenty Twenty-One Child theme. As we use WooCommerce and Brizy we decided against using a 'WooCommerce' theme to save on bloat and unnecessary bloat.

    Is there a plugin or any custom php code we could look at instead?

    Thanks,
    Darren

    0
  • Ariel H.

    Hi Darren,

    Thank you for the update.

    You could try adding a filter-hook to functions.php in your child theme, like the example below.

    // Add "Added to Cart" message filter
    add_filter( 'wc_add_to_cart_message', 'my_custom_add_to_cart_message' );

    function my_custom_add_to_cart_message( $message ) {
        $message = sprintf( __( '%s has been added to your cart.', 'woocommerce' ), '<strong>' . get_the_title() . '</strong>' ) . ' <a href="' . wc_get_cart_url() . '" class="button wc-forward">' . __( 'View cart', 'woocommerce' ) . '</a>';
        return $message;
    }

    // Add "View Cart" button filter
    add_filter( 'woocommerce_add_to_cart_redirect', 'my_custom_add_to_cart_redirect' );

    function my_custom_add_to_cart_redirect( $url ) {
        $url = wc_get_cart_url();
        return $url;
    }

    For more information, please refer to this link - 
    https://woocommerce.com/document/composite-products/composite-products-filters-reference/

    It is important to note that every website is unique, and the above example code may require some modifications. If necessary, please review the code based on the official WooCommerce documentation and make any necessary adjustments to fit your website. 

    I hope this helps.

    Best regards,
    Ariel H.

    0

Please sign in to leave a comment.