Product Tags are not store specific

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
Hi

We have a multistore setup in nopcommerce

we have a problem with PRODUCT TAGS appearing same for all stores in sitemap

example -
store 1 = 5 products with 2 tags each = 10 tags
store = 10 products with 1 tag each = 10 tags

now for sitemap
it should be
store1.com/sitemap.xml = 10 tags
store2.com/sitemap.xml = 10 tags

but for both stores all 20 tags are appearing

there is no separate store assignment for tags either

we have assigned products properly to both stores with their tags into their products but still tags are showing same in both stores

any solution? or is it a bug of nopcommerce?
3 年 前
You could change the program to display only the tags associated with the products that are displayed
You would need to modify the code where it does the GetAllProductTags() routine in
Nop.Web\Factories\CommonModelFactory.cs
3 年 前
Thanks for quick reply but as we have not installed / developed nopcommerce, we dont know how to change. we have downloaded microsoft visual studio but dont know how to connect to nopcommerce installed folder on server! could you please advice how to access what you have suggested - "Nop.Web\Factories\CommonModelFactory.cs" in visual studio?

i hope you got the query!

product tags are displaying properly as per products assigned to stores but in xml sitemap, they are clubbing them all together for all stores. (displaying all tags on all stores) and there is no such settings in nopcommerce admin.

please advice, is it a bug in nopcommerce 4.3?
3 年 前
mituloz wrote:
in xml sitemap, they are clubbing them all together for all stores. Is it a bug in nopcommerce 4.3?

Yes this is how it works. It is not a bug as such - it is just the current design - maybe it will be changed for future versions. You can make a suggestion at github or in the forum.

mituloz wrote:
we have downloaded microsoft visual studio but dont know how to connect to nopcommerce installed folder on server!

If you plan to make changes you need to setup a development environment. Open the solution and locate that routine. Make changes. Test and debug the changes. Then when it is working Publish the solution and then copy the updated .dll's to the webserver.

You can look at the routine where the tags do get seperated by Product which is in
PrepareProductTagModels(...) in file
Nop.Web\Areas\Admin\Factories\ProductModelFactory.cs
3 年 前
Thanks for the suggestion. Here is a work item for this.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.