File Path

This topic contains 3 reply and 3 voices, and was last updated by Sekander Badsha 9 years, 4 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 9, 2014 at 11:57 am 32021
Sekander Badsha Hi, I am running a theme which gives the ability to create custom posts for downloadable products. I was able to get the frontend form to get pretty much what i need, except the file path. How do I get the frontend form to load the path of the file (once uploaded) instead of the ID? Is there a setting or a modification i can make. It is critical as that was the whole point for me. Then once that happens, how do i make sure the reverse works. Meaning when the user wants to update his post, how do i make sure the actual file has been put in there so the user can delete it and replace it? Thanks, Hassane
December 10, 2014 at 2:15 am 32064
Aaron Aaron

I also want to know how to load the file path for a specific user once they upload an image.

December 10, 2014 at 5:35 am 32067
Hassane Hassane

Can someone at least tell me which file in the plugin the loading of the file happens in so I can look at hiring someone to code it up for me.
My thoughts on the workaround, someone better at this pitch in (I am not a wordpress programmer, nor a php programmer)
Create 2 hidden fields:
One is a fixed test called path which you can load your upload directory path, this is a constant for where you want to load your files.
The second one is basically the filename. This way, your download file path would be the 2 appended which is a simple text string manipulation.
Given they are hidden, I would not expect them to be displayed on the post page.

I am trying to make the least amount of changes to any code so I can maintain the auto updates for the core, theme and plugin, otherwise, I will loose track of what I did, and a few month from now, it will break after some update.

Thoughts? inputs on how and where to start?

Then the next step is to figure out how to load them up for the edit screen. But one step at a time.

I really hope the development team of this great tool picks that up and helps.

Hassane

December 10, 2014 at 12:45 pm 32081
Sekander Badsha Sekander Badsha

Hello Hassane,

Here is a turorial for you: http://docs.wedevs.com/woocommerce-downloadable-product/

And Aron,
I guess your case is not same. I have replied in your topic. Please check.

Thank you 🙂

Viewing 3 Posts - 1 through 3 (of 3 total)