Home Forums Themes Support Claue How to remove redundant cart notification

Viewing 6 reply threads
  • Author
    Posts
    • #19878

      When we add an item to the cart, then view the Mini Cart (right side) and then click View Cart we get a message at the top of the cart that says “‘Product Name’ has been added to your cart.” with a View Cart button directly to the left of this text.

      As the user already knows they have done this, and the View Cart button is pointless as the user is already on the Cart page, how can we remove this notification?

      On a slightly different topic, when viewing the Checkout page we are getting multiple default notifications, some due to 3rd party plugins:

      • Have a coupon? Click here to enter your code
      • Have a gift card?Click here to enter your code
      • You don’t have Points for Redeeming

      Is there an easy way of moving these notifications to the bottom of the cart page?

    • #19887

      Hi,

      Please add below code to Claue > Theme Option > General Layout > Custom CSS

      .woocommerce-cart .woocommerce-message {display: none;}

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #19901

      Thanks.  Any ideas about the notifications at the top of the checkout page and if we can move them or compress the area they take up.

    • #19920

      Hi,

      I don’t know these other plugins (giftcard, points and redeem) function they hook to checkout function.

      For coupon please add below code to functions.php in claue-child

      remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
      add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_coupon_form', 30 );

      But i think the these boxes good for user, they need to know these info before checkout.

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #20809

        Hi, we have found this code where it moves the coupon code field to the bottom of the page causes an issue.  If the user has not filled out the checkout form or selected payment method but go straight to the bottom and apply a coupon code, the checkout form submits (instead of just applying a coupon code).  So if fields have not been completed then the user gets an error saying fields are empty.  How can we get this coupon code field to apply the coupon without submitting the entire form?

        • #20810

          We also found one other bug with this custom code.  The coupon code field at the bottom of the page is open by default and cannot be closed.  When it was at the top of the page you had to click the link to open it – we would like that functionality restored.

    • #20811

      Sorry, one more thing…when the message:

      ‘Sorry, the minimum order total amount is…’ appears on the checkout page, can we also move this to the bottom of the page?

    • #20815

      Hi,

      1. Please remove the code in claue-child > functions.php to restore function.

      remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
      add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_coupon_form', 30 );

      2. I don’t see the message, can you tell me how to reproduce this issue?

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #20838

        Hi,

        Sorry there are a few issues:

        1. Removing the custom code simply puts the coupon code field back to the top of the page.  We want to keep it at the bottom but we want it closed by default and we don’t want the entire checkout form to be submitted when someone applies the coupon code.
        2. The message ‘Sorry, the minimum order total amount is…’ and also the message re not ticking the Terms and Condition box shows up at the top – we would like these to appear at the bottom.
    • #20859

      Hi,

      1. I’m sorry it now change structure code so the coupon form doesn’t close by default

      2. The message on checkout page generate by javascript file of core WooCommerce and can’t override so can’t move the message to bottom.

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 6 reply threads

You must be logged in to reply to this topic.