How to Extract Vendor Attribute in code

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I have set a an attribute called "ExternalUrl" for Vendors. I would like to retrieve this attribute's value on the front-end. The process I'm currently following is:

1) injecting the Vendor Attribute service with: @inject IVendorAttributeService
2) pulling the attributes with vendorAttributeService.GetVendorAttributeById([vendorId])

This pulls content that includes 'Name' that correctly includes "ExternalUrl". However, there is no value associated with "ExternalUrl"

How can I retrieve this value?

Thank you
5 years ago
Sorted. The value of the attributes are stored in general attributes table which can be accessed with the IGenericAttributeService
4 years ago
Hi, I am stuck in similar situation where I want to read the vendor attribute name and it's values on the product cshtml page but not able to do it. I can see the same on admin cshtml page but can't get it on product page.

Can you please help me with this? Thanks.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.