logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
ray22901031  
#1 Posted : Sunday, May 10, 2020 1:46:02 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Hello Everyone,

When you go to a category and you go to the search engine optimization page, the page title that you enter is not displaying in the source code. What is displaying is the category name. The Meta description is working properly and so is the Meta keywords, only the page title is not displaying.

Using version 9.0.2.6218

Many thanks

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

ray22901031  
#2 Posted : Sunday, May 10, 2020 4:46:14 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Please note that the above is also happening in Products, the SEO Page Titles are NOT WORKING.
shari  
#3 Posted : Monday, May 11, 2020 5:25:03 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Hi Ray,

Thanks for identifying the issue. I am able to reproduce the issue. A bug report is registered.

To fix the issue I am sharing a code fix. Please follow the steps given below:

1- Open the file \Website\Controllers\CategoryController.cs

2- Search for the line

Code:
ViewBag.Title = category.Name;


3- And replace with

Code:
string title = category.Title;
            if (string.IsNullOrEmpty(title))
                title = category.Name;
            ViewBag.Title = title;


4- Open the file \Website\Controllers\ProductController.cs

5- Search for the line

Code:
ViewBag.Title = product.Name;


6- And replace with

Code:
string title = product.Title;
            if (string.IsNullOrEmpty(title))
                title = product.Name;
            ViewBag.Title = title;


7- Build the project.

Edited by user Monday, May 11, 2020 5:26:03 AM(UTC)  | Reason: Not specified

thanks 1 user thanked shaharyar for this useful post.
MaximillianC on 6/4/2020(UTC)
ray22901031  
#4 Posted : Monday, May 11, 2020 11:57:46 AM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 909

Thanks: 3 times
Was thanked: 15 time(s) in 15 post(s)
Thank You - All is now working
-Ray
thanks 1 user thanked ray22901031 for this useful post.
MaximillianC on 6/4/2020(UTC)
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.