From d2006f8cf5161dc98616a09f63707825335d4afc Mon Sep 17 00:00:00 2001 From: Michiel Vugteveen Date: Tue, 2 Aug 2022 15:58:58 +0200 Subject: [PATCH] add short_title --- src/LukeSnowden/GoogleShoppingFeed/Item.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/LukeSnowden/GoogleShoppingFeed/Item.php b/src/LukeSnowden/GoogleShoppingFeed/Item.php index 2eaeeb1..46ae479 100644 --- a/src/LukeSnowden/GoogleShoppingFeed/Item.php +++ b/src/LukeSnowden/GoogleShoppingFeed/Item.php @@ -98,6 +98,16 @@ public function title($title) $this->nodes['title'] = $node->value($title)->_namespace($this->namespace)->addCdata(); } + /** + * @param $short_title + */ + public function short_title($short_title) + { + $node = new Node('short_title'); + $short_title = $this->safeCharEncodeText($short_title); + $this->nodes['short_title'] = $node->value($short_title)->_namespace($this->namespace)->addCdata(); + } + /** * @param $link */