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 : Saturday, January 20, 2024 12:16:19 PM(UTC)
ray22901031

Rank: Advanced Member

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

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
Hello everyone,

I need to alter the following view file: Views -> Product-> _ProductSchtml.cshtml

What I need to Do:

I need to change this
"description": "@Model.Description"
to
"description": "@Model.MetaDescription"

Why:
Because the description has a lot of HTML formatting and has too much information for Google to digest, and I can better control the description by using the meta description field.

The Problem:
@Model.MetaDescription is not within the scope of this file.

Without me having to go through dozens of files, what is the file that I need to modify so I can switch the above code? I believe it's ProductSchemaModel.cs, but I wish to make sure.

Thanks

Edited by user Saturday, January 20, 2024 6:23:06 PM(UTC)  | Reason: Not specified

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

ray22901031  
#2 Posted : Sunday, January 21, 2024 6:21:33 PM(UTC)
ray22901031

Rank: Advanced Member

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

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
Got it working.
Users browsing this topic
Guest
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.