Magento Asked by user90560 on July 26, 2020
Is it possible to set special price automatically based on a attribute?
I have an attribute called offerprice
in which I enter the percentage of discount.
So if the product price is $100 and I enter 10 in the offerprice
field, the special price would automatically be calculated to $90
In this case, You can do some customisation based on that attribute. You have to set Special price also and need to override/customise getFinalPrice() function.
In that function you can check that attribute's value is yes then workflow as it is. If that attribute's value us no then getFinalPrice() == getActualPrice() and. return finalPrice.
Answered by arpit2011 on July 26, 2020
You can create cart price rule based on Attribute. You have create and assign attribute to product.
Attribute Type Yes/No. Based on that attribute value you can create cart price rule and set condition.
Answered by arpit2011 on July 26, 2020
0 Asked on September 21, 2020 by devidas
0 Asked on September 20, 2020 by chirag
2 Asked on September 12, 2020 by anantchopra2007
1 Asked on September 9, 2020 by vadim-shmyrov
2 Asked on September 9, 2020 by h-ferrence
configurable product magento 2 0 2 magento2 price rules tierprice
2 Asked on September 7, 2020 by raphael-at-digital-pianism
1 Asked on September 4, 2020 by sairaj-gadekar
0 Asked on September 2, 2020 by juliano-vargas
0 Asked on August 31, 2020 by stfn
0 Asked on August 30, 2020 by jackom
1 Asked on August 23, 2020
0 Asked on August 23, 2020 by d-verheij
1 Asked on August 12, 2020 by dacod
1 Asked on August 9, 2020 by hudson-alves-triunfante
0 Asked on August 4, 2020 by alex
1 Asked on August 4, 2020 by nuno-sousa
3 Asked on August 3, 2020 by ravindrasinh-zala
4 Asked on July 30, 2020 by zed-blackbeard
Get help from others!
Recent Questions
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP