Hide Add to cart and display secondary button on that place [closed]
i have added second button after "Add to cart" for "Ask for more info" and it works just fine. Unfortunately I have problem with products which don’t have "Add to cart" and i need to display just "Ask for more info". I tried with woocommerce_after_add_to_cart_button and woocommerce_after_add_to_cart_form hooks but when "Add to cart" is hidden i don’t see my second button.
Is there any way to hide "add to cart" to not affect my second button?