View order.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "26211", | |
"email": "test@orderdesk.com", | |
"shipping_method": "FedEx Home Delivery", | |
"quantity_total": 1, | |
"weight_total": 1, | |
"product_total": 10, | |
"shipping_total": 11.17, | |
"handling_total": 0.5, | |
"tax_total": 1.2, |
View foxyshop-mailchimp-ecommerce360.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: FoxyShop - MailChimp Ecommerce 360 | |
Plugin URI: http://www.foxy-shop.com/ | |
Description: Extends FoxyShop to add MailChimp Ecommerce 360 tracking to your checkout fields | |
Version: 1.0 | |
Author: SparkWeb Interactive, Inc. | |
Author URI: http://www.foxy-shop.com/ | |
License: GNU GPL v2 | |
*/ |
View addorder.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Setup Items | |
$order_items = array(); | |
$order_items[] = array( | |
"Offer" => array( | |
"Header" => array( | |
"ID" => "FC-Money", | |
), | |
), |
View refeedxml.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Author: David Hollander, www.sparkweb.net | |
//Recommendation: install this script on your server and setup a cron to run it every few hours. | |
//Set Config Details | |
$domain = ""; //yourstore.foxycart.com | |
$apikey = ""; | |
$days_to_check = 7; | |
//Make sure we are set up |
View get-multiple-orders.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Order Desk API: Get Order List | |
//To get your Store ID and API Key, go to Order Desk > Settings > Advanced | |
//Setup | |
$store_id = 0; | |
$api_key = ""; | |
//Setup Query | |
$args = array( |
View foxyshop-wholesale.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
************************************************************************** | |
Plugin Name: FoxyShop Wholesale User Add-on | |
Plugin URI: http://www.foxytools.com/ | |
Description: Adds Wholesale User Support, Advanced Custom Fields required | |
Author: SparkWeb Interactive, Inc. | |
Version: 1.0 | |
Author URI: http://www.sparkweb.net/ |
View api-adding-shipment.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Order Desk API: Insert New Shipments | |
//To get your Store ID and API Key, go to Order Desk > Settings > Advanced | |
//Setup | |
$store_id = 0; | |
$api_key = ""; | |
//Build Shipment Here | |
$new_shipments = array( |
View api-returning-inventory-items.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Order Desk API: Get Inventory Items | |
//To get your Store ID and API Key, go to Order Desk > Settings > Advanced | |
//Setup | |
$store_id = 0; | |
$api_key = ""; | |
//Setup cURL Variables | |
$url = "https://app.orderdesk.me/api/inventory_items"; |
View process-orderdesk-json.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Check For Order | |
if (!isset($_POST['order'])) { | |
header(':', true, 400); | |
die('No Data Found'); | |
} | |
//Cbeck Store ID | |
//Be sure to set your store ID. Ask Order Desk support if you aren't sure what it is. | |
if (!isset($_SERVER['HTTP_X_ORDER_DESK_STORE_ID']) || $_SERVER['HTTP_X_ORDER_DESK_STORE_ID'] != "YOUR-STORE-ID") { |
View api-deleting-shipment.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Order Desk API: Delete Shipments | |
//To get your Store ID and API Key, go to Order Desk > Settings > Advanced | |
//Setup | |
$store_id = 0; | |
$api_key = ""; | |
//Required: source_id or order_id | |
//Required: tracking_number or shipment_id |
OlderNewer