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.