Wordpress / Woocomerce Webhook Custom Logic

Hiring

Job #: 6470 Post Date: 23.07.2017

General information for the website: We sell clothing online Kind of development: Customization of existing website Num. of web pages/modules: 1 Description of requirements/features: Hi, I currently send orders to suppliers from Woocomerce once payment has been received using the API and webhooks. At the moment I can either configure it to send to both suppliers or 1, what I would like to do is add a logical if statement to determine which web hook should be triggered based on the order location, i.e if the order is from the UK fire of the UK supplier webhook, if the order is from Germany fire the Germany supplier webhook. I've done a fair amount of scripting in the past but PHP is not one of my strong points. I believe this is achieved using the woocommerce_webhook_topics function but I'm not sure where the logic should be implemented. Thanks Extra notes:

Posted by

Required skills

VBVBAPerl

Get the job done

Budget:
$30
-$31
Job type:
One-time
Hiring from:

?Bidding for first time? Click here to learn how StartAJob platform works.

?Want to do the job or have questions for the customer? Write then in the " Write a note or message to the customer"

?You already have the estimated cost and time to complete the work yuo are in the fields "Execution time" and "Payment requested" or leave them empty and can be changed later.

Invite

Generated in 0.624 sec