Where did nop.services.common.GenericAttributeExtensions move to in nop4.1

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi

I am currently migrating a plugin from nop 3.7 to 4.1

In nop 3.7 I could call:
            
var shippingOptions = _workContext.CurrentCustomer.GetAttribute<List<ShippingOption>>(SystemCustomerAttributeNames.OfferedShippingOptions, _storeContext.CurrentStore.Id);


It seems the implementation of generic attributes has moved away from the extensions.

Should I now be using the GenericAttributeService class to implement this?
5 years ago
The answer was right before me ha ha.

        
    
var shippingOptions = _genericAttributeService.GetAttribute<List<ShippingOption>>(OfferedShippingOptions, _storeContext.CurrentStore.Id);
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.