Questions tagged [price]

Questions about displaying and calculating product prices

Filter by
Sorted by
Tagged with
20
votes
6answers
47k views

Magento Configurable Product Price Overriding Simple Product Price

I have products set up identically (as far as I can tell) and they were all imported with a universal CSV template. Configurable price is 29.99 Associated Simple Product Short Sleeve is 29.99 ...
18
votes
6answers
8k views

Magento 2 - How to retrieve product informations

I want to use functions like getName(), getPrice(), etc. of product to retrieve product information in Magento 2. Can anyone show me how can I achieve that ?
14
votes
2answers
3k views

Why does Magento store a rounding delta when calculating taxes

In the model tax/Sales_Total_Quote_Tax, there is a method _deltaRound() that rounds a price. It adds a small delta, to stop nondeterministic behaviour when rounding 0.5. /** * Round price based on ...
13
votes
2answers
11k views

how to check if product is discounted

How can I know if the product is currently having a discount? I used this code. if($product->getFinalPrice() < $product->getPrice()){ //had a discount } But it doesn't works.
12
votes
4answers
7k views

Create Category page which displays all Special Price products

Basically, I've created a category 'Products on Sale', which I would like to automatically contain all products in my catalog that have had a Special Price applied to them (via Catalog > Manage ...
12
votes
7answers
14k views

Magento 2: How to remove price decimal [duplicate]

How to remove the price decimal from Front end price display only on the category and product pages ?
12
votes
1answer
14k views

How rendering of price.phtml in catalog product listing page is happening?

Catalog Product listing page's template file is list.phtml. Where the rendering of all the products in category happens using foreach loop. I am confused about the rendering of the price.phtml. ...
11
votes
2answers
6k views

how magento getting configurable product lowest price of associated products?

In view page by default magento displaying lowest price of associated products. I need to display highest price of associated products. Any one have idea where the logic is reside.how to customize ...
10
votes
2answers
16k views

Remove precision from price of a product

As I said in the title, I want to remove precision from price ( .00 ) I did these : In app/code/core/Mage/Directory/Model/Currency.php in public function format() I changed return $this->...
10
votes
2answers
1k views

Magento event to calculate price when custom option text field changes

I am trying to create a product with two custom text fields: Length and Width. When the user types in both a length and width, the price needs to calculate via custom formula. I'm trying to find the ...
10
votes
2answers
1k views

How to get product's price in all allowed currencies?

I have a setup with two store views. The first store view has base and the only one currency set to USD. The second one has 2 allowed currencies - USD and EUR. EUR is the default displayed one, USD ...
9
votes
3answers
15k views

How display different price per store

I want to display different price for same product per store. Like an attribute. These stores will have different currency, but will not be based on currency exchange rates. For eg if products of 1 ...
9
votes
1answer
3k views

Magento 2 show normal price with special price on minicart

I can set Normal price along with Special price while put custom function in core file vendor/magento/module-weee/Block/Item/Price/Renderer.php public function getUnitItemPriceExclTax() { $...
9
votes
1answer
1k views

Magento 2 : How faceted data works for layered navigation?

I have created module for custom filter on category page every thing is working fine except price range in layered navigation. Please anybody can explain me how getFacetedData('price') works in ...
9
votes
2answers
896 views

Product collection problem - incorrect pricing data or not showing out of stock items

I am retrieving a product collection based on the current category. I need this collection to contain both in and out of stock products, and I also need the pricing data to be displayed correctly. My ...
9
votes
2answers
1k views

Price more than 100 million

How to set a price more than 100 million? Tried this solution http://www.magentocommerce.com/boards/v/viewthread/210738/P15/#t454441, but no luck. Now I can set price more than 100 million, but on the ...
8
votes
5answers
12k views

How to change currency format in Magento 2?

Currently the price shows like $2.999,00 I want the price to show like $2,999.00 for locale es_MX (spanish, Mexico) in product pages, anywhere else the currency format is correct. I've tried all ...
8
votes
4answers
12k views

Get Price of Configurable Product options

I need to export all products with prices from Magento 1.7. For simple products this is no problem, but for configurable products I have this problem: The price exported is the price set for the ...
8
votes
2answers
9k views

How Does Dynamic Pricing Work In Magento?

I wonder how the dynamic pricing works in Magento? For example I have created product in the backend and add some custom options to it. So, if user choose the option, the price change automatically ...
8
votes
1answer
2k views

Why does magento re-index pricing on each checkout?

If you look within Mage_CatalogInventory_Model_Observer::reindexQuoteInventory() it calls the following line: Mage::getResourceSingleton('catalog/product_indexer_price')->reindexProductIds($...
8
votes
1answer
3k views

Magento 1.9: Product Price tables - how they work?

Magento has many tables for managing prices It looks to me that: in product/category pages the product prices are loaded from the catalog_product_flat tables. in search pages the _idx table are ...
8
votes
1answer
558 views

Creating a order from the backend, adding quantity calculates a incorrect price

Somehow Magento calculates an incorrect price when adding an order from the backend. This problem only occurs on products with a custom option field and when the locale is set to a land that uses ...
8
votes
1answer
1k views

Shopping Cart total percentage discount when specific item is in cart

I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater ...
7
votes
5answers
4k views

How to override final_price.phtml in magento 2?

I want to override final_price.phtml, I have tried following in my module but it is not working. I have created app/code/MyVendor/MyModule/view/frontend/layout/catalog_product_prices.xml <layout ...
7
votes
1answer
2k views

Bulk delete tier price and tier price customer group

How do you bulk delete tier price and tier price customer group? Is it possible to do it by Magento Import or Magmi?
7
votes
2answers
8k views

Problems configuring Magento the Catalog Price Scope

I very confused by this setting in System > Configuration > Catalog > Catalog > Price : Catalog Price Scope. First, I am not sure what it means and what it is for. Second, when I did some research ...
7
votes
1answer
14k views

Display filter by price on layered navigation

I have a problem with Magento. Probably I have misconfigured it. The price filter on layered navegation doesn't show. In Configuration → Catalog → Catalog → Layered Navigation i have Display Product ...
7
votes
2answers
2k views

Changing price format from RON30.00 to 30.00 RON

I'm trying to achieve this change. I've searched everywhere and found nothing. Is it possible to reorder the pricing format ?
7
votes
2answers
1k views

How to obtain catalog price rule expire date?

On catalog page I need to show offer "expires in N days". It can be easily achieved if each product has defined Special Price and date individually for example $this->getProduct()->...
7
votes
1answer
2k views

special price for the simple products of a configurable product

I am doing a project and now it needs a requirement such that we can assign special price for the single products of a configurable product. This price must be seen with strike through with the ...
7
votes
0answers
47 views

Magento 2: Layered Navigation Price Filter Not Working After Applied Custom Product Discount

I working on a product discount module. I did it via plugin and observer. it's working fine on product page and list page. But price filter is not working according to the updated product price. Here ...
7
votes
4answers
2k views

Update price in checkout page without refresh Magento 2

I have a controller where I apply some discount on the checkout page. Now, I can see the price change just after I refresh the page. I search for a solution, to refresh the price using a Js file. ...
6
votes
2answers
6k views

Format price with javascript in Magento 2

In javascript I have calculated a number. Which I want to display as a price. My JS file define([ 'jquery' ], function ($) { "use strict"; function irreleventCalculations() { // ...
6
votes
4answers
22k views

Is it possible to have different price and currency per product and per store view?

I have setup multi-site in Magento. I have one Website with two Stores and one storeView per Store. StoreA is in GBP, StoreB is in Euros. I have productA which I would like to sell for £99.99 from ...
6
votes
3answers
13k views

Magento display tiered pricing for each product on cart page

I am having an issue getting the tierPriceHtml to display for each item on the cart page. This is what I have inside checkout/cart/item/default.phtml: $custom = Mage::getModel('catalog/product')->...
6
votes
4answers
6k views

How do I remove the +$0.00 from product bundle options?

I have a product Bundle with a few dropdown options. In the dropdown I have a number of options the customer can choose from (simple products) and only one of them adds to the price of the bundle. ...
6
votes
1answer
446 views

I want to show currency symbol and price in different html tag.

My Requirement is To fullfill that requirement i have put this code in app/design/frontend/<theme>/default/template/catalog/product/list.phtml <?php $...
6
votes
2answers
132 views

Is there any way where user can set the custom desired price greater than zero and proceed to cart for any product? [closed]

I am trying something for a social cause website where there are trying to provide a user choice price for a NGO's product which can be any price. this is for promotional activity where user can set ...
6
votes
2answers
1k views

Wrong product unit price in the cart when changing to a stock quantity not available [duplicate]

Whenever you try to change quantity from the cart and that quantity is not available in the inventory, unit price is wrong. Example: I add Product A in the cart (simple product), first time I choose ...
6
votes
1answer
219 views

Methods to Defer Showing Product Price

It is possible, with a stock Magento, to have the system hide a price from users until the product's been added to a cart? If this isn't possible with stock Magento, is there known science for ...
6
votes
3answers
896 views

Customise price in product collection Magento 2

I am working on Magento 2 and having issue with price. I want to customise the product price. I did it via plugin and it's working fine on product page and list page. As we are using a plugin, it is ...
6
votes
1answer
115 views

A strange question: price is $0.68000000000000005

My Magento2 is ver. 2.2.0-dev. When I set product's price to $0.68, after save the price will be $0.68000000000000005. But when the price is $0.5, it's ok.
6
votes
0answers
425 views

Magento2 : Display MSRP with MAP disabled?

In Magento 2, if I set 'enable MAP' to 'No' in Stores > Configuration > Sales > Sales It removes the MSRP field in Advanced Pricing from the product page. My goal here is to display MSRP on the ...
5
votes
1answer
14k views

Magento doesn't displays group price

This is a bit frustrating but, some of my products displays the group price while some others not. I have the customer group X, and for this customer group I have different prices than the regular ...
5
votes
4answers
11k views

Magento2 How to get configurable option and its price?

I am trying to pull configurable products option and price on product detail page on seprate section. on radio button. I've used below code to get detail of options but i can retrive price of options. ...
5
votes
3answers
2k views

In magento which price or price rule has the highest priority?

Suppose I have set following rules/prices set in Magento for product (all type) 1) Special price 2) Tier Prices 3) Catalog price rules 4) Group prices Then which price will be having highest ...
5
votes
2answers
4k views

Hiding Price if 0

This seems like it should be easier then the results Im getting. Im not a PHP expert but I've got a product(s) that will be a different price and therefore am trying to set it up so when it's in my ...
5
votes
2answers
3k views

Want to apply set prices based on quantity in cart (tier prices for multiple products)

I sell umbrellas (different colors) and am setting up my Magento cart. I would like the pricing to be set to be: 1 umbrella = 15.95 2 for $25, 3 for $34. Additional quantities above 3 would be ...
5
votes
1answer
2k views

Can not getPrice for product

I am working on a connector module for a custom CMS system into Magento. I am using the following code to pull the products from a given category. $category = Mage::getModel('catalog/category')->...
5
votes
2answers
6k views

Cannot get Magento 2 catalog price incl tax to work

I have a problem with Magento 2, I have configured a tax class and settings for including it in catalog and entered price in admin. Still when I get priceinfo I get this price: For a product of ...