WordPress at Your Fingertips
function is not described

woocommerce_external_add_to_cart() WC 1.0

Output the external product add to cart area.

No Hooks.

Return

null. Nothing.

Usage

woocommerce_external_add_to_cart();

Code of woocommerce_external_add_to_cart() WC 5.7.0

function woocommerce_external_add_to_cart() {
	global $product;

	if ( ! $product->add_to_cart_url() ) {
		return;
	}

	wc_get_template(
		'single-product/add-to-cart/external.php',
		array(
			'product_url' => $product->add_to_cart_url(),
			'button_text' => $product->single_add_to_cart_text(),
		)
	);
}