Can't disable add to cart and quantity button

WCMp Catalog Enquiry

Can't disable add to cart and quantity button Resolved

Viewing 6 reply threads
  • Author
    Posts
    • #78158
      Vicki Li
      Participant

      I have checked the catalog mode, clear the cache, but the quantity select and add to cart button are still there.

      I also need to have the enquiry only available for login users. For not longin users, the button need to show “login to send enquiry” and redirect to login/register page. Would you please let me know how to get it done. Thanks!

      Please see screenshot for the setting page.

    • #78205

      Hi @Vicki Li, thanks for getting in touch with us. Our replies are inline :

      – I have checked the catalog mode, clear the cache, but the quantity select and add to cart button are still there.

      >> It seems like theme conflict issue. Just to be sure, switch to some default theme like Twenty Sixteen and check again.

      Let us know the result so we can help you out accordingly.

      – I also need to have the enquiry only available for login users. For not longin users, the button need to show “login to send enquiry” and redirect to login/register page. Would you please let me know how to get it done. Thanks!

      >> Currently, if the “Applicable For Logged in user only” option is enabled, then the enquiry button will be displayed for logged-in user only. For non logged in user there will not be any button.

      So, you need to do custom code here and add a text and further modification.

      If you need a reference of hook/filter for this, let us know.

    • #78256
      Vicki Li
      Participant

      Thanks for your reply. I disabled the add to cart button from the theme and it works now.
      For the customize of redirecting to register/signup page for guests, please let me know which file or function do I need to modify. Thanks a lot!

    • #80425

      Hi @Vicki Li,
      Use this code in your current active themes functions.php file

      /***************  Add text in single product page *************************/
      add_action( 'woocommerce_single_product_summary', 'momom' );
      function momom(){
        $settings = get_wcce_catalog_settings();
        $for_user_type = isset($settings['for_user_type']) ? $settings['for_user_type'] : '';
        if($for_user_type == 2) {
            if(!is_user_logged_in()) {
                echo "Please contact with adminstration";
            }
        }
      }
      copy
    • #84952
      Vicki Li
      Participant

      Hello Raju, Thanks for the reply. It works to show the text for guest users. May I know how to add a link to the text?

      Replace the sample text “Please contact with adminstration” with “Please login to contact supplier” (hyper link the “login” word with the login popup form of the marketplace plugin or redirect to /register/)

      Look forward to your reply.

    • #85050

      Hi @Vicki Li,
      Just add this line for adding registration link

      ?>
       Please contact with adminstration<a href="<?php echo get_permalink(wcmp_vendor_dashboard_page_id()); ?>">Registration page</a>
       <?php
      copy
    • #86071
      susmita
      Moderator

      Hi @Vicki Li,

      I presume that your issue is resolved, since, we haven’t heard back from you.

      We are marking this thread as resolved.

      Kindly open a new thread if you face any further query.

Viewing 6 reply threads

The topic ‘Can't disable add to cart and quantity button’ is closed to new replies.

WCMp bundle is available at a slashed price

Grab It Now