Skip to content

Commit

Permalink
Merge pull request #30 from onedesign/feature/gifts
Browse files Browse the repository at this point in the history
Adds Gift and GiftMessage to the order fields
  • Loading branch information
michaelramuta authored May 8, 2017
2 parents 2d9d09e + 8e6f29d commit 42a259e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion services/OneShipStation_XmlService.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,13 @@ public function address(\SimpleXMLElement $xml, Commerce_AddressModel $address=n
* @return SimpleXMLElement
*/
public function customOrderFields(\SimpleXMLElement $order_xml, Commerce_OrderModel $order) {
$customFields = ['CustomField1', 'CustomField2', 'CustomField3', 'InternalNotes'];
$customFields = [
'CustomField1',
'CustomField2',
'CustomField3',
'InternalNotes',
'Gift',
'GiftMessage'];
foreach ($customFields as $fieldName) {
if ($customFieldCallbacks = craft()->plugins->call("oneShipStation{$fieldName}")) {
foreach ($customFieldCallbacks as $callback) {
Expand Down

0 comments on commit 42a259e

Please sign in to comment.