9
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 ...
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 ...
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
...
7
votes
Accepted
Catalog Price Rule containing several SKU-s doesn't work
I had the same issue, but on 1.8.1.0, so i tried to update to 1.9.0.1, still the same issue.
But I found why this happens:
This method: Mage_Rule_Model_Condition_Product_Abstract::...
7
votes
Catalog Price Rules disappear overnight
Ensure that your Magento cron is setup correctly: Installing and Verifying Magento: Setting Up Cron Jobs
Check if the cron-job is running
look into cron_schedule-db-table
use /cron.php to refresh
...
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: ...
7
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\...
7
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\...
6
votes
Accepted
In magento which price or price rule has the highest priority?
Magento takes the minimal value (lowest price) from the following calculated price variations
Product Price
Tier Price
Group Price (CE1.7+)
Special Price
Catalog Rule Price
Reference as Marius says ...
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]
...
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 ...
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')->...
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....
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
...
5
votes
Display original price and final price in catalog products list
Poonya,you can load the product by product id
$pro=Mage::getModel('catalog/product')->load($_product->getId());
$OrgPrice=$pro->getPrice();
$finalPrice=$pro->getFinalPrice();
Hope ,it ...
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->...
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->...
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();
...
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 ...
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 ...
4
votes
Catalog price rule stops at midnight
I had a lot of issues with the catalog price rules reindexing before.
My latest solution (that seams to work) was to change the hour when the cron for reindexing of catalog rules run.
Here is why.
I'm ...
4
votes
CatalogRule not appearing in cron_schedule table
you don't need to edit any of the cron files, it's not even recommended.
catalog rules do have some problems, but they can be solved directly or by adding an extra cronjob. the reason you're not ...
4
votes
How to determine if an item has discount from catalog price rule
Product to catalog price rules data is stored in the table catalogrule_product
In that table you will find the product_id field that relates back to your product.
You should be able to build a query ...
4
votes
Events of adding/editing catalog rule
I think you can use catalogrule_rule_save_before and catalogrule_rule_save_after.
You can get the rule object in your observer like this:
public function doSomething($observer) {
$rule = $...
4
votes
Accepted
Events of adding/editing catalog rule
Hook onto the event: salesrule_rule_save_after and catalogrule_rule_save_after for shopping cart and catalog rules respectively. Also, to just be on the safe side you could check in the observer you ...
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->...
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.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
catalog-price-rules × 382magento2 × 96
magento-1.9 × 89
shopping-cart-price-rules × 56
price × 53
price-rules × 50
discount × 44
catalog-rules × 30
promotions × 27
catalog × 26
special-price × 19
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
category × 6
magento2.2 × 6
event-observer × 5
magento-1 × 5