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

Commit

Permalink
use getLabel() from currency (#606)
Browse files Browse the repository at this point in the history
This file was forgotten in a previous refactoring
  • Loading branch information
salamichel authored and greg0ire committed Oct 10, 2019
1 parent 1330b00 commit 0e81a39
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 0e81a39

Please sign in to comment.