Home Forums WoodMart support forum I want the quick view works also on single product page

I want the quick view works also on single product page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #531467

    ericfajardo16
    Participant

    Hi i am creating custom button that showing on single product page i want to make the same modal/popup like on the product loop

    here’s my code

    add_action(‘woocommerce_single_product_summary’, ‘custom_request_quote_button’, 31);
    function custom_request_quote_button() {
    global $product;

    if ($product->get_id() == 32881) {
    echo ‘<div><button id=”request-quote-btn” style=”cursor:pointer;”>Request a Quote</button></div>’;
    }
    }

    i want this button do same thing that popups the product details

    #531574

    Luke Nielsen
    Member

    Hello,

    You can create an HTML BLock with the “Popup” element inside and define that block in the “Before “Add to cart button””: https://prnt.sc/0jJYC0w417Yh , thus the product page will have a button with the content that you need: https://gyazo.com/042d9de8d467cb7fe65ad25b67a4e988

    Let me know if you have any questions.

    Kind Regards

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