Skip to content

Commit

Permalink
Merge pull request #48 from neeo/master
Browse files Browse the repository at this point in the history
Added missing Feed Item "sale_price_effective_date"
  • Loading branch information
lukesnowden authored Mar 12, 2021
2 parents 56ade41 + 372ab69 commit d2429ab
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

1 comment on commit d2429ab

@neeo
Copy link

@neeo neeo commented on d2429ab Mar 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🥰

Please sign in to comment.