10
votes
How to get the correct Final Price for Product on Listing?
I wanted to get the final_price for the product in /product/view/hero.phtml.
So that I could display the stickers based on the discount. Below is what worked for me after spending some time in Magento ...
- 453
8
votes
Accepted
Display price including tax
Try this in you phtml file.
$_priceIncludingTax = Mage::helper('tax')
->getPrice($_product, $_product->getFinalPrice());
8
votes
Catalog price rule from today does not apply
Problem in this instance is on these lines
$fromTime = (int) strtotime($rule->getFromDate());
$toTime = (int) strtotime($rule->getToDate());
They are not using Magento time methods to take in ...
- 347
8
votes
Accepted
How to set 30% discount on all products in magento shop
Go to Backend , you can see Promotions > Catalog Price Rules > Add New Rule Than enter the information.
Under Rule information ,
status - Active,
Website : Main website
select customer Groups
...
- 3,857
8
votes
Accepted
Magento 2. Add attribute to Catalog Price Rule
It is pretty easy to do this in Magento 2.1. You need to add a row to the catalogrule table using the module (in your own module):
app/code/Vendor/Rules/Setup/InstallSchema.php
namespace Vendor\...
- 3,746
8
votes
How to get the correct Final Price for Product on Listing?
We had to get the final price from a CRON process so our solution was first to set current store
/** @var \Magento\Store\Model\StoreManager */
$storeManager->setCurrentStore(1);
/** @var \Magento\...
- 720
7
votes
How to set 30% discount on all products in magento shop
Connect to the backend
Go to Promotions > Catalog Price Rules
Click Add New Rule
Rule Name: 30% off
Status: Active
Websites : Choose the websites you want to apply the discount for
Customer Groups: ...
6
votes
Shouldn't catalog price rule calculation always happen 3 days in advance?
I spend sometime to understand this :)
And The script calculate prices for the current day, the previous day and the next day.
In Which, Updates include interval 3 days [in Magento 2.2.X]
...
- 7,534
6
votes
What is the process flow of calculation while we add product to cart in Magento
First of all, I would like to point out that Shopping cart price rule different from all others.
In Magento, the lowest amount of below prices will be used as the cart price whenever a product is ...
- 76.5k
6
votes
Accepted
Check if product has catalog price rule
If you don't have many rules or many products you can try this:
$website = Mage::app()->getWebsite();
$product = $this->getProduct();
$rules = Mage::getModel('catalogrule/rule')->...
- 197k
6
votes
1.9.2 Catalogue Price Rules rounding (when more then one rule applied with 'Stop further rules..')
Had exactly same issue. If final price was ending with .50 or lower, it would drop the decimal part, and if .51 and higher, it would keep it.
This started happening as we updated from magento CE 1.9....
- 61
6
votes
Show Grouped product price in catalog view as sum of associated products in grouped product
I just had the same requirement. For a quick solution copy theme file
Magento_GroupedProduct\templates\product\price\final_price.phtml
to your custom theme and sum prices in template with
<?php
...
- 328
5
votes
Accepted
display percentage of discount on product list and product view page in magento
Here is how you can get the discount percentage.
Let's say $_product is the current product instance:
<?php
$originalPrice = $_product->getPrice();
$finalPrice = $_product->getFinalPrice();
...
- 197k
5
votes
Display price including tax
you can do this by tax helper
$_priceInclTax = Mage::helper('tax')->getPrice($_product, $_finalPrice, true,
null, null, null, null, null, false);
Here $_finalPrice=$_product->...
- 76.5k
5
votes
Catalog Price Rule containing several SKU-s doesn't work
Please note that this issue has been solved in Magento EE 1.14.2.0.
The fix is darn simple :
In Mage_Rule_Model_Condition_Product_Abstract::prepareConditionSql() :
replace
$value = $this->...
- 527
5
votes
catalog price rules disappear after mid night
source : https://stackoverflow.com/questions/25280095/magento-catalog-price-rule-disappears-at-night
credits for genius "Alexei Yerofeyev". mostly i will never forget this man.
Yes, this is a bug ...
- 3,857
4
votes
Catalog Price Rules conditions not working
I hate to give a 'have you updated?' - "solution" but I cannot comment without posting it as an 'answer'.
There are several problems with Catalog Price Rules in 1.8 and 1.9.0.1 - Updating to 1.9.1 ...
- 191
4
votes
Check if product has catalog price rule
Old question, but for others looking, this seems to be an efficient method:
$product = $this->getProduct();
Mage::getModel('catalogrule/rule')->loadProductRules($product);
var_dump($product->...
- 756
4
votes
Reindexing option not available in magento 2.0
In production mode Magento should be reindexed by a cronjob, see the documentation for further explanation: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html.
...
- 1,327
4
votes
How to set 30% discount on all products in magento shop
Try this one https://drive.google.com/open?id=0BweKwHQ_asV2VE5HTzlLX2RvZUU
here you will get some more examples also which will help you to set some other promotion rule also.
4
votes
Offering a free gift with purchase of a particular product type like (Buy X products Get Y Free)
The best way to achieve what you want is to create a custom module for this. You can follow below approach for this.
1) Create a product attribute for example: free_gift_sku with type as dropdown and ...
- 3,573
4
votes
Accepted
How to override Catalog Price Rules?
All good, i figured it all out.
vendor/magento/module-catalog-rule/Helper/Data.php
vendor/magento/module-catalog-rule/Model/Rule.php
vendor/magento/module-catalog-rule/Model/Rule/Action/...
- 171
4
votes
Catalog Price Rule not applied / working in Magento 2 EE (v2.1.2)
Check in your Catalog Price Rule form
is_active field is there, but it's hidden.
- 316
4
votes
Magento : Catalog Price Rule Date Not Working Properly
I cant comment, you need to check some conditions :
1)cron jobs working or not by installing Aoe scheduler extension or some other way
2)check magento site timings and server timings both are same
- 59
4
votes
Get product price after applied Catalog Price Rule
I got the discounted price by below code:
$price = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue();
- 847
4
votes
Accepted
Magento 2 Can't get the sales rules conditions in my ui form submit
You need to make your custom Conditions.php and just replace $formName argument of addTabToForm function with your form name.
you are using Magento core file and it's adding the selected value of ...
- 1,534
3
votes
How to Ignore Catalog Pricing Rule when applying Shopping Cart Price Rule?
The problem you described is related to difference in logic of catalog price rule vs shopping cart price rule.
Catalog Price Rule - is defining a unit price of a product and affect product view/...
- 2,996
3
votes
Accepted
magento cron job is working or not? how to check?
Are you running cronjob.php or.sh... in both cases you could edit the files and let it send a email to you when it runs.
A second solution would be to try out this amazing extension giving you the ...
- 1,493
3
votes
Accepted
Is there any way where user can set the custom desired price greater than zero and proceed to cart for any product?
Yes, it is possible, this blog post (German) uses exactly this as a simplified example for dynamic pricing: http://www.avs-webentwicklung.de/nc/blog/artikel/magento-umsetzung-von-flexiblen-preisen....
- 65.3k
3
votes
Accepted
How to display Starting at price?
There is no setting to enable or disable this, it will be displayed automatically depending on the product.
"Starting at" will be displayed for a group product and will show the lowest price from the ...
- 5,686
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
catalog-price-rules × 385magento2 × 99
magento-1.9 × 89
shopping-cart-price-rules × 55
price × 54
price-rules × 51
discount × 44
catalog-rules × 32
promotions × 27
catalog × 26
special-price × 20
magento-1.7 × 18
magento-1.8 × 14
tierprice × 13
cron × 11
product × 9
cart × 9
magento-enterprise × 9
magento-2.1 × 8
magento2.3 × 7
configurable-product × 7
php × 6
category × 6
magento2.2 × 6
magento-1 × 6