Find Jobs
Hire Freelancers

Connect WordPress WooCommerce orders with Posts to Posts

$15-85 USD / hour

Cancelled
Posted almost 11 years ago

$15-85 USD / hour

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: 4778043

About the project

3 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
3 freelancers are bidding on average $63 USD/hour for this job
User Avatar
Hi I have 8 years of experience in WordPress Design and development. Please check my latest work.
$20 USD in 40 days
4.6 (59 reviews)
6.8
6.8
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
$103 USD in 2 days
4.9 (16 reviews)
5.0
5.0
User Avatar
Hello, after reading though your description I got interested in working on your project. I can guarantee extraordinary and quality result in a short time. Hello, after reading though your description I got interested in working on your project. I can guarantee extraordinary and quality result in a short time. I'm a Joomla expert. Can begin working now and deliver a 100% accurate, high quality results. Fast and professional.
$66 USD in 65 days
5.0 (10 reviews)
4.0
4.0
User Avatar
I am highly interested and ready to start now. Hope to work more with you. Dear!
$55 USD in 3 days
5.0 (5 reviews)
3.2
3.2
User Avatar
Thank you for giving your precious time to review my bid and check PM!
$51 USD in 3 days
5.0 (1 review)
0.8
0.8

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.