Catalog vs. Cart Price Rules
Buddy, this is Ori from Astro web and I'm going to show you how to manage promotions in Magento 2. So Magento has two types of promotions: one is the catalog price rule and the other one is Shopping Cart price rule or cart price rules right here.
If you go to the marketing section and promotions, the difference between the two of them is catalog price rules will actually, based on your rules, will make promotions when a user is browsing the site, when they're browsing the catalog. Either they're on a category page or on the product page, if the rules apply they'll see whatever promotion applies.
The cart price rules do exactly what it says, which is the promotion would be applied in the cart, in the checkout phases. So those are kind of two different things. Now the cart price rules by default has a few more options that you can do, and there's a few differences. Okay, so let's start with the catalog price rules right now.
Creating a New Catalog Price Rule
Okay, so for this example I set up a simple category called shoes and I set up these six products. Now each of them have their own pricing, this is 50 dollars and 50 and 120, etc. So what I want to do is actually make a promotion, either a dollar amount off, maybe ten dollars off, or a percentage off, maybe 10 percent, 20 percent off the entire catalog. So the entire shoes category, everything that is inside this category will have a promotion. So let's start. Okay.
So catalog price rules, I'm going to click on 'Add New'. Excuse me, let's see what happened here. Let's go catalog price rules and click on 'Add New'. Okay, great.
So now we're going to name the actual promotion itself. So let's do right now, twenty percent... let's do ten percent off, okay, all shoes products. So right now, I can... this is my name, it's mandatory. The description is an internal description for me to understand better about the promotion, but this is plenty for me. Okay, the status is active or not, which websites does it apply to, and also which groups does it apply to. Does it apply to a specific group, maybe a VIP group or a wholesale group or for everybody? So if it's for everybody and we allow guest checkout, we want to select all of them.
Now we have to select the timeframe, so I'm just going to do, let's say for the entire month right now. And then the priority. So priority is used to prioritize if multiple promotions apply during the same rule. So sometimes you might have multiple promotions running at the same time and you may or may not wish to have a customer be able to use more than one at a time. And so when we go, when we continue in this video, you'll be able to see and understand better about priority. Okay, so now we set up the name and kind of the default information, right? Which websites, which customers, and what time frame.
Configuring Catalog Rule Conditions, Actions & Priority
So now we're going to provide the condition information. So if you don't do anything, then this promotion will apply always, because the condition in order to apply is of course the time and the groups, but also if all of these conditions are true. And because we don't have anything, then it'll always be true. So what we wanted to do is make this category have the promotion. So let's click on plus and then go here and click on 'category' right there.
Okay, and then I'm going to click here and click right here and then just select my category. So click, and if you select multiple, you'll see there's a comma separated between them. Now when you select the category it'll use the Magento internal ID of that category, so that's why I like to click here to just easily select. Okay, once you finish, let's apply, and now the condition will apply if category is number nine, which is the shoe category.
Now what we need to do is apply the action, which is what is going to happen when the conditions are met. And so if you remember, we named this ten percent off, so I'm actually going to specify that it will apply in its action a percentage of the original price, and 10 percent. And then I would save it. Okay so before I do that I want to explain a few other things. So then the next thing is if you do not want other rules to apply, so other promotions may apply based on other logic that you've set up. If you do not want, you need to use this setting to discard subsequent rules. And so what that means is if you have multiple rules, you need to tell the system which rule will apply first and which rule will apply next. So as a rule of thumb, if you go to the priority, the lower the number, the first it will apply. So for example, one would apply before rule number two, three, four. So you need to use this if you have more than one priority. And if you do want multiple promotions to apply, you can set this, right? So do not discard, continue, and continue. Okay, so once you finish this, you have to save... you have to save it.
Applying the Rule & Advanced Conditions
And in order for it to go live after you save it, although the status is active, you still have to apply it. You have to apply to the system. The system has to kind of make its own calculations to set the promotion live. So you have the option to either save and apply here or what I typically do is click on save and then apply it from the main page. Now both of them are the same, but that's up to you. If you do not do that, then it will not go live. Okay.
Now this message appeared because once you set it live, the system needs to run its own kind of indexing and apply this. So it's basically telling us that one of the indexations are not valid. And every minute this should run on this system. You see right here, catalog rule product has not applied, but if we wait one minute, then it should be fine. Okay, so let's go to... let's go here, let's see if it applied. If not, we gotta wait. Okay, so we gotta wait a little bit.
In the meantime, while we wait this one minute, let's go over a few other options here. Okay, so I'm going to edit this right here and I'm going to go to conditions. And I want to show you a few other things. So number one is you can have more than one rule. So for example, if we selected here, I can select if all of these conditions are true. Maybe category is this and it's a specific attribute set, right? So attribute sets are different types of products. So maybe shoes may have a different attribute set and TVs or something like that. So that is in another video we created, you can see more about attribute sets. It's basically the type of product. Okay, so you can basically have a condition which is all of these, this and this and this and et cetera, or you can have any, right? So you can always play with if this or this applies, then the whole promotion would apply. And so you can also set true/false and you can kind of work with that. Sometimes you want to have negatives, maybe have too many definitions, you can go the other way around and use false. Okay, so let's do this.
The other thing for actions, you can also apply a fixed amount off. So maybe twelve dollars off, doesn't matter what the price is, and we provide twelve dollars off. Okay, that's the idea. This is a catalog price rules. So let's see if indexation has applied. Let's see. Okay, so it looks like it did rerun it. Let's refresh the page, and now you can see that the 10% off applied. It was fifty, now it's 45, etc. So you can see now everything applied. That looks good. Great. So now we finish that.
Now let me remove, let's... let's actually delete this rule, okay, right here. Now we remove that, we finish with that. Okay, so again, it'll take one minute, reindex everything.
Creating a Cart Price Rule with a Specific Coupon
Now let's talk about the cart rules, okay? So let's talk about a few things right here. So we're going to add a new cart rule. Okay, and let's do also, let's say a coupon for five percent off. Okay. So again, the same thing applies, percentages off or dollar amount off.
Okay, so let's make a coupon. So if someone enters a coupon, then they will get, during the checkout, during the cart, they'll get a promotion. Okay. Is it active? Same thing, we apply our websites, we apply our groups. And here I specified 'coupon'. After this we can talk about what types of promotions can work without coupons. Okay, but basically a coupon is kind of like an extra condition.
Okay, so let's do a coupon and let's just call it... what did we do here? 'five off'. Okay, five percent off. 'Use auto generation' will later on enable us to auto generate coupons, but here we specify the specific coupon to be used so I don't want to use auto generation. Now we can set the amount of uses per coupon. So maybe I can have only, only one for whoever uses it. Only one will be available and then if one person uses, another person cannot. So 'uses per coupon' and then 'uses per customer'. Maybe I might have 100 uses for this entire coupon, but I'll limit it one per customer. Okay, and again, this is used for logged in customers only. Okay, so if you have for example, guest checkout, that would not apply. Okay, so now I'm going to specify the time again. I'm going to select this month for example, and priority is the same thing we talked about before, if you want a specific promotion to apply before others.
Okay, public and RSS feed, this is only for you, so let's do it. No, we don't use that. Okay, so let's move on to the next thing.
Cart Rule Conditions and Troubleshooting
So conditions, when does it apply? So number one, it applies when it's active, it's someone surfing this website, and someone's one of these groups, which is correct, and someone uses this coupon in the checkout.
So let's refresh this for a second. Okay, so now we remove the other promotion. Let's add this to cart. Okay, and let's go to the cart and let's go to the actual shopping cart. So the product is fifty dollars. I have a coupon code. Let's use 'five off', and because I didn't save it, of course nothing would happen, right? So no promotions, nothing. Okay, there's nothing applied. Now you see it's not valid, of course.
So now the first condition is all of these plus someone using the coupon. So if I want only to use the coupon and the dates, then all would be would be fine. Okay, so let's click on this for a second. And let's go back. Okay, so let's try it again. Let's apply this 'five off'. And it says you've used the coupon, that's great. And let's see what happened here. Okay, so you use the coupon but it's not applying it. Okay, so we need to continue a few more things here.
Okay, so right now, we're back here, conditions. Okay, so if all of these are met. Now if you go here, we have many different types of things we can select, more than the catalog price rules. I can select that it would apply when you use the coupon, when you have a certain subtotal, for example. Maybe when the subtotal is equal or greater than $100. If you spend more than a hundred dollars and you use this coupon, then it would apply. You can also do things such as maybe the total weight or the payment method, use Bitcoin, use credit card, use PayPal, and get this promotion. You can also do things like maybe the country, shipping in US only for people who use the coupon, etc, etc. Okay, so you can do those things. So let's skip it and let's actually go back for it.
Setting Cart Rule Actions and Applying the Coupon
Okay, so right now it will apply to all products. Now what is the action? Again, if you remember we said five percent off, so same thing applies, let's do percent off, okay, and then five percent. Okay, and then you have some other features, for example maximum quantity and things like that. So I'm going to just keep it the way it is right now. You can apply to shipping, not just to products, and then of course if you want to have more than one rule applied. Okay, and then you can also apply free shipping depending on how you set up your shipping rates. Okay, that'll kind of change. So in this case, all we want to do is apply 5% off.
Now our labels, these are just the names. If you have multiple store views, different languages, you're going to input all the languages right there of the promotion. So when someone applies, we would say '5% off' in all the languages, okay? Right here.
Great. So now this is the manage coupon codes. So this tab is used only if you want to auto-generate. And we didn't select auto-generate before, so everything is grayed out, but if you want to auto-generate, I'll show you shortly how that works. Okay, so I think we applied and now it should work. So now we've actually really applied the 5%. Before we tried to use it and there's no promotion because we didn't set a percentage. So let's go here and let's refresh the cart. Okay, and now that we refresh the cart, the five percent off applied. Before we applied it, it was working but we didn't specify a percentage off, so now you can see that it works.
Okay, so let's edit this again. Okay, perfect. And that... that's basically it so this is a coupon. So let me give you another example here. If I don't want a coupon, then it would only apply this promotion in the cart and checkout based on the conditions. And in this case it means every single product because we didn't set any conditions, right? So that is it. Now so I don't need to show you an example of that, that should make sense.
How to Auto-Generate Bulk Coupon Codes
The last one is if you do want a coupon but you want auto generate, Magento has a nice functionality. So let's do this specific coupon, let's have this blank and check, and then check this box. Okay, so now that I check the box, now I can use 'Manage Coupon Codes'.
So what this basically does is enables us to auto generate a bulk amount. So I can tell it, 'please make for me 50 coupons right here'. And what is the length of the code? So typically before when we said '5 off', that's 4 characters. So the length let's say would be five, and I can tell it to auto generate numbers and letters or numbers and letters, so something like that. And if I want to start with a specific prefix or end with a specific suffix, so let's do this. Let's do this, uh, holidays-. So I want to start with 'holidays-' and then I want to have five characters. So let's click on generate. Okay.
And then I can also use the dash every... characters, of course. So click here, generate. Now I made fifty coupons, you see, 'holidays-' and these are all, all unique. So now when I manage it, I can see when they're created, how many, if they were used, and how many times. So if you create unique coupons, you could potentially use the setting 'uses per customer' maybe really do limit it per one if you want. So that's kind of a more used case. You can do whatever you want.
Conclusion
Okay. And then once you apply, you can give out those coupons. You can export these and then import them into some other system or put them into your newsletter for example and start sending out to all of your customers. That's basically it.
So hope you enjoyed this video. Let me know if you have any questions and I'll be very happy to help. Thank you.