I have created a shopping cart price rule for discount.
I want to give a free product for some purchase to customers, so I have created a rule and set action for 100% discount on this product.
I have defined product sku under action tab as-
If ALL of these conditions are TRUE :
SKU is gwb-test3
it is working when I add a single quantity, but when we add more than 1 quantity then discount is appear for all quantity, but I want to give discount only one quanity for this product.
Please suggest some rule conditions or actions for this.
Sorry about the product id I didn't read the question right. But here is a link to your solution:
http://www.hostknox.com/tutorials/magento/shopping-cart-price-rules
Search for: Shopping Cart Price Rule Actions
There is your answer :)
Related
Lately, I am trying to tweak Magento 2 Cart Price Rule feature for our business requirements and I realized something. First of all, I need to say that we override Magento\SalesRule\Model\Rule\Condition\Product\Subselect::loadAttributeOptions() because in our location we must apply the discount on top of the tax included amount so we changed the 'base_row_total' with the 'base_row_total_incl_tax'. Here is the scenario;
I have 2 Cart Price Rule;(₺ = currency)
50% discount for items in the cart, with cart condition; amount > 250₺, priority 0
20% discount for items in the cart, with cart condition; amount > 200₺, priority 1
I have a cart with 1 item with a total of 300₺ and let's say that shipping is free. Our requirements say that; it should apply the first cart price rule and should not apply the second cart price rule because after applying the first cart price rule cart total is going down to 150₺ thus second cart price rule's condition is not met from now on.
If we go back to the reality Magento validates conditions by the product's attributes; Magento always looks for the same value, not the discounted fresh value.
Magento\SalesRule\Model\Rule\Condition\Product::validate($model) declares that;
$total += ($hasValidChild && $useChildrenTotal) ?
$childrenAttrTotal * $item->getQty() : $item->getData($attr);
// $attr value is "base_row_total_incl_tax" for our case, and it does not change after every rule process step
return $this->validateAttribute($total); // this func just makes a logical comparison with boolean return
So, what do you think about this topic? Has anyone thought about it, should I just change the $total with the latest discount applied cart amount(using registry) or does anyone have a better idea?
I want to add one extra row on the total of Shopping cart and checkout pages but only for one product when that product will be in the shopping cart.
My requirement is to add the fixed shipping price for only one product that will be plus with other shipping if that product is in the cart.
Any help will be appreciated!!
Thanks.
I have a store where i would like to give 20% discount to some products if a specific product is added.
Example:
I have 8 products A,B,C,D,E,F,G,H
and users selects all the products I only want to give discount on A,B,D,E.
How this can be done using shopping cart rule magento?
With Shopping cart price rules you can apply discount for specific products using product's SKU
This link will help (section X% off specific products)
I am applying a price rule to whole categories in my Magento store but I want to leave out a few of the items within the discounted category.
How can I do this in the price rules?
I have tried everything and it just discounts all the products and still discounts the products I want to leave at full normal price.
Thank you so much!
You can accomplish this with Shopping Cart price rules.
In the Actions section, under "apply the rule to the items matching this criteria":
Let's say I have 10% off coupon code.
This coupon is applicable only to Product B
A customer have in its cart :
Product P1
Product B
Product P2
I don't want my 10% off coupon apply to other product but only to Product B.
Do you know how I can do that within Magento?
Here is the process to create Coupon Code for any particular product:-
Login to Admin
Go to Promotions -> Shopping Cart Price Rules
Click Add New Rule
Fill Rule Information
Set Conditions
On left sidebar, click Conditions tab
Click + button icon
Select Product attribute combination
Click + button icon
Select SKU
Now, you will see SKU is ...
Put your product SKU over there
Please note that the SKU option may not show up by default. (Go to: catalog -> attributes -> manage attributes. Then search for the ‘SKU’ attribute and set the drop down ‘Use for Promo Rule Conditions’ to YES and reindex if needed.)
Set Actions
You can set how much discount you want to give from here
Save Rule
Also as extra information, if you not found SKU in promotion tab you can do following.
Go to: catalog -> attributes -> manage attributes
Search for the ‘SKU’ attribute and set the drop down ‘Use for Promo Rule Conditions’ on YES.
That will solve the problem.
They are not exact answer for the question.
Most of all the right but you have to setup one more thing as below if you want to discount only specific items or specific items in category.
Do it as above
under Shopping Cart Price Rule
Go to Conditions > Remove all conditions
Go to Actions and setup under
"Apply the rule only to cart items matching the following conditions (leave blank for all items)"
If you want to discount specific items, select SKU and input the SKU #
If you want to discount Category items, select category
It will be discounted only setup items even if other items are in the cart.
Go to your shopping cart rules in Admin Panel of Magento. When you create new rule, under conditions tab you have great options to set.
For example you can that this rule will apply only to products of a one category, or product which has defined attribute.
You should check those option, because Magento has many possibilities here.
Login to Admin
Go to Promotions -> Shopping Cart Price Rules
Click Add New Rule
Fill Rule Information
Under Actions :
In Apply the rule only to cart items matching the following conditions (leave blank for all items)
Click on + button, under that select SKU
Now, you can see SKU is ...
Put your product SKU over there
The SKU option wont be there in default, to add that
Catalog -> attributes -> manage attributes
Find SKU
Set "Use for Promo Rule Conditions" to Yes