How can I get the store number to the footer area?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi, How can I get the store number to the footer area?



Note : Version 4.20
4 years ago
Hi,
#Open footer page (Views/Shared/Components/Footer/Default.cshtml)
#Add this code at top of Footer page.  
@inject IStoreContext storeContext;

#Add this code to get the store number <div>@storeContext.CurrentStore.CompanyPhoneNumber</div>
4 years ago
maulik.shekhada wrote:
Hi,
#Open footer page (Views/Shared/Components/Footer/Default.cshtml)
#Add this code at top of Footer page.  
@inject IStoreContext storeContext;

#Add this code to get the store number <div>@storeContext.CurrentStore.CompanyPhoneNumber</div>


Thanks You.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.