WooCommerce download link in emails not working If you are using WooCommerce to deliver downloadable content and the links in the notification mails fail, try changing the download method as a possible solution. Oct 18, 2018 - Downloadable Files: This is where you will put the URL of your. Download Expiry: Set a date here for the expiration of the download link. Now I know what's causing the problem (yay!) and will work on finding solutions. If you wish to work on other cms platforms like Joomla or Magento or Drupal. But sometimes these links do not appear and customers are not able to download or access the file. What you need to check is that whether the cart page was edited with Page Builder or not and confirm the woocommerce_cart shortcode has not been rendered as HTML.
I'm making a skin for The Grid plugin (https://theme-one.com/docs/the-grid/#developer_guide).
All the products are virtual and downloadable — I've managed to make an add to cart function, but need to download products instantly too. Is there a meta key for the file url (combed the database and couldn't spot one) or a way to get it?
Currently I've got something that just returns an array:
Thought I'd found a possible solution: https://wordpress.stackexchange.com/a/199884/134263 but am not great with php and I'm unsure how to implement it.
Woocommerce Download Link Not Working On Mac
Any pointers would be much appreciated!
1 Answer
Woocommerce downloadable are arrays, as you can see on the back-end it gives you the option to add multiple downloadable.
assuming you are on a product template where the global variable $product
can be initiated, you can get the list of downloadable from a product as mentioned by other post using the method $product->get_files()
and this will give you an array of downloadable files and you have to loop through each array item to get the data like name and link which you have to use the foreach
loop.
Download Zip Plugin Woocommerce For Wordpress
Im not sure where exactly you wanted to add this but based on you code you can do something like this,
The link should be then added to that $output variable you are using which can be echo
or return
Also, try learning basic php, its not that hard, working with php without knowledge is much harder than learning its basics :)