Full Format in Short Description

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I want content of short description in Create a Product with richeditor that copy and paste without lose format.
I want my site display short description of list specification product.
Thanks!
9 years ago
Hi,

You have several options to achive this.

1. You could make modifications to Nop source.

More specifically you could go to Presentation / Nop.Web / Extensions / Controller Extension and in PrepareProductSpecificationModel to add some custom logic for addding the Product Short Description as specification.

The simplest way would be to just add new specification option to model.

But keep in mind by doing something like this you would have to merge the ControllerExtension when you upgrade.

2. The other way would be to use a plugin.

For example you could use Nop Quick Tabs.

This way you would not had to merge when you upgrade to newer version.
9 years ago
How to apply in non-source
9 years ago
If you don't have the development version and you could not use it for some reason, your only good option would be to use a plugin.
9 years ago
Thanks for answers, hope in next nopCommerce
9 years ago
ngtrian wrote:
I want content of short description in Create a Product with richeditor that copy and paste without lose format.
I want my site display short description of list specification product.
Thanks!


Hi,

You can do it by following steps:

- Open the "Nop.Admin/Views/Product/_CreateOrUpdate.Info.cshtml" file
- Modify following line of code:
ORIGINAL

@Html.TextAreaFor(model => model.Locales[item].ShortDescription, new { style = "Width: 250px; Height: 150px;" })

MODIFIED

@Html.EditorFor(model => model.Locales[item].ShortDescription, "RichEditor")

Hope this help :)
9 years ago
Thanks so much
I'm using.
7 years ago
Hello,

I am using nop no source v3.7 and I have done the modifications but RichEditor does not show up at all.

Any ideas why?

Any help would very much be appreciated.


Cheers,

Bill
7 years ago
DrBix wrote:
Hello,

I am using nop no source v3.7 and I have done the modifications but RichEditor does not show up at all.

Any ideas why?

Any help would very much be appreciated.


Cheers,

Bill


Please change

@Html.TextAreaFor(model => model.Locales[item].ShortDescription, new { style = "Width: 250px; Height: 150px;" })

By

@Html.EditorFor(model => model.Locales[item].ShortDescription, "RichEditor")


And also change

@Html.TextAreaFor(x => x.ShortDescription, new { style = "Width: 250px; Height: 150px;" })

By

@Html.EditorFor(x => x.ShortDescription, "RichEditor")

at Administration==>Views==>Product==>_CreateOrUpdate.Info.cshtml (nopcommerce 3.7)
7 years ago
Ahh I forgot to change the second one....works now.

Many thanks Sina :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.