Suljettu

Modifying code for google cloud printing

Hi, I have set up google cloud print to automatically print my orders from woo commerce, and now I need so php code to filter the orders to route to specific printers. i have an example of what I need, can you help?

<?php

add_filter('google_cloud_print_proceed', 'my_google_cloud_print_proceed', 10, 7);

function my_google_cloud_print_proceed($proceed, $printer_id, $title, $document, $prepend, $copies, $options) {

// If it is not a WooCommerce order, then hand control back

if (empty($options['order_id'])) return $proceed;

// Get the order details

$order_id = $options['order_id'];

$order = wc_get_order($order_id);

$order_meta_data = $order->get_meta_data();

/*

Do something based on the order, according to what you require...

if ($order_meta_data['key'] ... ) {

// Suppress this print job

return false;

}

*/

// If our conditions did not match, then leave things as they were

return $proceed;

Taidot: Javascript, MySQL, PHP, tietojärjestelmäarkkitehtuuri, WordPress

Näytä lisää: chrome //devices add printer, how to use google cloud print, google cloud print javascript example, google cloud print connector, google cloud print api example, google cloud print download, google cloud print setup, google cloud print android, Hotel Reservation record based on Cloud SQL based database, hosted on google cloud environment, Hotel Reservation record based on Cloud SQL based database, hosted on google cloud environment., wpf google cloud printing, php server code google cloud messaging, code java cloud printing, cloud printing code, google cloud print java code

Tietoa työnantajasta:
( 0 arvostelua ) United Kingdom

Projektin tunnus: #15428678

5 freelanceria on tarjonnut keskimäärin 289 £ tähän työhön

TenStar718

Hello, and thanks for the opportunity to bid on your project. [url removed, login to view] Relevant Skills and Experience Web(PHP, MySql, HTML5, Java) and Mobile (Native and Hybrid). I am also an expe Lisää

105 £ GBP 1 päivässä
(206 arvostelua)
8.4
150 £ GBP 3 päivässä
(24 arvostelua)
5.0
iwaduarte

I'll be glad to assist you in this task. Please before decide for another freelancer check my reviews and you will see I am the best freelancer to help you. Relevant Skills and Experience I have the best price wit Lisää

170 £ GBP 3 päivässä
(12 arvostelua)
4.2
OLIVEFER56

Hey, We're a team of Professional developer. Working on our startups and freelancing on the side to create an added revenue stream. We have expertise based on your requirements. Let's start working!

242 £ GBP 5 päivässä
(4 arvostelua)
3.6
ritwebtech

Okay I will do php code to filter the orders to route to specific printers. Relevant Skills and Experience I have more than 7 + years experience in designing websites using Photoshop, HTML, CSS, JS, Bootstap, JQuer, Lisää

777 £ GBP 10 päivässä
(10 arvostelua)
3.6