Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [price]

Questions about displaying and calculating product prices

0
votes
1answer
17 views

Magento 2.3: saving configurable products lead to erasing price

When I create a new configurable product and then I add the configurations price field gets disabled and erased. Is there any way to fix this or just take the first configuration price? Also in ...
0
votes
1answer
12 views

Magento 2. What are price adjustments?

In price calculating process I often see something called adjustments. Magento\Framework\Pricing\Adjustment\AdjustmentInterface What are adjustments and how do they work?
0
votes
1answer
759 views

Retrieve simple product price for configurable product on sales_order_place_before event

I am using magento 1.9.2 I have configurable product product 'whey' I want to get price for simple product I used getPrice(); in sales_order_place_before event But it is giving me 1196.25 (wrong ...
1
vote
1answer
23 views

Magento 2: How to completely hide price from the store

I want to completely hide the price from the store. Be it in the catalog, product, minicart or cart. I need to do this through a custom module. Any help is appreciated. Thanks!
2
votes
0answers
20 views

How can I remove “As low as” in Magento 2.3.1, if all the prices of the variants are the same?

How can I remove "As low as" if all the prices of the variants of the configurable product are the same? It doesn´t make sense to me to show "As low as" when all the colors and sizes are equally ...
0
votes
1answer
761 views

Magento2 multi-store price-per-website: Wrong price indexed for configurable products

I have a multi-website Magento 2.1.0 CE installation, with 2 websites and different prices per-website. Prices are note related to each other, for the same product across the two websites. In product ...
3
votes
2answers
2k views

Magento1.9: Price changes to zero after selecting an option

I updated my Magento version to 1.9.2.2 recently. After updated to new version, if I select the price of the product, that cost is showing normally fine till here. The main problem is if I select ...
1
vote
3answers
1k views

Format price decimal points

I've displayed item's price (both old price and new price) using this code, <?php echo $_item->getProduct()->getPrice(); ?> But when I see the page, it displays price with 4 decimal ...
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 ...
4
votes
4answers
767 views

best practice to connect Magento 2 to price/product service

I have my own price/product service that I need to connect to Magento. The service has a variable amount of products with very variable prices. The price can change with every request a customer makes....
0
votes
0answers
15 views

M1.9: To get calculated Customer Group Prices for Bundle Products using Product Object

Wanted to show bundle product's calculated price for customer group in Magento 1.9.3.x. I'm using Magento 1.9.3.x. Bundle product customer group price: Define some percentage to different customer ...
0
votes
5answers
64 views

New order email template - price decimal place

we have amended our Magento 2.1 to use and store prices with 4 decimal places. But then used some JS to trim/round-up on the frontend to 2 decimal places. However, on the email templates, the price ...
2
votes
2answers
2k views

overriding/extending price-options.js does not work

I need to override/extend the file price-options.js. But it does not work, I always get the error TypeError: undefined is not a constructor on this line $.widget('myCompany.mypriceoptions', $....
0
votes
0answers
18 views

Magento 2 catalog rule markup price

I'm trying to achieve a positive "discount" so I could have a base price, and percentage markup prices based on client groups. For ex. base price: 100$, default client group: +20%, another client ...
0
votes
0answers
17 views

Tax display is wrong

I am going crazy slowly as I cannot solve this. Maybe anyone here can help me out. Problem 1: My shop always shows 2 prices (incl. & excl. tax) on category page but settings are clearly only ...
0
votes
1answer
737 views

Admin order update price programmatically in quote loop

I have a bit of custom pricing that needs to be carried out for each product in an order which alters the end price of the item. I am using an observer with the sales_quote_item_qty_set_after event ...
0
votes
0answers
18 views

Magento 2 : Custom Option Price + Finale Price = Show Total in custom options itself?

Product Price: 100 USD Custom Option: Premium: +50 Custom Option: Exclusieve: +100 I want it to show: 150USD. (instead of +50) if i choose Premium and 200(instead of +100) if i choose exclusieve.
0
votes
1answer
17 views

How to get formatted custom price

I have set my product custom price in an observer.. $item->setOriginalCustomPrice(9.99); $item->setCustomPrice(9.99); I can output the price value correclty like so: echo $item->...
4
votes
0answers
65 views

Rounding all product price after tax

I want to round all product prices in store after tax including . How can i do that with plugin ?
1
vote
0answers
11 views

Display prices in different currencies according to the store selected but for invoices always show prices in AUD in magento 2

I have created multistore functionality in Magento 2 and its working fine. The invoice generated after payment shows price according to the selected store currency, for example, if we select Canada ...
1
vote
0answers
28 views

Magento 2 :overwrite core file

I am trying to change the price separator for one of my store based on store view. I have edited the following file and the separator has changed. vendor/magento/zendframework1/library/Zend/Locale/...
0
votes
0answers
22 views

Display Price for Out of stock configurable products

How can I display price of configurable products that are out of stock currently?
1
vote
0answers
37 views

Magento2:Format price

I have a website where currency is displayed in the format xx,xx CHF. I want to it to the format CHF xx.xx I got the solution to position the currency symbol by refering the below link. https://...
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 ...
2
votes
2answers
892 views

Magento 2: Minicart Display Quantity

I want to display quantity in mini cart as following: This is how it displays now.The field Qty is a text field I want to display it as qty X productprice This is the code <div ...
2
votes
1answer
800 views

Magento 2 - product final price issue

If I try to print price and final_price from $_product in category page template (product/list.phtml), they have the same value despite the product is affected by a catalog rule. Why? How can I get ...
0
votes
2answers
1k views

Modify the product price in minicart

I try to change the price from minicart with a custom product attribute, but in C:\xampp\htdocs\myproject\vendor\magento\module-checkout\view\frontend\web\template\minicart\item\default.html the ...
0
votes
0answers
15 views

Show Price Range on product page for Magento 2.2.8 [closed]

I need to show the price range on the configurable product landing page and product listing pages as well. By default, only the lowest price is shown on 2.2.8 I've tried all of the price range ...
0
votes
2answers
814 views

Getting Wrong Maximum Price For Configurable Products

I am trying to get final price for price slider but it is showing me wrong price. See below images, Price should be 4000/- for right slider but it is showing me 2000. Input Price-- Output Price-- ...
4
votes
1answer
819 views

Configurable product super attribute Integrity constraint violation error

I have a script that create new configurable product, but I get an error when I try to save the super attribute price configuration, here's my code: function createConf(){ //other code before... $...
5
votes
2answers
252 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\...
1
vote
2answers
46 views

Inventory reindex runs catalog price reindex also

Magento version: 2.3.1 When I run inventory reindex from command line it first runs inventory reindex and then price reindex after that. Here is the command I executed: bin/magento indexer:reindex ...
3
votes
2answers
658 views

Negative price filter in layered navigation

I'm experiencing a strange issue here where the price navigation filter (layered navigation) somehow came up with negative price ranges. If I flush the price tables it seems to solve the problem, ...
0
votes
0answers
10 views

Which file and function return final product price including tax and price rules?

I want to change final product price after tax and price rules included . which file and function returns final price with tax and price rules included ?
0
votes
2answers
798 views

Product custom attribute display in backend

I have created one order from backend in Magento 2.0.7 and selected item for order at that time. I want to display product custom attribute Best Price with item details. How can I do this?
0
votes
0answers
11 views

Special Price render

I've seen that Magento output special prices without using knockout or some ajax. Special price has time to display(from, to). How magento hide prices when time is expired? How it compatible with ...
0
votes
0answers
35 views

Multiply Price by Custom Attribute. Can it be done?

I would like to have the Price consist of 'Base Cost' and 'Amount in package' custom attributes. So that if: Base Cost = $2 and Amount in package = $2 Price displayed in frontend = $2 * $2 = $4 How ...
0
votes
0answers
21 views

how to remove add to cart button if price is 0 in magento 1?

I have done for call for price if price 0, But after that i want to remove add to cart button if price is 0. <?php if ($_product->getFinalPrice() == 0) : ?> <?php echo ...
0
votes
1answer
118 views

Call for Price with the 0$ price

We have use this for our Call for Price: Hiding Price if 0 or <?php if ($_product->getFinalPrice() == 0) : ?> <?php echo $this->__('Call for Price') ?> ...
1
vote
2answers
21 views

Decimal of price and qty magento2.1

I have a problem in my customer panel myorder tab. In my order i see price 12,125.0000 and QTY: 5.0000 how should i remove decimal from them? it is just in my order and methods that i used is like ...
0
votes
0answers
20 views

Magento2: How to set minumum order price for specyfic group

I see Magento provide possible set minimum order qty. For specific group. But how to set minimum order price for specific group? I see is available option only set for all groups minimum order price ...
1
vote
1answer
876 views

M2 | sales email > customize price display > how to show only grand totals?

I'm trying to style Magento's transactional emails. I already managed it to edit and style the item display and included the item picture, but i haven't found a solution to only display the grandTotal ...
0
votes
1answer
29 views
1
vote
2answers
806 views

Upgraded from 1.9.2.4 to 1.9.3 Bundle “Price as configured” Price Shows Zero

I just upgraded from 1.9.2.4 to 1.9.3 and having a problem with the Bundle "Price as configured" price. The problem is it always shows zero no matter which bundle sub-products are selected. It was ...
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 ...
0
votes
1answer
27 views

How to get product collection based on custom price attribute in Magento 2?

I am using Magento 2.2.2 I have created one attribute "Retail Price". Input type for this attribute is "Price". I have added values in some products for this attribute. Now I want to load product ...
1
vote
1answer
30 views

Magento 2 API add item to Cart ignore price

if i add a item to cart via api it set Magento 2 default price of the item instead price set via API 1st i create a cart for a customer: index.php/rest/default/V1/customers/631/carts via POST ...
3
votes
2answers
54 views

Magento 2.1 pricing in 4 decimal places

I am trying to work with produce prices using 4 decimal places e.g. 0.0475 I have already got the prices to save and display in catalog admin by editing the following file... vendor/magento/...
3
votes
3answers
105 views

Incorrect currency format in product and checkout pages

The store locale is bg_BG. After the product page is opened the price is rendered correctly formatted from the server. When the following JS is executed the format is wrong. <script> ...
0
votes
1answer
899 views

Magento2 core javascript object in custom javascript

i would like to access the javascript object for the product custom options and need to change the price of the custom option. I have found below data for the custom options. <script type="text/x-...