From 372ab69c80d8bb4b2a0d036b7746b1d177e88827 Mon Sep 17 00:00:00 2001 From: Holger Jensen Date: Fri, 12 Mar 2021 15:15:56 +0100 Subject: [PATCH] added Google Shopping feed item sale_price_effective_date --- src/LukeSnowden/GoogleShoppingFeed/Item.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/LukeSnowden/GoogleShoppingFeed/Item.php b/src/LukeSnowden/GoogleShoppingFeed/Item.php index b79b380..b6de24e 100644 --- a/src/LukeSnowden/GoogleShoppingFeed/Item.php +++ b/src/LukeSnowden/GoogleShoppingFeed/Item.php @@ -141,6 +141,15 @@ public function sale_price($salePrice) $this->nodes['sale_price'] = $node->value( $salePrice . " {$code}" )->_namespace($this->namespace); } + /** + * @param $salePriceEffectiveDate + */ + public function sale_price_effective_date($salePriceEffectiveDate) + { + $node = new Node('sale_price_effective_date'); + $this->nodes['sale_price_effective_date'] = $node->value( $salePriceEffectiveDate )->_namespace($this->namespace); + } + /** * @param $description * @param string $encoding