Update ProductTransformer.php

Additional fields
This commit is contained in:
David Bomba 2017-09-11 12:41:27 +10:00 committed by GitHub
parent cb549ed152
commit 5289564bc5

View File

@ -32,6 +32,8 @@ class ProductTransformer extends EntityTransformer
'tax_rate2' => (float) $product->tax_rate2, 'tax_rate2' => (float) $product->tax_rate2,
'updated_at' => $this->getTimestamp($product->updated_at), 'updated_at' => $this->getTimestamp($product->updated_at),
'archived_at' => $this->getTimestamp($product->deleted_at), 'archived_at' => $this->getTimestamp($product->deleted_at),
'custom_value1' => $product->custom_value1,
'custom_value2' => $product->custom_value2,
]); ]);
} }
} }