Home Forums WoodMart support forum Disable Add-to-Cart button for Out of Stock products with Waitlist module

Disable Add-to-Cart button for Out of Stock products with Waitlist module

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #726705

    MYP
    Participant

    Hi,
    I’d like to disable the qty selection & add to cart button for out of stock products.
    We have set up the Waitlist module and we ONLY want to show the waitlist form to the customer and NOT the add to card + qty selection button.

    Secondly, i’d like to know how to modify all the text in the waitlist form.

    SCREENSHOT ATTACHED

    Attachments:
    You must be logged in to view attached files.
    #726768

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    01. Navigate to Theme Settings > Custom CSS > Global Custom CSS and paste this code.

    /* Hide Quantity, Add to Cart, and Buy Now buttons when an out-of-stock variation is selected */
    .woocommerce-variation-add-to-cart-disabled .quantity,
    .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button,
    .woocommerce-variation-add-to-cart-disabled .wd-buy-now-btn {
        display: none !important;
    }

    02. To change the text, you can use the Loco Translate plugin to modify the strings.
    Please follow this guide: https://xtemos.com/docs-topic/translate-woodmart-theme-with-loco-translate/

    Best Regards

    #726788

    MYP
    Participant

    This code causes the add-to-cart button to disappear even for products that are in stock.
    Kindly send the revised code.

    #726832

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards

    #726834

    MYP
    Participant

    Hi,
    Shared credentials privately.

    #726915

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Navigate to Theme Settings > Custom CSS > Global Custom CSS, paste this code, and check how it works:

    /* Hide Quantity, Add to Cart, and Buy Now ONLY when an out-of-stock variation is explicitly selected */
    .single-product .single_variation_wrap:has(.out-of-stock) .quantity,
    .single-product .single_variation_wrap:has(.out-of-stock) .single_add_to_cart_button,
    .single-product .single_variation_wrap:has(.out-of-stock) .wd-buy-now-btn {
        display: none !important;
    }

    Best Regards

    #726922

    MYP
    Participant

    Thanks. This worked.

    One more request please…
    Is there a way to also ask for their whatsapp number in the form in addition to the email?
    If not possible, can we just replace the email with Whatsapp?

    If someone fills the waitlist form with their whatsapp number, will we recv an email with these details?

    #726927

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    The current WoodMart Waitlist form is designed to collect the email address, and there is no built-in option to add a separate WhatsApp/phone number field. It requires customizations, and this is beyond our limitations and support policy.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)