• Resolved amosson88

    (@amosson88)


    Hi all!
    I am using the booking system from Woocommerce, basically, each listing contains a product with a price. However, price can be defined as a fixed (eg. 500usd) or “variable” (eg. from 500usd), or even FREE (0usd).
    How can I put the “Contact for price” tag? Is it possible?
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @amosson88 ,
    You can achieve this by following this method:

    Step-1:
    Remove add to cart button from the products using the below snippet,

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
    
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );

    Step-2:

    Add your own custom button on product single page but the title Contact Us and with the contact us page link, etc. For adding the button you can use this action,

    add_action('woocommerce_before_add_to_cart_button','ced_custom_button');
    
    function ced_custom_button(){
        //your button HTML here with link
    }

    You can also do this by changing the Add to Cart button title and link as well through appropriate action and filters.

    Thanks,

    Plugin Support mouli a11n

    (@mouli)

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please let open up a new topic and we’ll be happy to help out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact for price’ is closed to new replies.