• Resolved SV_ChrisM

    (@sv_chrism)


    I’m working with a Woocommerce install and I want to have a remote .NET server create coupons on our web store on command.

    To this end, I’m trying to set up a PhP web service that will create a coupon programmatically. I’ve got the basic framework set up, but I’m not sure how to call Woocommerce from a listener script. Can I just make woocommerce calls? Or do I have to import wordpress somehow?

    Sorry if this is a noob question, I haven’t really done any php programming directly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The WordPress framework is independent of WooCommerce. The tutorials you’re looking for are called something like “call woocommerce functions outside the loop” or outside of WordPress.

    Side note: all three letters in PHP are capitalized because it is a (recursive) acronym. It stands for “PHP: Hypertext Preprocessor” (hence the recursiveness). PhP sounds like a fake doctorate someone got from studying pickle theory.

    Thread Starter SV_ChrisM

    (@sv_chrism)

    Thanks for the tip, I’ve been able to get the script to run.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PhP web service’ is closed to new replies.