Skip to content

Commit

Permalink
added Google Shopping feed item sale_price_effective_date
Browse files Browse the repository at this point in the history
  • Loading branch information
neeo committed Mar 12, 2021
1 parent 32577d9 commit 372ab69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/LukeSnowden/GoogleShoppingFeed/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 372ab69

Please sign in to comment.