I'm need to remove the quote marks from the product name because it is messing up the Data Layer.
$product['name'] = $item->getName();
How can I do it in the above code? Thanks
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityTry this
$product['name'] = str_replace('"', '', $item->getName()); // This will remove all double quotes from product name.
'name'
?