Questions tagged [price]

Questions about displaying and calculating product prices

Filter by
Sorted by
Tagged with
21
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
7answers
15k 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 ?
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.
13
votes
2answers
219 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 ...
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
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
17k 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
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 ...
9
votes
6answers
257 views

Magento 2: Changing Price of Product in Controller doesn't work at the moment!

I tried to change the Price of my Products like this: Controller.php: [EDIT] <?php namespace MassiveArt\ShoppingCart\Controller\Index; use Magento\Catalog\Model\ProductFactory; use ...
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
4k 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
2k 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
921 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 ...
9
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
5answers
13k 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
2answers
10k 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
562 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
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() { // ...
7
votes
6answers
5k 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
9k 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
3answers
1k views

Update prices of all simple products via their configurable product in Magento 2

I'm new to Magento 2, and understand this is a change from Magento 1. Example: I have a T-Shirt as a configurable product with colour options as Simple Products. These Simple Products all require ...
7
votes
5answers
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
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
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 ...
6
votes
1answer
499 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
135 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
1k 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
118 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
2answers
681 views

How to set custom tax price during add to cart in Magento 2

I am adding product to cart using ajax call. Here is my controller code. use Magento\Framework\Controller\ResultFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
6
votes
0answers
476 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 ...
6
votes
0answers
716 views

Ways of keeping Configurable product pricing consistent with Simple product pricing

By default, Magento ignores the Price set within the Simple product which forms part of a configurable (unless the Simple item is added to the basket rather than the Configurable). Many organisations ...
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
13k 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. ...