Find Jobs
Hire Freelancers

Connect WordPress WooCommerce orders using Posts to Posts (fixed)

$100-600 USD

Cancelled
Posted over 10 years ago

$100-600 USD

Paid on delivery
I need a custom WooCommerce function that will connect every new WooCommerce order to an associated post type using Scribu's Post to Post plugin. Everything has a well developed API, I just need you to connect the pieces. Need to know: - We will be working with three post types: shop_order, product and campaign - We will be using two WordPress plugins: WooCommerce and Posts to Posts - You will be required to work from our test site. - Please make complete inline comments about what is going on. - This may not be a complete work order, issues may arise once development starts. - We will give you extra money to use GitHub. They have great free software. - We pay in milestones for every couple of hours. We want to ensure that you are on track and that this project is still a good fit for you. - We expect you to use Freelancer's visual tracker. - We give bonuses for high quality work. Steps: 1) Once a user completes checkout, link their new order with the associated campaigns. The associated campaign is found by calling a function for each product sold that returns the WordPress post id of the campaign associated to the product. For example say order 301 has two products, A & B. Product A is associated with campaign 1 and product B is associated with campaign 2. So order 301 is to be associated with campaigns 1 & 2. Use WooCommerce action hook "woocommerce_checkout_order_processed" for this. This snippet may help you get setup: [login to view URL] 2) Once an order is associated with the campaigns of the products purchased create a post meta entry for the order using key "campaign_$pid", where $pid is the post id of the campaign. The value should be an array of two items counting only products sold relating to that particular campaign: - value of subtotal (without tax) - count of products sold Creating Post to Post connections programmatically... [login to view URL] p2p_type( 'YOUR_CONNECTION_TYPE' )->connect( $from_id, $to_id, array( 'date' => current_time('mysql') ) );
Project ID: 4778075

About the project

9 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
9 freelancers are bidding on average $473 USD for this job
User Avatar
Please check PMB for more info.
$600 USD in 7 days
5.0 (112 reviews)
6.7
6.7
User Avatar
Hello We would like to get opportunity to work with you and offer you the best. Thank you
$422 USD in 25 days
4.8 (72 reviews)
6.7
6.7
User Avatar
Hello! I understand what you want for this project, I can sure that I can complete this for you. Please contact with me to start working, thanks
$555 USD in 5 days
4.8 (78 reviews)
6.2
6.2
User Avatar
Ready to start work
$443 USD in 7 days
4.9 (140 reviews)
5.3
5.3
User Avatar
hello i have gone through your requirement CAN WE DISCUSS IN FURTHER DETAIL?? thank u
$421 USD in 10 days
5.0 (28 reviews)
5.1
5.1
User Avatar
Hi there, We are experts in PHP Open Source (any kind of PHP/MySQL work),wordpress and Ajax/Web 2.0 technology. Some of the projects we completed for php are mentioned below https://www.freelancer.com/projects/Linux-Bulk-Marketing/Interspire-Geolocalization.html https://www.freelancer.com/projects/PHP-HTML.1/Seamless-billing-login-website.html https://www.freelancer.com/projects/Linux-Bulk-Marketing/Interspire-Geolocalization.html https://www.freelancer.com/projects/PHP-Linux/Script-Cron-FTP-files.html
$360 USD in 3 days
4.9 (16 reviews)
5.0
5.0
User Avatar
Dear sir. Please check PMB. Thank you
$400 USD in 7 days
4.4 (18 reviews)
4.7
4.7
User Avatar
Hi, Thank you for considering our proposal and please contact us for further discussions. Please check your PMB for more details and portfolio. Thanks!
$500 USD in 10 days
5.0 (3 reviews)
4.1
4.1
User Avatar
Thank you for giving your precious time to review my bid and check PM!
$360 USD in 5 days
5.0 (1 review)
0.8
0.8
User Avatar
Our core competence is in mobile Application development guaranteed to be delivered on time and within budget. Please see your In-box for further details. Thank you.
$555 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Baltimore, United States
5.0
32
Payment method verified
Member since Oct 3, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.