Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
$product['name'] = str_replace('"', '', $item->getName()); // This will remove all double quotes from product name.
Required, but never shown