search
HomeBackend DevelopmentC#.Net TutorialDownload and use of Nop3.9
Download and use of Nop3.9Jun 23, 2017 pm 03:10 PM
custom madeChineseseries

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));
<script>kendo.culture("zh-CN");</script>
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 */)

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
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
小米 15 系列全代号曝光:Dada、Haotian、Xuanyuan小米 15 系列全代号曝光:Dada、Haotian、XuanyuanAug 22, 2024 pm 06:47 PM

小米15系列预计将于10月份正式发布,其全系列代号已在外媒MiCode代码库中曝光。其中,旗舰级小米15Ultra代号为"Xuanyuan"(意为"轩辕"),此名源自中国神话中的黄帝,象征着尊贵。小米15的代号为"Dada",而小米15Pro则以"Haotian"(意为"昊天")为名。小米15SPro内部代号为"dijun",暗指《山海经》创世神帝俊。小米15Ultra系列涵盖

华为 Mate 60 系列最佳入手时机,新增 AI 消除 + 影像升级,更可享秋日礼遇活动华为 Mate 60 系列最佳入手时机,新增 AI 消除 + 影像升级,更可享秋日礼遇活动Aug 29, 2024 pm 03:33 PM

自去年华为Mate60系列开售以来,我个人就一直将Mate60Pro作为主力机使用。在将近一年的时间里,华为Mate60Pro经过多次OTA升级,综合体验有了显著提升,给人一种常用常新的感觉。比如近期,华为Mate60系列就再度迎来了影像功能的重磅升级。首先是新增AI消除功能,可以智能消除路人、杂物并对空白部分进行自动补充;其次是主摄色准、长焦清晰度均有明显升级。考虑到现在是开学季,华为Mate60系列还推出了秋日礼遇活动:购机可享至高800元优惠,入手价低至4999元。常用常新的产品力加上超值

iPhone 15 和iPhone 15 Pro 怎么挑?九大差异一次过目iPhone 15 和iPhone 15 Pro 怎么挑?九大差异一次过目Sep 14, 2023 am 08:01 AM

iPhone15与iPhone15Pro在今日正式发表,不过Pro系列作为高端机型,除了价格更高以外,也有许多专属功能,消费者在购买前得先认清差异,才不会在买了iPhone15后,才发现有些功能只有Pro系列才能用。显示器尽管搭载了相同的显示面板,但ProMotion自动适应更新频率技术与永远显示功能仍然是Pro系列专属。其余无论是在解析度、对比度、峰值亮度等层面,iPhone15与iPhone15Pro系列皆相同。动作按钮动作按钮目前是iPhone15Pro系列的专属设计,可以让使用者个人化自

Discuz导航栏个性化定制,让论坛更具特色!Discuz导航栏个性化定制,让论坛更具特色!Mar 11, 2024 pm 01:45 PM

在Discuz论坛中,导航栏是用户访问网站时经常接触到的部分之一,因此定制导航栏可以为论坛增添独特的个性化风格,提升用户体验。接下来将介绍如何在Discuz论坛中进行导航栏的个性化定制,并提供具体的代码示例。首先,我们需要登录到Discuz的后台管理系统,进入“界面”->“导航设置”页面。在这个页面上,我们可以对导航栏进行各种设置和定制。以下是一些

如何汉化Windows 11如何汉化Windows 11Dec 28, 2023 pm 10:49 PM

目前的win11在安装完成后都是默认英文的,这就造成了很多朋友可能会看不明白,使用起来非常不方便,不过其实我们是有办法对win11进行汉化的,只要更换语言包就可以了,下面就一起来看一下吧。win11如何汉化1、首先点击下方的windows图标打开开始菜单,然后在其中选择“settings”,如图所示。2、打开设置之后,找到并打开其中的“Time&language”3、进入到时间和语言设置之后,我们在左边栏中找到“Language”4、接着选择右侧的“preferredlanguage”,点击它下

iOS 18 主屏幕自定义细节揭晓iOS 18 主屏幕自定义细节揭晓Mar 27, 2024 pm 05:40 PM

iOS18主屏幕自定义细节揭晓随着2024年全球开发者大会(WWDC)的临近,科技界对iPhone创新领域的下一步充满期待。在备受期待的更新中,iOS18脱颖而出,尤其是其传闻中的增强功能,有望重新定义我们与设备交互的方式。如果您和我们一样兴奋,您会很高兴知道iOS18有望为iPhone定制带来重大进步,尤其是在主屏幕方面。在这些启示中处于领先地位的是马克·古尔曼(MarkGurman),他是一位值得信赖的苹果分析师,他的见解历来被证明是准确的。根据MarkGurman的说法,iOS18将是自i

VSCode 中文设置:个性化你的编辑器VSCode 中文设置:个性化你的编辑器Mar 25, 2024 pm 05:00 PM

标题:VSCode中文设置:个性化你的编辑器在如今的程序员工作中,一款强大、灵活且个性化的代码编辑器是必不可少的工具。VisualStudioCode(简称VSCode)作为一款免费开源的现代化代码编辑器,受到了广大开发者的喜爱。与许多软件一样,VSCode也支持多语言,包括中文。本文将介绍如何在VSCode中设置中文环境,让你的编辑器更加

个性化你的Eclipse界面:个性化背景颜色个性化你的Eclipse界面:个性化背景颜色Jan 28, 2024 am 09:24 AM

定制你的Eclipse界面:设置背景颜色Eclipse是一款非常流行的Java集成开发环境(IDE),它提供了丰富的功能和插件支持。在使用Eclipse进行开发时,一个个性化的界面能够提升工作效率和舒适度。在本文中,我们将学习如何设置Eclipse的背景颜色,以满足个人喜好和需求。一、打开Eclipse并进入"Preferences"界面在Eclipse中,

See all articles

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.