Home Backend Development C#.Net Tutorial Download and use of Nop3.9

Download and use of Nop3.9

Jun 23, 2017 pm 03:10 PM
custom made Chinese series

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Xiaomi 15 series full codenames revealed: Dada, Haotian, Xuanyuan Xiaomi 15 series full codenames revealed: Dada, Haotian, Xuanyuan Aug 22, 2024 pm 06:47 PM

The Xiaomi Mi 15 series is expected to be officially released in October, and its full series codenames have been exposed in the foreign media MiCode code base. Among them, the flagship Xiaomi Mi 15 Ultra is codenamed "Xuanyuan" (meaning "Xuanyuan"). This name comes from the Yellow Emperor in Chinese mythology, which symbolizes nobility. Xiaomi 15 is codenamed "Dada", while Xiaomi 15Pro is named "Haotian" (meaning "Haotian"). The internal code name of Xiaomi Mi 15S Pro is "dijun", which alludes to Emperor Jun, the creator god of "The Classic of Mountains and Seas". Xiaomi 15Ultra series covers

The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions Aug 29, 2024 pm 03:33 PM

Since the Huawei Mate60 series went on sale last year, I personally have been using the Mate60Pro as my main phone. In nearly a year, Huawei Mate60Pro has undergone multiple OTA upgrades, and the overall experience has been significantly improved, giving people a feeling of being constantly new. For example, recently, the Huawei Mate60 series has once again received a major upgrade in imaging capabilities. The first is the new AI elimination function, which can intelligently eliminate passers-by and debris and automatically fill in the blank areas; secondly, the color accuracy and telephoto clarity of the main camera have been significantly upgraded. Considering that it is the back-to-school season, Huawei Mate60 series has also launched an autumn promotion: you can enjoy a discount of up to 800 yuan when purchasing the phone, and the starting price is as low as 4,999 yuan. Commonly used and often new products with great value

How to localize Windows 11 How to localize Windows 11 Dec 28, 2023 pm 10:49 PM

The current win11 defaults to English after the installation is completed. This may cause many friends to not understand it and it is very inconvenient to use. However, in fact, we have a way to Chineseize win11. Just change the language pack. , let’s take a look at it together. How to Chineseize win11 1. First, click the windows icon below to open the start menu, and then select "settings" in it, as shown in the picture. 2. After opening the settings, find and open "Time&language" 3. After entering the time and language settings, we find "Language" in the left column 4. Then select "preferred language" on the right and click on it

Personalized Discuz navigation bar makes the forum more unique! Personalized Discuz navigation bar makes the forum more unique! Mar 11, 2024 pm 01:45 PM

In the Discuz forum, the navigation bar is one of the parts that users often come into contact with when visiting the website. Therefore, customizing the navigation bar can add a unique personalized style to the forum and improve the user experience. Next, we will introduce how to personalize the navigation bar in the Discuz forum and provide specific code examples. First, we need to log in to Discuz's backend management system and enter the "Interface" -> "Navigation Settings" page. On this page, we can perform various settings and customizations on the navigation bar. Here are some

How to choose between iPhone 15 and iPhone 15 Pro? Nine major differences at once How to choose between iPhone 15 and iPhone 15 Pro? Nine major differences at once Sep 14, 2023 am 08:01 AM

iPhone15 and iPhone15Pro were officially released today. However, as high-end models, the Pro series not only has a higher price, but also has many exclusive features. Consumers must recognize the differences before buying, so as not to discover some problems after buying iPhone15. The function is only available in the Pro series. Although the monitors are equipped with the same display panel, the ProMotion automatic adaptive update frequency technology and the always-on display function are still exclusive to the Pro series. The rest of the iPhone 15 and iPhone 15 Pro series are the same in terms of resolution, contrast, peak brightness, etc. Action button The action button is currently an exclusive design for the iPhone 15 Pro series, allowing users to personalize it.

iOS 18 home screen customization details revealed iOS 18 home screen customization details revealed Mar 27, 2024 pm 05:40 PM

iOS18 home screen customization details revealed As the 2024 Worldwide Developers Conference (WWDC) approaches, the technology community is full of expectations for the next step in iPhone innovation. Among the highly anticipated updates, iOS 18 stands out, especially with its rumored enhancements that promise to redefine the way we interact with our devices. If you're as excited as we are, you'll be happy to know that iOS 18 promises to bring major advancements to iPhone customization, especially when it comes to home screens. At the forefront of these revelations is Mark Gurman, a trusted Apple analyst whose insights have historically proven accurate. According to Mark Gurman, iOS 18 will be the first

VSCode Chinese settings: Personalize your editor VSCode Chinese settings: Personalize your editor Mar 25, 2024 pm 05:00 PM

Title: VSCode Chinese Settings: Personalize Your Editor In today's programmer's work, a powerful, flexible and personalized code editor is an indispensable tool. Visual Studio Code (VSCode for short), as a free and open source modern code editor, is loved by the majority of developers. Like many software, VSCode also supports multiple languages, including Chinese. This article will introduce how to set up the Chinese environment in VSCode to make your editor more

Personalize your Eclipse interface: Personalize the background color Personalize your Eclipse interface: Personalize the background color Jan 28, 2024 am 09:24 AM

Customize your Eclipse interface: Set background color Eclipse is a very popular Java integrated development environment (IDE) that provides rich functionality and plug-in support. When using Eclipse for development, a personalized interface can improve work efficiency and comfort. In this article, we will learn how to set the background color of Eclipse to suit personal preferences and needs. 1. Open Eclipse and enter the "Preferences" interface in Eclipse.

See all articles