#StackBounty: #magento2 Option Value is empty in Cart Section

Bounty: 100

The Mini-Cart has a problem on my Magento 2 project. When I request the following URL:

/customer/section/load/?sections=cart

I get the following Response:

{
   "cart":{
      "summary_count":2,
      "subtotalAmount":438,
      "subtotal":"<span class="price">CHFu00a0438.00</span>",
      "possible_onepage_checkout":true,
      "items":[
         {
            "product_type":"configurable",
            "options":[
               {
                  "label":"Gru00f6sse",
                  "value":"",
                  "option_id":659,
                  "option_value":""
               }
            ],
            "qty":2,
            "item_id":"253",
            "configure_url":"http://example.com:8000/checkout/cart/configure/id/253/product_id/15828/",
            "is_visible_in_site_visibility":true,
            "product_id":"15828",
            "product_name":"Damen, Herren Anhu00e4ngerkette Basic",
            "product_sku":"738529101742",
            "product_url":"http://example.com:8000/damen-herren-anh-ngerkette-basic-7612690509546-configurable.html",
            "product_has_url":true,
            "product_price":"n    <span class="price-including-tax" data-label="Inkl. Steuern">n            <span class="minicart-price">n            <span class="price">CHFu00a0219.00</span>        </span>nn        </span>nn",
            "product_price_value":203.35,
            "product_image":{
               "src":"http://example.com:8000/media/catalog/product/cache/f485795eb4b45ff97c82d72651274f10/7/6/7612690509546_2d_0001.jpg",
               "alt":"Damen, Herren Anhu00e4ngerkette Basic",
               "width":78,
               "height":78
            },
            "canApplyMsrp":false
         }
      ],
      "extra_actions":"",
      "isGuestCheckoutAllowed":true,
      "website_id":"1",
      "subtotal_incl_tax":"<span class="price">CHFu00a0438.00</span>",
      "subtotal_excl_tax":"<span class="price">CHFu00a0406.69</span>",
      "data_id":1541069457
   }
}

The problem with this response is that the “Option Value” and the “value” are empty and as such are not shown in the cart. In the Backend the Option exists and has a value.

enter image description here

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.