Home Forums General Pre-Purchase Questions Post Meta Fields for WooCommerce

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  epictum 5 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6847

    epictum
    Participant
    Post count: 23

    Hey there – I've been playing around on the demo site for a bit now and love everything about WP User Front-end PRO =) My question is specific to WooCommerce and digital products. I created a custom field for File Uploads and gave it a key of _file_paths, since that's what WC stores for its digital goods. The first thing I noticed is that the linked file displays on the product page, upon form/file submission, so anybody could just right-click “Save as” on the link and grab the digital file that way instead of paying for it, so my first question is whether digital products should be created differently or whether there is a setting somewhere in this plugin that i've missed (maybe something like “only Admin can view this”). The other question I had is displaying the meta key value for _file_paths. If I use the shortcode [wpuf-meta name=”_file_paths” type=”file”], then I get the *linked* value of _file_paths instead of just the URL (plain value), so I'm wondering if there's any way to disable the auto-linking of uploaded files. I tried the short code sans type=”file” but got some weird value of out that one, so maybe that's because _file_paths is an array and somehow that got all botched somehow. Anywho, would love to know how to sell digital goods using WC + this plugin and be able to protect all those assets, so prospective buyers can't see the actual URL (frond-end or via “View source” or some other hack).

    #6898

    Tareq Hasan
    Keymaster
    Post count: 2831

    As you'll be creating WooCommerce digital products, you should turn off the auto custom fields insertion in the post area. That way the file paths will not be visible in the product description area.

    WooCommerce saves the file paths in an array, so uploading directly a file to _file_paths meta key won't work. Some small adjustments are needed for that ๐Ÿ™‚

    #6908

    epictum
    Participant
    Post count: 23

    Yeah, I've been struggling with that bit. I read that you'll be posting a tutorial about this here – http://docs.wedevs.com/woocommerce-with-wp-user-frontend-pro-tutorial-part-1/. I'm curious to read as how this plugin will handle multiple file uploads that will also be purchasable =)

    #6925

    Tareq Hasan
    Keymaster
    Post count: 2831
    #6936

    epictum
    Participant
    Post count: 23

    You're awesome. Purchased. Already using/loving it =) Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Post Meta Fields for WooCommerce’ is closed to new replies.