The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

Category Mappings help!!! Bug?

1 2 >
Posted: September 28, 2012 at 3:08 PM Quote #79930
Hi!

I am going to sell some products that they are same for some categories.

For example:

- I have an 'X' product.
- I have 'A' category and 'B' category and I want to set the 'X' product to these two categories.

I set on product 'category mappings' section that I want to show my 'X' product on these two categories.

Now, the problem is that when I click on one of these categories, instead of going to this category product, the store goes to the category that have the lower display order on category mappings.

Example:

- X product mapped to A category with display order 1
- X product mapped to B category with display order 2

- I click on X product on A category, I go on breadcrumb to: Home/A/X
- I click on X product on B category, I go on breadcrumb to: Home/A/X instead of Home/B/X

What can I do to fix this?

Thanks!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 28, 2012 at 6:03 PM Quote #79935
sabueXo wrote:
Hi!

I am going to sell some products that they are same for some categories.

For example:

- I have an 'X' product.
- I have 'A' category and 'B' category and I want to set the 'X' product to these two categories.

I set on product 'category mappings' section that I want to show my 'X' product on these two categories.

Now, the problem is that when I click on one of these categories, instead of going to this category product, the store goes to the category that have the lower display order on category mappings.

Example:

- X product mapped to A category with display order 1
- X product mapped to B category with display order 2

- I click on X product on A category, I go on breadcrumb to: Home/A/X
- I click on X product on B category, I go on breadcrumb to: Home/A/X instead of Home/B/X

What can I do to fix this?

Thanks!

It is a bug and was reported today vote for the workitem
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Regards

Eduardo

www.tecnofin.com
nopCommerce Solution Partner
-----------------------------------------------------------
Developer of e-Commerce sites since 1996
Mexico - USA - Canada - Chile - Colombia - Costa Rica - Peru
Desarrollo de sitios de comercio electrónico
Posted: September 28, 2012 at 6:10 PM Quote #79936
Ouch... this feature is really important for me...

Thanks for explaining that it's a bug.
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 29, 2012 at 4:42 AM Quote #79951
I think that this is the problem for breadcumb:

- Web\Presentation\Nop.Web\Controllers\CatalogController.cs
- public ActionResult ProductBreadcrumb(int productId)

if (productCategories.Count > 0)
                        {
                            var category = productCategories[0].Category;
                            if (category != null)
                            {
                                foreach (var catBr in GetCategoryBreadCrumb(category))
                                {
                                    model.CategoryBreadcrumb.Add(new CategoryModel()
                                    {
                                        Id = catBr.Id,
                                        Name = catBr.GetLocalized(x => x.Name),
                                        SeName = catBr.GetSeName()
                                    });
                                }
                            }
                        }

Always is getting the 0 position.

This bug is on left category menu too. I am going to try to find where is the problem.
This post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 29, 2012 at 5:18 AM Quote #79954
And here is the problem for left category menu (always get first position):

- Web\Presentation\Nop.Web\Controllers\CatalogController.cs

public ActionResult CategoryNavigation(int currentCategoryId, int currentProductId)
        {
            string cacheKey = string.Format(ModelCacheEventConsumer.CATEGORY_NAVIGATION_MODEL_KEY, currentCategoryId, currentProductId, _workContext.WorkingLanguage.Id);
            var cacheModel = _cacheManager.Get(cacheKey, () =>
            {
                var currentCategory = _categoryService.GetCategoryById(currentCategoryId);
                if (currentCategory == null && currentProductId > 0)
                {
                    var productCategories = _categoryService.GetProductCategoriesByProductId(currentProductId);
                   if (productCategories.Count > 0)
                        currentCategory = productCategories[0].Category;

                }
                var breadCrumb = currentCategory != null ? GetCategoryBreadCrumb(currentCategory) : new List<Category>();
                var model = GetChildCategoryNavigationModel(breadCrumb, 0, currentCategory, 0);
                return model;
            });

            return PartialView(cacheModel);
        }
This post/answer is useful
2
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 30, 2012 at 11:38 AM Quote #80007
eadameg wrote:
Hi!

I am going to sell some products that they are same for some categories.

For example:

- I have an 'X' product.
- I have 'A' category and 'B' category and I want to set the 'X' product to these two categories.

I set on product 'category mappings' section that I want to show my 'X' product on these two categories.

Now, the problem is that when I click on one of these categories, instead of going to this category product, the store goes to the category that have the lower display order on category mappings.

Example:

- X product mapped to A category with display order 1
- X product mapped to B category with display order 2

- I click on X product on A category, I go on breadcrumb to: Home/A/X
- I click on X product on B category, I go on breadcrumb to: Home/A/X instead of Home/B/X

What can I do to fix this?

Thanks!
It is a bug and was reported today vote for the workitem


I see that this issue is set as Low impact. I would set as high or at least as medium impact, this is a great feature that can not be used.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: September 30, 2012 at 2:26 PM Quote #80017
sabueXo wrote:
Hi!
I see that this issue is set as Low impact. I would set as high or at least as medium impact, this is a great feature that can not be used.

They never set impact so all workitems have it as Low ;=)
This post/answer is useful
1
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Regards

Eduardo

www.tecnofin.com
nopCommerce Solution Partner
-----------------------------------------------------------
Developer of e-Commerce sites since 1996
Mexico - USA - Canada - Chile - Colombia - Costa Rica - Peru
Desarrollo de sitios de comercio electrónico
Posted: October 01, 2012 at 4:03 AM Quote #80035
eadameg wrote:
Hi!
I see that this issue is set as Low impact. I would set as high or at least as medium impact, this is a great feature that can not be used.
They never set impact so all workitems have it as Low ;=)


Ok! I understand, thanks!
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: October 03, 2012 at 12:09 AM Quote #80202
The only way to fix it is to store customer browsing history in order to know the last visited category. It could dramatically increase database size. It's not a critical issue and as I know 99% of systems work this way.

Furthermore, the fix can effect search engine results. For one search engines will return one category breadcrumb, for others we could return another breadcrumb (distinct page content).
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Interested in the dedicated Premium support services provided by core developers? Please visit http://www.nopcommerce.com/supportservices.aspx

Regards,
Andrei Mazulnitsyn
Posted: October 03, 2012 at 12:57 AM Quote #80204
a.m. wrote:
The only way to fix it is to store customer browsing history in order to know the last visited category. It could dramatically increase database size. It's not a critical issue and as I know 99% of systems work this way.

Furthermore, the fix can effect search engine results. For one search engines will return one category breadcrumb, for others we could return another breadcrumb (distinct page content).


I agree with you. To me this is a good feature but with a potential SEO issue, and I agree with you when you say 99% of systems work this way. I certainly not see it as a Bug.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Pls up-vote the answer, if it helps you! :)

nopAccelerate - Faster, Reliable & Scalable nopCommerce

http://www.nopAccelerate.com | http://www.xcellence-it.com | http://shop.xcellence-it.com

Need any professional assistance? Drop us your requirements on sales(at)nopaccelerate.com
1 2 >
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more