Download and use of Nop3.9

零下一度
Release: 2017-06-23 15:10:53
Original
1955 people have browsed it

1: Chinese resources

First go to the Nop official website and download the 3.9 Chinese package. This Chinese package is not fully translated and can be modified slowly during the customization process. Official website address www.nopcommerce.com.

Go to the backend Configuration -> Languages ​​

#Add a simplified Chinese After saving the record, import the Chinese package and switch the language at the top of the page.

2: UI Chineseization

Libraries -> Nop.Core -> CommonHelper - > SetTelerikCulture() method

##Presentation -> Nop.Admin -> Views -> Shared -> _AdminLayout.cshtml

Add reference

Html.AppendScriptParts(string.Format("~/Administration/Scripts/kendo/{0}/cultures/kendo.culture.zh-CN.min.js", kendoVersion));
Html.AppendScriptParts(string.Format("~/Administration/Scripts/kendo/{0}/cultures/kendo.messages.zh-CN.js", kendoVersion));
Copy after login
<script>kendo.culture("zh-CN");</script>
Copy after login
Three: Editor

Personally, I don’t like the default editor very much, so I use Baidu’s UEditor rich text editor. UEditor official website

Presentation -> Nop.Web -> ;Create the folder uditor under Content and copy the downloaded file to the uditor folder.

##Presentation -> Nop.Admin -> Views -> Shared -> Create the page UEditor.cshtml

@model String
@using Nop.Core
@using Nop.Core.Domain.Common
@using Nop.Services.Security
@using Nop.Web.Framework.UI
@{
    Html.AddScriptParts("~/Content/ueditor/ueditor.config.js");
    Html.AddScriptParts("~/Content/ueditor/ueditor.all.js");
    Html.AddScriptParts("~/Content/ueditor/lang/zh-cn/zh-cn.js");
}<script>UE.getEditor("@ViewData.TemplateInfo.GetFullHtmlFieldId(string.Empty)", {
        initialFrameWidth: "100%",initialFrameHeight: 400});</script>@Html.TextArea(string.Empty, /* Name suffix */ViewData.TemplateInfo.FormattedModelValue /* Initial value */)
Copy after login

under EditorTemplates and call the editor

in the background

The effect is as follows:

About styles and file downloads For paths and other configurations, just go to the Api documentation. There are also corresponding comments in js.

The above is the detailed content of Download and use of Nop3.9. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!