Hi,
How can I disable the replacement of an "Add to cart" button on a specific page and then add just the download button through a shortcode?
If I exclude the product from the settings the shortcode output will dissapear also.
Why do I need to do this? Cuz:
I have a "Name your price" plugin that lets the user set any price to a product if he wants to contribute to the project, and the problem is that the product price is set on "0$", the "Download now" button appears and replaces the standard "Add to cart" button that facilitates the donation (if any) from the user. So in this situation, if the user writes in the custom price field a value of 1$ it has no redirection with that value to the checkout page.
So, my thought on this and what I'm trying to do is to check the price from the input field for a value greater than 0 and if returns true, to show to the user the standard "Add to cart" button. If the value is null or equal to "0" to show the "Download now" button through a shortcode right next below the custom price field with:
echo do_shortcode('[download_now id="54639" text="Download"]');
How can I do this?
Thank you,
Adrian D.
@negru13
1:03 pm