wpsc_shipwire_inventory_warehouse

Located in: shipwire_functions.php

Functions that call this hook: get_inventory_xml() ()

Arguments Accepted: false

Version Introduced: 3.8.9

Description: Ability to query inventory from specific warehouse on ‘wpsc_shipwire_inventory_warehouse’.

Code in context:

[php highlight=”358″ firstline=”350″]

public static function get_inventory_xml( $product_code = ” ) {

$xml = ‘<?xml version="1.0" encoding="utf-8"?>’;

$xml .= ‘<InventoryUpdate>’;

$xml .= ‘<EmailAddress>’ . self::$email . ‘</EmailAddress>’;

$xml .= ‘<Password>’ . self::$passwd . ‘</Password>’;

$xml .= ‘<Server>’ . self::$server . ‘</Server>’;

if ( false !== ( $warehouse = apply_filters( ‘wpsc_shipwire_inventory_warehouse’, false ) ) )

$xml .= ‘<Warehouse>’ . $warehouse . ‘</Warehouse>’;

$xml .= ‘<ProductCode>’ . $product_code . ‘</ProductCode>’;

$xml .= ‘</InventoryUpdate>’;

return apply_filters( ‘get_inventory_xml’, $xml );

}

[/php]