Find Jobs
Hire Freelancers

Connect WordPress WooCommerce orders using Posts to Posts

$15-85 USD / hour

キャンセル
投稿日: 11年近く前

$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') ) );
プロジェクト ID: 4778046

プロジェクトについて

3個の提案
リモートプロジェクト
アクティブ 11年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に3人のフリーランサーが、平均$49 USD/時間で入札しています
ユーザーアバター
Hi I have 8 years of experience in WordPress Design and development. Please check my latest work.
$20 USD 40日以内
4.6 (59 レビュー)
6.8
6.8
ユーザーアバター
We are wp expert.
$51 USD 40日以内
5.0 (50 レビュー)
6.3
6.3
ユーザーアバター
Hello my name is Moe Loubani and I'm a web developer from Ontario, Canada. Please see the message I sent you to learn more about me and my bid.
$56 USD 10日以内
5.0 (6 レビュー)
5.0
5.0
ユーザーアバター
Hi, Please check the PM for my detailed bid. Thanks, Sam
$77 USD 40日以内
4.8 (3 レビュー)
2.7
2.7

クライアントについて

UNITED STATESのフラグ
Baltimore, United States
5.0
32
お支払い方法確認済み
メンバー登録日:10月 3, 2011

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。