AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Adding product extendeddescrition to _BuyProductDialog.cshtml
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
How can I obtain the product extended description for this page? I've tried Model.Product.ExtendedDescription and it is null, even though there is content. If I replace it with Model.Product.Sku, it works. The only way I could think of to obtain it was using Product product = AbleContext.Container.Resolve<IProductRepository>().Load(Model.Product.Id); then getting product.ExtendedDescription.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers, Registered Joined: 4/17/2019(UTC) Posts: 80
|
I got this to work by adding ExtendedDescription = product.ExtendedDescription in the ProductController.BuyProductDialog GET method and then @Model.Product.ExtendedDescription in the _BuyProductDialog.cshtml.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hi,
I'd asked the developers to help on this and they indicated that is the correct solution. |
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
It seems like it would be better for a merchant to add a few more product fields to the product model- it looks like it would be maybe a few more lines of typing. You're making it hard for them to customize when the data could be readily available. Merchants want data pieces in unusual places.
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Thanks, Joy. I was hoping to do it without having to have code that would need to be recompiled to make it easier for merchants.
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, System, Admin Joined: 10/18/2018(UTC) Posts: 183
Thanks: 1 times Was thanked: 6 time(s) in 6 post(s)
|
Hello Joy and Judy,
What was the goal of this discussion?
Are we need a dedicated more details widget? |
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Adding product extendeddescrition to _BuyProductDialog.cshtml
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close