WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Adding Product Using PHP (4 posts)

  1. mihart
    Member
    Posted 1 year ago #

    Hi,

    Here is my target. User should able to add product in frontend. I'm using wp user frontend and tweak it and I was able to post product in frontend. But it was only a simple product. What I want is when I add product it will be a "Variable" and will set "Attributes" and then with "Variations" and with "Image Variation".

    Can someone direct me on how can I do this in php? I tried this in Jigo and I failed so I switch to Woo and hoping I can make this.

    Thank you in advance!

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    I don't have a solution for you but just curious as to why you think people should be able to add products in the front end?

  3. Coen Jacobs
    Member
    Posted 1 year ago #

    This is very well possible, as all our products are actual posts in the database. We use the postmeta table intensively, maybe you will need to load some files on the frontend for loading functions. This is a very high end customisation though.

    I think your best bet is to have a look at how the plugin stores all the meta data and apply that to your frontend code. Remember that we use WordPress core for a lot as well, stuff that is probably not loaded on frontend, so you might have to duplicate (or try to load) the files or parts of the code base (with all the risks that come with it).

    Long story short: Yes it is possible, very complex and I don't even know where to start.

  4. mihart
    Member
    Posted 1 year ago #

    Hi Coen,

    Thank you very much for letting me know that it is possible. I will start looking deeper in the plugin code.

    Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.