magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Issue in product title with special chars in mini cart

Open Sunil-Nethues opened this issue 8 years ago • 15 comments

Preconditions

  1. Magento 2.2.2 version
  2. Php version 7, Linux
  3. default Luma theme

Steps to reproduce

  1. create a product titled Fusion Backpack ™
  2. go to front end the product title comes up correctly as Fusion Backpack ™ then add it to cart
  3. in the mini cart it shows it as Fusion Backpack ™ and not converting ™ to ™

Expected result

  1. Mini cart should also show the correct product title after converting the html equivalent to characters

Actual result

  1. errr

Sunil-Nethues avatar Feb 14 '18 11:02 Sunil-Nethues

@Sunil-Nethues , thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please provide more detailed steps to reproduce or try to reproduce this issue on a clean installation without any extensions if you have.

product_name_01281280980

magento-engcom-team avatar Feb 14 '18 11:02 magento-engcom-team

Hello @magento-engcom-team , i have a fresh installation of v 2.2.2

The site can be seen at http://magento6.newsoftdemo.info/m22.2.2/fusion-backpack.html

Sunil-Nethues avatar Feb 14 '18 11:02 Sunil-Nethues

@Sunil-Nethues , thanks for you update. We cannot reproduce this issue with sample data too.

backpack

magento-engcom-team avatar Feb 15 '18 11:02 magento-engcom-team

@Sunil-Nethues Please let us know how you installed Magento 2.2.2 Using zip file or composer install

I've also reproduced the issue but didn't find the issue with sample data on fresh composer install.

ananth-iyer avatar Feb 15 '18 13:02 ananth-iyer

@Ananth747 i have installed the magento2.2.2 using composer. then installed sample data using composer as well. After that i went to admin and changed the product name from Fusion Backpack to Fusion Backpack &trade and then tried to add it in cart. where i saw the issue.

Sunil-Nethues avatar Feb 19 '18 06:02 Sunil-Nethues

@Sunil-Nethues, thank you for your report. We've acknowledged the issue and added to our backlog.

magento-engcom-team avatar Feb 19 '18 12:02 magento-engcom-team

@Sunil-Nethues this is because Magento just shows the product name as a plain text, not a HTML. But, I ask myself it makes sense if allowing HTML in the product name?

mrkhoa99 avatar Feb 24 '18 03:02 mrkhoa99

Hi @Sunil-Nethues. Thank you for your report. The issue has been fixed in magento/magento2#13802 by @afirlejczyk in 2.3-develop branch Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

magento-engcom-team avatar Mar 14 '18 08:03 magento-engcom-team

The same issue I could get reproduced in cart summary section of checkout page. To fix that need to update vendor\magento\module-checkout\view\frontend\web\template\summary\item\details.html

Use: <strong class="product-item-name" data-bind="html: $parent.name"></strong>

instead

<strong class="product-item-name" data-bind="text: $parent.name"></strong>

saravananvelu avatar Apr 12 '18 09:04 saravananvelu

Hi @Sunil-Nethues. Thank you for your report. The issue has been fixed in magento/magento2#14665 by @ampulos in 2.1-develop branch Related commit(s):

The fix will be available with the upcoming 2.1.15 release.

magento-engcom-team avatar Apr 13 '18 12:04 magento-engcom-team

Hi @Sunil-Nethues. Thank you for your report. The issue has been fixed in magento/magento2#14681 by @ihor-sviziev in 2.2-develop branch Related commit(s):

The fix will be available with the upcoming 2.2.5 release.

magento-engcom-team avatar Apr 14 '18 00:04 magento-engcom-team

It looks to me like the fix only works for products with links? The knockout.js type on the non-link product title also needs changing to html.

geoffbeaumont avatar Sep 17 '18 09:09 geoffbeaumont

I'm running 2.2.7 and this problem has always occurred for us. It was never fixed in 2.2.5

InternetMedicineMan avatar Mar 13 '19 04:03 InternetMedicineMan

Hi @InternetMedicineMan, Could you report separate issues for that? Thank you!

ihor-sviziev avatar Mar 13 '19 05:03 ihor-sviziev

For anyone having this issue in later versions, make sure that you don't have an extension that is re-introducing the problem. E.g. Aitoc PreOrders v2.2.0 re-introduced the issue via its own version of

view/frontend/web/template/minicart/item/default.html

j-lloyd-slc avatar Nov 06 '19 21:11 j-lloyd-slc