• Resolved Marian Kadanka

    (@mariankadanka)


    We are building premium magazine site with hundreds of articles which should be available to be purchased individually. Creating product for each of the articles seems very inconvenient.

    Is there any way to purchase posts directly, without associating them with products?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Pramschufer

    (@mattpramschufer)

    hey @mariankadanka thanks for reaching out. It sounds like this plugin is not going to be your best route then as the way this plugin works is to have a one to one relationship with products and posts.

    I wish it would have worked for you, but as of this time the only thing that I could think of is to hire a developer to custom develop a function to dynamically create a product on each post creation and associated it with the pay for post post meta programatically.

    Thread Starter Marian Kadanka

    (@mariankadanka)

    Yep, I’m the developer and I’m considering to use your plugin to do the job and make posts to imitate products to solve this issue, by somehow hacking WooCommerce and the plugin. Thank you for your quick reply, @mattpramschufer

    Plugin Author Matt Pramschufer

    (@mattpramschufer)

    No problem. I would look at https://rudrastyh.com/woocommerce/create-product-programmatically.html and then look at the postmeta table for a post you protect with my plugin and you can see how all settings are stored in postmeta table. You then just need to tap into https://developer.wordpress.org/reference/hooks/save_post/

    Hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘purchase posts directly, without creating products’ is closed to new replies.