Store Name - It just does not change

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

I have changed the store name but it does not change on the site. I have noticed that your trial site also has the error.

Regards
12 years ago
Please see this: https://www.nopcommerce.com/boards/t/10981/edit-home-page-v-20.aspx
12 years ago
abcd_12345, thank you for the reply, but it is incorrect. Your link directs you to where to change the store name which should then appear in the footer. This is the error. The code in the footer is this:

<div class="footer-disclaimer">
        @T("Content.CopyrightNotice", DateTime.Now.Year.ToString(), "Store name here")
    </div>
    <div class="footer-storetheme">

Therefore regardless of what you add as your store name, it will never change. The coding is incorrect. I'm only just learning cshtml so alas, I don't know what to use to correct the error.
12 years ago
wattledbulbs wrote:
abcd_12345, thank you for the reply, but it is incorrect. Your link directs you to where to change the store name which should then appear in the footer. This is the error. The code in the footer is this:

<div class="footer-disclaimer">
        @T("Content.CopyrightNotice", DateTime.Now.Year.ToString(), "Store name here")
    </div>
    <div class="footer-storetheme">

Therefore regardless of what you add as your store name, it will never change. The coding is incorrect. I'm only just learning cshtml so alas, I don't know what to use to correct the error.


I'm surprised the Team has not answered this yet. (Maybe if it was posted in "Bugs"  :)
In any case, here's what I did (but I'm not an MVC expert, and this would seem to violate it  - where's the model?  Or am I missing something?)

@{
    var storeName = Nop.Core.Infrastructure.EngineContext.Current.Resolve<Nop.Services.Configuration.ISettingService>().GetSettingByKey("storeinformationsettings.storename", "Store name here");
}
  ...
        @T("Content.CopyrightNotice", DateTime.Now.Year.ToString(), storeName)
12 years ago
New York wrote:
I'm surprised the Team has not answered this yet.

Maybe, because the question is not clear. What exactly it not changed on the site? I can also guess.

Go to Admin area > Configuration > Settings > General settings. Then 'SEO settings' tab and set 'Default title' (not 'Store information' tab and 'Store name'). After it's done, the title will be changed
12 years ago
Going to Admin/Setting/GeneralCommon /         Store name

Changing store name doesn't change the store name in footer copyright  line, why ?

where to change copyright ? and also store name does not change in the title also.

in SEO tab, I save the title but in page title is is showing Store Name. Title I type in SEP Tab

how to change store name in page title also ?
12 years ago
a.m. wrote:
I'm surprised the Team has not answered this yet.
Maybe, because the question is not clear. What exactly it not changed on the site? I can also guess.


Andrei,
No need to guess.  He says "footer" and shows the code that generates the footer, where it appears that "Store name here" is hard coded.
(Is my code change acceptable within the nop "framework", or am I missing something? Or, should the framework have provided a Model?)


Pepper,
Andrei's answer is correct regarding Title coming from SEO settings.  But for copyright footer, I think you need to make change I indicated above.
12 years ago
New York wrote:
Is my code change acceptable within the nop "framework", or am I missing something? Or, should the framework have provided a Model?

You're right. There should be a model.
12 years ago
a.m. wrote:
Is my code change acceptable within the nop "framework", or am I missing something? Or, should the framework have provided a Model?
You're right. There should be a model.


So is this going to get fixed in the next release?  Right now, I'm going to need to hard code it.
12 years ago
SDDP wrote:
So is this going to get fixed in the next release?

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