Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

use getLabel() from currency #606

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ProductBundle/Seo/Services/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function alterPage(SeoPageInterface $seoPage, ProductInterface $product):
->addMeta('name', 'twitter:title', $product->getName())
->addMeta('name', 'twitter:description', substr((string) $product->getDescription(), 0, 200))
->addMeta('name', 'twitter:label1', 'Price')
->addMeta('name', 'twitter:data1', $this->numberHelper->formatCurrency($product->getPrice(), $this->currencyDetector->getCurrency()))
->addMeta('name', 'twitter:data1', $this->numberHelper->formatCurrency($product->getPrice(), $this->currencyDetector->getCurrency()->getLabel()))
->addMeta('name', 'twitter:label2', 'SKU')
->addMeta('name', 'twitter:data2', $product->getSku())
->addMeta('name', 'twitter:site', $this->site)
Expand Down