00:00:05:20 - 00:00:06:29
Okay, the last thing I want
00:00:06:29 - 00:00:10:12
to show you in terms of access
permissions is stock management.
00:00:10:26 - 00:00:13:10
Now, this is quite a new bit
of functionality to be honest.
00:00:13:10 - 00:00:16:13
So I would imagine that most of you
aren't aware
00:00:16:13 - 00:00:19:13
that this is
this is possible in the software.
00:00:19:18 - 00:00:24:29
In a nutshell,
what the stock management allows you to do
00:00:25:08 - 00:00:27:27
is it gives administrators
the ability to control
00:00:27:27 - 00:00:30:27
how many of each product
a customer can purchase.
00:00:31:25 - 00:00:33:22
It's a control in much the same way.
00:00:33:22 - 00:00:37:26
So you're still creating rules
essentially using a combination of scopes
00:00:37:26 - 00:00:39:08
and targets.
00:00:39:08 - 00:00:43:01
But it's done in a slightly different way,
where you're defining kind of a limit
00:00:43:14 - 00:00:46:26
to how many of that particular connection
00:00:47:05 - 00:00:50:05
or that product a customer can buy.
00:00:50:19 - 00:00:54:06
So in addition
to just creating those rules,
00:00:54:06 - 00:00:57:16
it will also allow you
to keep track of previous orders.
00:00:57:29 - 00:01:00:29
And we'll deduct it from a customers
available total.
00:01:01:22 - 00:01:04:21
And it will also gives you the ability
to provide a live
00:01:04:21 - 00:01:08:09
display of available stock,
both on the back end
00:01:08:09 - 00:01:12:06
to the administrators, and you can have it
shown on the front end as well.
00:01:12:18 - 00:01:14:09
So let's say someone logs in,
00:01:14:09 - 00:01:17:18
they've already purchased
two of their five product allocation.
00:01:17:28 - 00:01:21:23
It will show them and tell them
when they've only got three left.
00:01:22:01 - 00:01:24:12
And it will give them a warning
if they try and order more than three.
00:01:26:28 - 00:01:29:13
And you don't limited to just using one
or the other,
00:01:29:13 - 00:01:32:17
you can use these
this bit of functionality seamlessly
00:01:32:22 - 00:01:35:23
with the wider access
permission functionality.
00:01:39:25 - 00:01:43:01
So let's take a look
at the stock management settings
00:01:43:01 - 00:01:46:01
and where we control those.
00:01:48:05 - 00:01:50:07
So this is the final tab
00:01:50:07 - 00:01:54:20
that we have on the advanced rules
or the access permissions screen.
00:01:55:00 - 00:01:58:00
So just after where
we've been defining our rules,
00:01:58:03 - 00:02:01:03
if I go to stock management,
00:02:01:04 - 00:02:04:07
the way out of this screen
is virtually identical.
00:02:04:23 - 00:02:07:23
We just want to go to the settings tab
which is underneath.
00:02:09:23 - 00:02:12:04
Just to give us a few
00:02:12:04 - 00:02:15:28
capabilities and on off restrictions
for this particular,
00:02:16:16 - 00:02:19:03
functionality.
00:02:19:03 - 00:02:22:25
The first off is whether or not stock
management is enabled.
00:02:23:05 - 00:02:25:18
So it's disabled by default.
You can turn that on.
00:02:27:22 - 00:02:28:08
You then have a
00:02:28:08 - 00:02:31:08
debug mode, and I'll try
and show you this in a moment,
00:02:31:13 - 00:02:34:13
but that will show you in your browser
console.
00:02:34:23 - 00:02:38:23
The calculation of the stock limits
that are available.
00:02:39:14 - 00:02:41:26
So it will show you how
00:02:41:26 - 00:02:44:26
it's come to the value
that's being displayed on the storefront.
00:02:45:10 - 00:02:48:10
Again, I'll try and show that in a minute.
00:02:48:28 - 00:02:50:01
And then we have the ability
00:02:50:01 - 00:02:53:01
to show stock availability.
00:02:53:01 - 00:02:55:08
So with this unchecked
you can just keep it.
00:02:55:08 - 00:02:57:13
So it's just the back end.
00:02:57:13 - 00:03:00:13
The administrators
that are aware of what stock
00:03:00:13 - 00:03:03:13
availability is, is left.
00:03:04:05 - 00:03:06:18
But if you want this to be made available
to your customers
00:03:06:18 - 00:03:10:14
on the front end as well,
you can turn this on initially
00:03:10:14 - 00:03:13:29
just to say whether or not they have
or don't have any stock remaining,
00:03:14:28 - 00:03:15:09
or if you
00:03:15:09 - 00:03:18:09
want to specifically show them
how much they have left,
00:03:18:13 - 00:03:21:13
you can say display
stock quantity as well.
00:03:24:29 - 00:03:25:13
Okay.
00:03:25:13 - 00:03:28:13
And then I'll save that.
00:03:31:01 - 00:03:31:08
Right.
00:03:31:08 - 00:03:34:10
So now I'll create a rule
which is associated with this as well.
00:03:34:26 - 00:03:37:26
So I'm going to go to stock management.
00:03:38:05 - 00:03:41:05
And I'm going to say add new record.
00:03:42:13 - 00:03:44:23
And again the functionality
is pretty much identical.
00:03:44:23 - 00:03:47:15
The only thing that we have different here
is this limit.
00:03:47:15 - 00:03:50:27
So how much you want to allow them to have
00:03:50:27 - 00:03:53:27
if they meet this particular rule.
00:03:54:29 - 00:03:57:13
So I might need to delete
one of my other rules.
00:03:57:13 - 00:04:02:02
Worth noting that you can't reuse
the exact same scope and target
00:04:02:11 - 00:04:03:23
multiple times.
00:04:03:23 - 00:04:07:18
So I've already created a couple of rules
here covering all of my scenarios.
00:04:07:18 - 00:04:09:17
I think so if I just
00:04:10:17 - 00:04:13:17
delete those just for example purposes.
00:04:19:20 - 00:04:22:20
And I'll create a new stock
management rule.
00:04:22:23 - 00:04:25:23
So I will say that
my introductory customer
00:04:27:09 - 00:04:30:01
introductory product,
00:04:30:01 - 00:04:33:01
they can only purchase 50 quite say.
00:04:35:13 - 00:04:37:26
And then insert.
00:04:37:26 - 00:04:39:04
Now what you'll see
00:04:39:04 - 00:04:43:08
once we've put that rule in there is
you get a plus icon to the left hand side.
00:04:43:26 - 00:04:46:18
Expand this and it will actually show you
the order history.
00:04:46:18 - 00:04:49:23
So it will show you
if that customer has ordered
00:04:49:23 - 00:04:52:23
any of that product,
it will show you the related order number,
00:04:53:04 - 00:04:57:15
which customer ordered that particular
product associated with that rule.
00:04:58:01 - 00:05:01:01
So keep a nice little record for you.
00:05:01:19 - 00:05:04:12
So let's take a look at that.
00:05:04:12 - 00:05:07:04
As an example.
00:05:07:04 - 00:05:09:23
So introduction product
00:05:09:23 - 00:05:12:23
and introductory customer.
00:05:12:27 - 00:05:13:24
Give me one second.
00:05:18:09 - 00:05:18:16
Okay.
00:05:18:16 - 00:05:18:29
There we go.
00:05:18:29 - 00:05:22:07
So I've got my range of products
I'm looking for
00:05:23:23 - 00:05:26:17
introduction product here. Get.
00:05:26:17 - 00:05:29:20
So you can see that
because there is a rule associated
00:05:29:20 - 00:05:33:24
with this, there's a rule
connecting that user and that product.
00:05:34:04 - 00:05:37:04
And it's saying
that I've got 50 available in stock.
00:05:38:12 - 00:05:41:12
Now of course it's not just that's
just not there's the total
00:05:42:09 - 00:05:43:13
stock limits I've got.
00:05:43:13 - 00:05:44:18
I could have hundreds of these.
00:05:44:18 - 00:05:47:23
This is just what that particular user
is capable of accessing.
00:05:48:18 - 00:05:52:03
So if I put a order through of ten
00:05:53:07 - 00:05:56:07
and let's quickly
go through that ordering process.
00:06:19:19 - 00:06:19:27
Okay.
00:06:19:27 - 00:06:22:27
So that order has been placed
for those products.
00:06:22:27 - 00:06:24:26
So if I now
00:06:24:26 - 00:06:28:13
finish and finish impersonation on that
and go back to my access
00:06:28:13 - 00:06:32:09
permissions screen, what I should now
see is that that order
00:06:32:09 - 00:06:35:22
has been registered underneath
that stock management rule.
00:06:36:26 - 00:06:39:27
So stock
management take a look inside the rule.
00:06:39:27 - 00:06:42:27
And we can now see that
that has been registered.
00:06:45:27 - 00:06:47:01
But we should also see
00:06:47:01 - 00:06:50:07
if I go and view that product
or view that customer and product.
00:06:50:07 - 00:06:53:07
Again.
00:07:01:27 - 00:07:04:27
Is I now have a reduced availability
to purchase.
00:07:05:03 - 00:07:08:03
And if I try and do something
higher than that quantity.
00:07:09:16 - 00:07:11:22
I'll try and add that to my basket.
00:07:11:22 - 00:07:14:00
You can clearly see that
it's not going to allow me to do it.
00:07:14:00 - 00:07:17:12
So the restriction is in place
and they cannot put it in their basket.
00:07:23:12 - 00:07:23:21
Okay.
00:07:23:21 - 00:07:24:19
So what we also had
00:07:24:19 - 00:07:28:04
was that debug mode just to show you
how this was actually calculated.
00:07:28:19 - 00:07:32:10
Now I believe this is in the console.
00:07:32:10 - 00:07:37:11
So if I go for F12
to launch my console here.
00:07:40:05 - 00:07:46:15
Now. Let's see.
00:07:46:15 - 00:07:49:05
So if we go debug
00:07:49:05 - 00:07:52:05
stock limit check.
00:08:00:22 - 00:08:01:04
There you go.
00:08:01:04 - 00:08:05:17
So you've got max allowed stock which has
been shown there where it's limit to use.
00:08:05:17 - 00:08:07:17
And then a current customer ordered count.
00:08:07:17 - 00:08:11:11
So it's showing you how
the remaining stock has been calculated.
00:08:11:26 - 00:08:14:26
Now this is only if you have
that debug mode turned on.
00:08:15:17 - 00:08:18:06
So while you're testing that's great.
00:08:18:06 - 00:08:19:20
But you probably want to turn it off
00:08:19:20 - 00:08:21:13
when your customers
are actually utilizing this.