How to hide html code on added to cart notifications?

vmjethwani
New Member
2 0 0

I want two lines to appear in my product name. I separated the product name with br html code.

When I click add to cart the notification pops up and the html code appears in the notification. How do I stop this from happening? 

The html code does not appear anywhere else

Screenshot_20210423-094622.jpg

Screenshot_20210423-090248__01.jpg

 

 

0 Likes
HardikDavra
Shopify Partner
2257 351 969

Place this JS code where the title code is placed.

 

VARIABLE.find(selector).remove();

 

 Place variable name in place of VARIABLE.

or you can try this.

VARIABLE.replace(/(<([^>]+)>)/ig,"")
PageFly - TOP5 in the Shopify app store. Learn More.

For fast Communication: Email: parambabla.soft@gmail.com | Whatsapp
0 Likes
vmjethwani
New Member
2 0 0

Hi paramsoft, Thanks for the quick reply. Unfortunately its not working. The code is now appearing everywhere. Is there any other way to hide the code?

Screenshot (37).png

0 Likes
HardikDavra
Shopify Partner
2257 351 969

Then would you mind to add me as a staff member so that I can analyze the problem and can give you solution.

PageFly - TOP5 in the Shopify app store. Learn More.

For fast Communication: Email: parambabla.soft@gmail.com | Whatsapp
0 Likes