Hi, I have a site I am trying to get live, it is a complete upgrade from Woo 1.6.6 to current. It has downloadable products and uses the CVS suite. I have the old customized woo files that were in the theme folder and I have the functions that were in the old site to. Right now the only issue I can see is that the “download now” button that is on the “single product page” does not work, this is from an edited WOO file. I compared the button link from live to dev and the dev is not correct. It is a membership site where s2member controls how many downloads they get each month/year.
The one part that I know is not working is this code, as the URL is not correct. It is a function from S2Member. they have the pro version.
<p><a id="bb20" class="bigbutton" href="<?php echo s2member_file_download_url(array("file_download" => $sku_name.".doc", file_download_key => true)); ?>">Download NOW</a></p>
it should produce this link
but it is not, it is producing this https://content-dev.checkpointmarketing.net/product/be-reasonable-how-business-compensation-can-affect-divorce-cases/
I think it has something to do with the upgrade to WOO that the input field “file_path” does not exit anymore, that there is now a “downloadable_files” field in the new WOO. Those “field names” came from inspecting the wordpress backend product edit page, it is the field name & ID.
I do not have a lot of PHP or JavaScript skills, but know wordpress well. It is like the “file_download” part of that button code above is not correct, I am guessing it used to get the “file_path” field, with it now not existing it is then defaulting to whatever the current URL is. It seems I have to figure out how to add back in “file_path” and get it to work or that I need to make “file_download” get the “downloadable_files” field.