Full Format in Short Description

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 年 前
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 年 前
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 年 前
How to apply in non-source
9 年 前
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 年 前
Thanks for answers, hope in next nopCommerce
9 年 前
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 年 前
Thanks so much
I'm using.
7 年 前
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 年 前
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 年 前
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.