View Cart button

WCMp Catalog Enquiry

View Cart button Resolved

Viewing 3 reply threads
  • Author
    • #108732

      Hi, I would like to know HOW to have the “View Cart” button showing easier on the PC and mobile/Ipad versions ..

      Currently when someone clicks on “Add to Enquiry Cart”, then it displays the “View Cart” directly underneath that product which is fine … BUT if client then starts moving around the website to view other products, then WHERE does he find the “VIEW CART” button then ?

      That is what my customers get stuck and cannot find the “VIEW CART” button like on the ecommerce site, it is easily found, but utilising your plugin I cannot locate where it sits as it is NOT sitting anywhere else apart from directly under the product that the client has enquired about and “Add to Enquiry Cart”

      How can I have the “View Cart” elsewhere also please
      Is there a setting I am missing possibly that I haven’t ticked so it is displayed somewhere?

      Please advise.


    • #108740

      As per Woocommerce default flow the view cart button only show after the product added to cart and customer also go to the cart page using the header menu.
      Check the video –
      But if you still need the view cart button after the product on shop page (if product is added to cart).
      Then Please add this code in the function.php of the current active theme :

      add_action('woocommerce_after_shop_loop_item', 'add_a_custom_button', 20);
      function add_a_custom_button() {
          global $product;
          // Not for variable and grouped products that doesn't have an "add to cart" button
          if( $product->is_type('variable') || $product->is_type('grouped') ) return;
          foreach( WC()->cart->get_cart() as $cart_item_key => $values ) {
          $_product = $values['data'];
              if( get_the_ID() == $_product->get_id() ) {
              echo '<div style="margin-bottom:10px;">
                      <a class="added_to_cart wc-forward" href="' . wc_get_cart_url() . '">' . __('View Cart') . '</a>

      Check the video –


    • #109472
      This reply has been marked as private.
    • #113631

      We have not received any update from you for a long. Hope this ticket is already been resolved.

      We are now closing this ticket. Kindly create a new one if you need any further help.

Viewing 3 reply threads

The topic ‘View Cart button’ is closed to new replies.

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price