woocommerce - Download file on product page not on checkout page -
I have a solid product (non-virtual) that will be sent to the purchase. However, I want to allow the user to download a sample PDF on the product page even before adding it to the car.
At present, I think the download links are only available after checkout etc. And I know that you paste the link in the product details. But it needs to be done manually
Instead, how do I use the file upload mechanism on WooCommerce already on different products, and display something like "download file" which First links to uploaded file on 'Upload Products' page?
Do I need to work with some things like Advanced-Custom Fields etc?
I resolved it manually using the plugin, "Advanced Custom Field"
Added the link to show on the product page after having a template file for the product page added with a custom file upload field "product_hires" id.
& lt; P & gt; & Lt; a href = "& lt ;? php the_field ('product_hires') ;? & gt;" & Gt; Download Hi-Res & lt; / A & gt; & Lt; / P & gt;
Comments
Post a Comment