customizing nopcommerce with plugins and themes

34
Customizing nopCommerce with Plugins & Themes Gaines Kergosien @gainesk http://dotnetdude.net Sr. Solutions Architect http://www.vanick.com

Upload: gaines-kergosien

Post on 12-May-2015

819 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Customizing nopCommerce with Plugins and Themes

Customizing nopCommerce with Plugins & Themes

Gaines Kergosien@gainesk

http://dotnetdude.net

Sr. Solutions Architecthttp://www.vanick.com

Page 2: Customizing nopCommerce with Plugins and Themes

2

What is nopCommerce? Open Source

Product Catalog Categories Products/Variants

Customer Management

Order Management Mobile Support Discounts Wish Lists Gift Cards Newsletters

Recurring Payments

Reporting Payment Methods Shipping Methods Taxes External Auth Polls News Blogs Forums Multiple Stores

Page 3: Customizing nopCommerce with Plugins and Themes

nopCommerce Solution

3

Page 4: Customizing nopCommerce with Plugins and Themes

Included Plugins

Page 5: Customizing nopCommerce with Plugins and Themes

Available Plugins

Page 6: Customizing nopCommerce with Plugins and Themes

Project -> Properties

Build Tab

Class Library Project

6

Page 7: Customizing nopCommerce with Plugins and Themes

Group: Discount requirements

FriendlyName: Customer has one of these products in the cart

SystemName: DiscountRequirement.HasOneProduct

Version: 1.13

SupportedVersions: 3.40

Author: nopCommerce team

DisplayOrder: 1

FileName: Nop.Plugin.DiscountRules.HasOneProduct.dll

Description.txt

7

Page 8: Customizing nopCommerce with Plugins and Themes

Discount Rule Plugin

8

Page 9: Customizing nopCommerce with Plugins and Themes

Base Plugin Class

9

Page 10: Customizing nopCommerce with Plugins and Themes

Discount Rule Plugin

10

Page 11: Customizing nopCommerce with Plugins and Themes

Discount Rule Interface

11

Page 12: Customizing nopCommerce with Plugins and Themes

Discount Rule Plugin

12

Page 13: Customizing nopCommerce with Plugins and Themes

Dependency Injection

13

Page 14: Customizing nopCommerce with Plugins and Themes

Dependency Registration

14

Page 15: Customizing nopCommerce with Plugins and Themes

Discount Rule Plugin

15

Page 16: Customizing nopCommerce with Plugins and Themes

Discount Rule Plugin

16

Page 17: Customizing nopCommerce with Plugins and Themes

Questions?

17

Page 18: Customizing nopCommerce with Plugins and Themes

Controllers, Models & Views

18

Page 19: Customizing nopCommerce with Plugins and Themes

Data & Domain Objects

19

Page 20: Customizing nopCommerce with Plugins and Themes

EF Startup Task

20

Page 21: Customizing nopCommerce with Plugins and Themes

Data & Domain Objects

21

Page 22: Customizing nopCommerce with Plugins and Themes

Entity Map

22

Page 23: Customizing nopCommerce with Plugins and Themes

Data & Domain Objects

23

Page 24: Customizing nopCommerce with Plugins and Themes

Object Context

24

Page 25: Customizing nopCommerce with Plugins and Themes

Object Context

25

Page 26: Customizing nopCommerce with Plugins and Themes

Questions?

26

Page 27: Customizing nopCommerce with Plugins and Themes

Event Triggers

27

Page 28: Customizing nopCommerce with Plugins and Themes

Entity Event Triggers

28

Page 29: Customizing nopCommerce with Plugins and Themes

Plugin Administration

29

Page 30: Customizing nopCommerce with Plugins and Themes

Themes

30

Page 31: Customizing nopCommerce with Plugins and Themes

Themes

31

Page 32: Customizing nopCommerce with Plugins and Themes

Questions?

32

Page 33: Customizing nopCommerce with Plugins and Themes

Theme Administration

33

Page 34: Customizing nopCommerce with Plugins and Themes

Contact Info

Blog: http://dotnetdude.net

Email: gaines [at] kergosien.net

Twitter: @gainesk

Rate this talk @ http://spkr8.com/t/35561