Skip to content

leedavi/NBrightBuyDepot

Repository files navigation

NBrightBuyDepot

Multiple Depots for NBrightBuy

Description

This plugin will allow NBS to send emails to different Depots when an order is placed on the store.

Installation

Install as a normal DNN module.

After installation a UI for Depots will appear in the BO of NBS.

Usage

Create the different depots in the UI created on the BO of NBS.

Assign a depot to each client that uses a depot. This is done in the UI of the Admin>Sales>Client or by importing the data. (See "Bespoke client fields", "Import")

Import

If you place a file called "depotimport.csv" in the "\Themes\config\Default" folder it will be imported as "Client"/"Depot" link.

The format of the file is Client Email,Depot ref.

E.g.

[email protected],01 [email protected],02 [email protected],03 [email protected],02

The file will be deleted after importation.

Bespoke Client Fields

A bespoke field can be created in the Client UI, to allow depots to be manually assigned to clients.

The template required is included in the NBrightBuyDepot modules and can be found in the Module Folder.

It is called "clientfields.cshtml".

This file should be placed in the "\Themes\config\Default" folder.

Security Roles

A security role called "hasaccount" will be assign to all imported clients, when they make there first purchase. It will also, be assigned to the clients who has had the "Has Account" checkbox set to True in the Client detail page.

This role is attached using the "ValidateCartAfter" event.

If the role "hasaccount" is not existing in the Portal, then the rolle will NOT be create or assigned.