Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [rules]

The tag has no usage guidance.

51 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
33 views

Different discount for category products

I want to know is there a way to get different discount for the products in the same category if quantity exceeds a limit. For example: I have these products with these prices: A=10 B=15 C=12 And ...
3
votes
0answers
220 views

How to create a Shopping Cart Price rule for free shipping for all items, with some exclusions?

I have a clean build of CE 1.9.1.1 and have loaded the sample data provided by Magento. I want to set up a Shopping Cart Price Rule for free shipping on all items except 2 SKUs (one simple SKU and it'...
2
votes
0answers
15 views

Magento 2 : Category products dynamic rules get scope between 10% and 20% discount

We have a category where we need to add all products from another category with between 10% and 20% discount. The problem is that some of the products have a special price AND a price-rule which ...
2
votes
1answer
322 views

How to Reset Magento Admin Permission

Admin role have no permissions, when I log in I just see only a extensions. How to reset permission in database MAGENTO 2 version?
2
votes
0answers
146 views

Magento 2: How to validate cart price rule in product view?

I'm trying to show the price rules in the product view, but I can not find a way to validate if a product meets the rule... At the moment I just get all the rules. Block: class RuleDescription ...
2
votes
0answers
728 views

How to set shipping rule in magento2?

How to set below rule? Shipping & Handling Fee is 20% if the order is between $50 to $150, 15% if the order is between $150 to $300.
2
votes
0answers
122 views

Magento salesrule override not working

I want to override the SalesRule model for my custom module, but it already used in another third party module. But the problem is my override is loading always first. And the third party module's ...
2
votes
0answers
168 views

Apply Catalog Price Rules on MSRP

Is there any chance to apply Catalog Price Rules on MSRP[Manufacturer's Suggested Retail Price] by adding option By Percentage on MSRP in the catalog price rules actions
2
votes
1answer
765 views

Magento Rule Based Related Products

We are attempting to set up Rule Based Relations, a feature of Magento Enterprise. Specific Magento version is EE 1.13.1.0 So basically you set which products are the related products, and which ...
1
vote
0answers
20 views

Custom shipping rate logic

I have created a custom shipping method. I need to implement the following logic: Shipping rate = Item weight * Item quantity * Zone rate How to get zone rates in collectRates method?
1
vote
0answers
48 views

100% Discount for matching products with discount code, Max qty 1 per product, Maximum fixed total, with 5 items

We have a clothing shop and are offering the following discount with a code to select customers only... 1 Free Sweatshirt (any size) 1 Free Polo (any size) 1 Free Fleece (any size) 1 Free Coat (any ...
1
vote
0answers
154 views

Magento 2.3.0 How to display only product attribute in custom rule condition into the custom admin form using the ui component

I have implement custom condition Rule to my custom module Take refrance from this link and it is working fine. But it is display also other rule like cart attribute, customer attribute, other ...
1
vote
0answers
62 views

How to get acting to product price rule in Magento 2

/magento-catalog/templates/product/price/final_price.phtml <span class="old-price"> <?php /* @escapeNotVerified */ echo $block->renderAmount($priceModel->getAmount(), [ '...
1
vote
0answers
34 views

Using QTY in Rule-Based Product Relations

Using Magento EE 1.14 and would like to be able to use the inventory quantity for rule-based product relations (related, upsell, cross sell). However, I don't see a way to make the quantity available ...
1
vote
2answers
65 views

How to label products to indicate cart rule has been applied?

I want to display a product label if a cart rule has been applied to a product but the label is being displayed for all products even those who don't qualify for the cart rules. Here is the code I am ...
1
vote
1answer
29 views

Bypass Minimum order ammount for downlodable products

It is possible in a store with 500€ minimum order ammount to set a custom cart rule that allow to bypass the minimum order for a certain type of product or a category? I tried to set up a shopping ...
1
vote
0answers
84 views

How can I add to user a products roles?

I created a user, and I can't add any role to him.. I want to add this roles to my user... my code is below... and when I save the user and the role, I don't see this green "V" on my role.. I just ...
1
vote
1answer
36 views

Magento 2.1 Tax Set Up

I would like to make tax rules in my store: All foreign customers: 0% Tax All Dutch customers: a) up to 10000 Euro: 21% Tax b) from 10000 Euro: 0% Tax How should i do this and is it even possible ...
1
vote
1answer
357 views

Price Rules Free Shipping problems

Is there anyway to configure Magento's Price rules so that if Free shipping is given for purchases which in total are equal to or greater than X AND if a coupon reduces X to a lesser value customer ...
1
vote
0answers
154 views

how to restore deleted Shopping Cart Price Rules in magento 1.8

I accidentally deleted shopping cart price rule "xyz". By doing so all the codes and their statues was also deleted. Can we retrieve this ?
1
vote
0answers
73 views

Creating inventory rules

I have configurable products in my product catalog that i would like to assign a rule to the quanity in stock. for example if i sell sku 2005, inventory needs to remove 1 from sku abc and 1 from sku ...
1
vote
0answers
36 views

Help with magento pricing rule

Hi guys i am having trouble creating a Magento CE price rule. I have created an attribute called deals. It is a drop down box with these combinations: 2 FOR $100 (MIX N MATCH) 2 FOR $80 (MIX N ...
1
vote
1answer
66 views

20% Off one item in a category not working

I'm trying to give 20% off one item in a particular category but the rule I set up is giving 20% off more every item from that category added to the shopping cart. I have the rule set up to limit ...
1
vote
0answers
17 views

Price rule based on number of extra product varieties

Is it possible to make a rule that checks if there is more than one variety of a specific product in the cart, based on the custom options? It should then apply a $10 discount for each additional ...
0
votes
1answer
25 views

Magento 2: Cart price rule condition programmatically

I have a cart price rule whose id is 5. This rule applied for all customers and no condition applied to this. I want to make a condition on this rule is False when the payment method is ...
0
votes
1answer
28 views

How to disable shipping method if weight is more than 30 Kg

I installed this extension https://landofcoder.com/magento-2-table-rate-shipping-extension.html to manage shipping rates but i want to hide it or disable it if weight is more than 30 kg any ...
0
votes
0answers
11 views

M2 - Add coupon codes for the same rule

For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database ...
0
votes
0answers
20 views

Magento 2 cart rules sets

I looked through the questions concerning cart rules, but didnt find any solution for my problem. I did a coupon code working when a customer buys 1 product from category A and 4 items from ...
0
votes
0answers
44 views

Magento 2 ui form component switcherConfig value expression

Doe anyone know at all if possible to have expression to evaluate a value in rules E.G : <switcherConfig> <rules> <rule name="0"> <value>EXPRESSION HERE</...
0
votes
1answer
28 views

Magento 1.9 multiple pricerules pick the highest discount

At our magento site we have some different price rules where some of the products affected are the same. But it should not apply all rules to the product only one, we want it to set the discount ...
0
votes
1answer
69 views

Cart Rules - Not logged in

I've set up a cart rule that applies if: payment method is Bank Transfer. It is always applied, except when an order is placed as a guest. Can you help me? NB: All the user groups present are ...
0
votes
1answer
310 views

Magento 2 How to put a rule condition into the custom admin form using the ui component

Magento 2 custom extension how to put a rule condition into the custom admin form using the ui component with data base interaction. please refer the following rule condition image
0
votes
1answer
25 views

How to set discount code for one country using only?

Can anyone help to teach me how to set specific discount code only for specific country only? Thanks!
0
votes
1answer
27 views

How to set up a promotion rule which enable users to get additional discount for certain bank card holder?

Does anyone know how to set up a promotion rule which enable users to get additional discount for certain bank card holder? Can we create it in Magento 2 default or can anyone suggest an extension if ...
0
votes
0answers
187 views

Used coupon not displaying in admin order

I have generated shopping cart rule which is applied for free shipping. If other rules are applied then it's displaying in order details in admin but free shipping rules is not. I need to know which ...
0
votes
1answer
308 views

Magento 2: Override Price of shipping if customer is logged in?

How would I override the price of shipping if a customer is logged in? For example, Flat rate shipping for guest checkout is $4.99 but if you are logged in you can get it for $2.99. I do no ...
0
votes
0answers
236 views

How to add Condition for apply Promotion rules while create order Programmatically in Magento?

I want to add a condition (whether to apply the promotion rule or not as per the configuration settings) before the Promotion rule applied while create order Programmatically. Can anyone suggest?
0
votes
1answer
46 views

problem VAT for muti views

My website run with the version 2.1.2 I created two views. one for switzerland and one other for France. So, i would like to get two VAT different. 8% for switzerland and 20% for France. But ...
0
votes
1answer
63 views

Cart Promo Rule

How can i set up a cart promo rule : If a customer buy 3 items from products without special price, then he/she get a discount 15% only for items in cart which haven't special price?
0
votes
0answers
328 views

Magento 1.9. Sales rules with quantity in cart not working

Magento sales rules with the next configuration ( Quantity in cart equals or greater than 1 AND Quantity in cart equals or less than 4) not working, it's applyng for product even there are 7 ...
0
votes
2answers
1k views

need to create shopping cart price rule for buy 2 get 5% off and buy 3 get 10% off

I wanted to give an offer to the users. If they buy the same product with qty 2 then 5% off and if they buy 3 then 10% off. I tried it with shopping cart price rules but only one shopping cart price ...
0
votes
1answer
295 views

Can't apply “sale rule” in cart without reload page

How I can determine what "sales rules" is applied after changing set of items in cart without reloading page. Tried something like this, but correct rules applied after reloading page. Magento 1.9.0.1 ...
0
votes
0answers
49 views

Group discount on top of tier price

I have a customer group who gets 10% off on all products. I have product with a tier price set. Default Magento uses the highest "discount". But that means my customer group in some cases gets the ...
0
votes
0answers
448 views

How to apply custom carts rules to quote in magento?

we are creating a module in which we are creating custom rules to apply on cart. Rules creation working fine. But, don't know how to apply that rules to cart/quote. Please share your views, I m ...
0
votes
0answers
97 views

Changing core functionality of Shopping Cart Price Rule

To suite my Payment terms i have considered using Shopping Cart Price Rules since they are easy way out. What the default Shopping Cart Price Rule does is that it applies a fix or percentage based ...
0
votes
1answer
39 views

Using magento price rules for custom price

I have a table with 2 fields: base_price, customer_group_id. Now I need to get price with TAX from the base price (without TAX) for current customer group. How can I do this? Thanks.
0
votes
1answer
213 views

Cart Price Rules: More than two discount at the same time

I have a requirement to apply two discount at the same time on my shopping cart value.. there is any way to do this currently only one shopping cart rule is applied at a time. please give me a ...
0
votes
0answers
690 views

Magento : Shipping rules takes grand total excluding taxes for Subtotal

I use shipping rules to set up a list of different post options. I had to create two rules in order to provide free shipping for all orders within UK over £60. So I created these two rules. Rule one: ...
0
votes
1answer
186 views

Change Price Based on Bundle Options

I have been playing around with bundled products and was wondering if you guys could help with something. In this situation the base product is a phone and the bundle options are different phone plans....
0
votes
1answer
119 views

deleted coupon code keeps showing up as exisiting

im trying to add a new rule and create a coupon code named "Discount", and have used the same name in the past. the problem is: I've deleted that particular coupon a while back, but magento keeps ...