WooCommerce inquiry if no price available

woocommerce if price is zero
woocommerce product enquiry form popup
best woocommerce quote plugin
woocommerce enquiry cart
enquiry plugin wordpress
woocommerce request shipping quote
wisdm product enquiry pro nulled
woocommerce product catalog mode & enquiry form

I'm helping a good friend setting up a WooCommerce shop. Since the shop is going to be bigger and the products are pretty variable and customizable we are not able to provide/configure all prizes from the beginning.

However we would like all products to be in the shop and ad an inquiry lead form in case no price is available.

Since I never programmed with WooCommerce I was wondering that is the right hook to implement such an functionality?

Had the exact same issue and couldn't find a plugin or a solution anywhere so I figured a workaround myself:

You need to edit file /wp-content/themes/your-theme-name/woocommerce/single-product/add-to-cart/simple.php (if it's not there just copy it from woocommerce plugin /wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php)

and on line 14 where it says

    if ( ! $product->is_purchasable() ) return;

you need to comment it out and write something like

    if ( ! $product->is_purchasable() ) {
    // put your code here 
    return; 
    }   

and in the //put your code here line you can enter for example a shortcode for a form or a more complicated solution would be to put code for a button that when clicked will open up a popup form.

Still working on that ;)

WooCommerce inquiry if no price available, You don't need a plugin or to overwrite WooCommerce files in your child theme. // Inquiry link if no price available function add_inquiry_link_instead_price(  WC Catalog Enquiry converts your WooCommerce store into a catalog site, fully or partially. With this feature enriched plugin one can have both shop and catalog simultaneously. In addition, one can also use this plugin to get product enquiries from buyers via enquiry form.

Maybe too late, but I have had same issue currently.

Here is there code, Woocommerce uses to check if a product can be purchased: https://github.com/woocommerce/woocommerce/blob/master/includes/abstracts/abstract-wc-product.php#L1404

Notice about: && '' !== $this->get_price()

/**
 * Returns false if the product cannot be bought.
 *
 * @return bool
 */
public function is_purchasable() {
    return apply_filters( 'woocommerce_is_purchasable', $this->exists() && ( 'publish' === $this->get_status() || current_user_can( 'edit_post', $this->get_id() ) ) && '' !== $this->get_price(), $this );
}

So you need to write a filter like this to override default:

add_filter( 'woocommerce_is_purchasable', function ( $is_purchasable, $product ) {
    return $product->exists() && ( 'publish' === $product->get_status() || current_user_can( 'edit_post', $product->get_id() ) );
}, 10, 2 );

Enquiry form for Woocommerce products with no price, php echo do_shortcode( '[contact-form-7 404 "Not Found"]' ); ?> line is the shortcode that will display your form. So, there you have it: a simple way to display an inquiry form for woocommerce products with no price. Email Inquiry & Cart Options for WooCommerce allows you to fine tune the e-commerce accessibility on your WooCommerce site by setting ‘Rules’ that apply to all site visitors. Fine tune access to the e-commerce function for logged in users by assigning the Rules to WordPress user roles, including the WooCommerce Customer and Store manager Roles.

Try the following code snippet. You just have to put it in your functions.php. You don't need a plugin or to overwrite WooCommerce files in your child theme.

// Inquiry link if no price available
function add_inquiry_link_instead_price( $price, $product ) {
    if ( '' === $product->get_price() || 0 == $product->get_price() ) :
        return '<a href="/kontakt/" class="single_add_to_cart_button button alt">Jetzt anfragen</a>';
    endif;
}
add_filter( 'woocommerce_get_price_html', 'add_inquiry_link_instead_price', 100, 2 );

WooCommerce: How to Setup Display-Only or Virtual Products , In cases where you wish to advertise products that are not directly for sale through WooCommerce provides such as order tracking, views, and future pricing or to display on the button in the Button Text field, ie “Inquire” or “​Request More Info” Optional: If you want to display attributes such as Color, Available sizes, etc,  WooCommerce and its platform, WordPress are both free, open source software. One of the reasons many people choose WooCommerce is because, like the software itself -- costs are customizable. With WooCommerce, you have a lot more control over what you spend, and when you invest it, than most other eCommerce platforms.

How to Enable WooCommerce Customers to Request a Quote?, Sometimes a price and an add to cart button are just not enough. we'll see which free plugins are available on WordPress.org and – of course – we a bit of JQuery I have the hidden form show when the “Product Inquiry” button is clicked. The product enquiry form module extends WooCommerce by adding an extra tab to each of your product details pages. The tab displays a reCAPTCHA protected form which visitors can use to enquire about any specific product. The store manager receives the emails and can then respond to the user directly.

Woo Inquiry – WordPress plugin, launch an online price inquiry system for your store. Fast response capability (​Out Of Stock) if the goods are not available in the stock. However, with WooCommerce, the product price is indefinitely displayed. In case you don’t set a price, the price is assumed to be zero, and the product is displayed as ‘Free’, which might not be the case. As is the case with all things WordPress, to set up a WooCommerce catalog only store you’ll need an extension.

WC Catalog Enquiry – WordPress plugin, WC Catalog Enquiry is the most feature enriched WordPress catalog plugin. Hide product price for all users or guests (non registered users); Admin can allow So if your required feature is currently not available, feel free to request in the  b) YITH WooCommerce Request A Quote – Premium Plugin This is the premium version of the free plugin we mentioned earlier. YITH WooCommerce Request A Quote Plugin can be purchased on YITH website as a standalone product, or you can join the YITH Club and for an affordable annual subscription you can use all their WooCommerce plugins on up to 30 sites (there is no additional charge).

Comments
  • By default no price means that the item will not be purchasable. I know there are some "request for quote" plugins out in the wild that might be useful. I've never used one and Woothemes doesn't have one yet, so I could not recommend one in particular.
  • And if i like to programm one my self?
  • You'll have to customize the checkout process to not take payment.
  • I'd rather do this through a plugin. Is this possible too?