I am using Nop 4.3 and am writing a plugin to call third party service for shipping. I have a checkout attribute for UPS Shipper #. I am able to see what defined attributes are within Nop.
My question is where are the attribute values that have been entered on current shopping cart text boxes?
My log shows this - CA. checkoutParser: <Attributes><CheckoutAttribute ID="2"><CheckoutAttributeValue><Value>AWG123</Value></CheckoutAttributeValue></CheckoutAttribute><CheckoutAttribute ID="1"><CheckoutAttributeValue><Value>artypo</Value></CheckoutAttributeValue></CheckoutAttribute></Attributes>
My question is HOW do I break this apart so I can reference just the checkout attribute 2 ? The attribute 2 is defined as UPS Shipper #
var checkoutAttributesXml = _genericAttributeService.GetAttribute<string>(getShippingOptionRequest.Customer, NopCustomerDefaults.CheckoutAttributes, _storeContext.CurrentStore.Id);
var attributes = _checkoutAttributeParser.ParseCheckoutAttributes(checkoutAttributesXml); foreach (var a in attributes) { var attributeValuesStr = _checkoutAttributeParser.ParseValues(checkoutAttributesXml, a.Id); }