Find Jobs
Hire Freelancers

Connect WordPress WooCommerce orders using Posts to Posts

$15-85 USD / hour

Скасований
Опублікований over 10 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') ) );
ID проекту: 4778046

Про проект

3 пропозицій(-ї)
Дистанційний проект
Активність 11 yrs ago

Хочете заробити?

Переваги подання заявок на 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
Спосіб оплати верифіковано
На сайті з жовт. 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)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.