if (docId != null) { var attribute = new ProductVariantAttribute(); attribute.Id = punchOutDocumentId; // add this to the product attributes item.AttributesXml = _productAttributeParser.AddProductAttribute(item.AttributesXml, attribute, docId); _shoppingCartService.UpdateShoppingCartItemAttributes(_workContext.CurrentCustomer, item.Id, item.AttributesXml); }