You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the product's name has apostrophs in the name, there is an issue with de javascript.
That's why I had to rewrite the ProductDataLayer to add the fuction htmlspecialchars
`
namespace XXXXX\Design\Block\Rewrite;
use KingfisherDirect\GoogleTagManager\Block\DataLayer;
class ProductDataLayer extends \KingfisherDirect\GoogleTagManager\Block\ProductDataLayer
{
public function configureDataLayer(DataLayer $dataLayer)
{
$product = $this->getProduct();
If the product's name has apostrophs in the name, there is an issue with de javascript.
That's why I had to rewrite the ProductDataLayer to add the fuction htmlspecialchars
`
namespace XXXXX\Design\Block\Rewrite;
use KingfisherDirect\GoogleTagManager\Block\DataLayer;
class ProductDataLayer extends \KingfisherDirect\GoogleTagManager\Block\ProductDataLayer
{
public function configureDataLayer(DataLayer $dataLayer)
{
$product = $this->getProduct();
}
`
The text was updated successfully, but these errors were encountered: