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

1
vote
1answer
14 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
38 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/...
0
votes
1answer
24 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 ...
0
votes
0answers
13 views

Is it possible to get product price from info by request?

Is it possible to get product price from info with the help of request without add to cart? { "product":"111", "selected_configurable_option":"", "related_product":"", "qty":1, ...
0
votes
0answers
13 views

Magento 2 Assign customer group name to externally calling JavaScript file variable

PreRequisites: MageVersion - Magento 2.3.x External JavaScript - http://domain.com/external-js.js var mage_customer_group = ''; //other code related to the customer group Pages - Category page and ...
0
votes
0answers
12 views

Magento 2 - addToCart doesn't calculate price correctly

I am adding a product with custom options to my cart. One of the options costs extra. But the Magento Cart page does not show the price correctly. Here you can see the cart page. The Summary shows ...
2
votes
1answer
23 views

Why magento2 Layered Navigation Price slider starts with Zero?

We are running Magento2.2.7. When we go to PLP, the price slider navigation starts with Zero. Even when we click/select a range of 0-0 , still it shows some products.
0
votes
1answer
32 views

Product Sort By Price: Low to High and High to Low Magento2.3

Can you suggest me how to change the sorting option on my site? I am using Magento 2.3.1.
5
votes
2answers
166 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\...
0
votes
0answers
14 views

Apply custom tax upon adding product to cart in magento 2

I have Product relation like below. Product A - Catalog Search Product Test1 - Not visible Individually Product Test2 - Not visible Individually Once Product A is added to cart, I am taking the ...
0
votes
1answer
27 views

how pricing works in magento 2

A product has Base Price $30 and Special Price $25. Tiered price discount for this product is $20 for 5 products and there is also a catalog rule active of 25% discount for this product. What will be ...
1
vote
1answer
16 views

Minimum quantity and increase with minimum quantity

I would like to have a product with a minimum quantity of 25 and if someone wants to order more and press on the arrow for more it needs to jump to 50, 75 etc. My product is only available per 25. ...
1
vote
0answers
19 views

Magento 2.3.x Membership / Recurring Billing Solution

I'm looking for a way to setup a membership based store using magento 2.3.x. I need to be able to allow the customer to subscribe to a membership on a monthly or yearly billing basis (auth.net ARB) ...
2
votes
0answers
12 views

How to have irregular price filter ranges?

If I configure manual price ranges, I can define the step, but that step is a constant for all ranges. Is there a way to have, for example, USD 1 to USD 199 USD 200 to USD 499 USD 500 to USD 5,000 ...
0
votes
0answers
11 views

Change Decimal Symbol for Price in Admin

I have installed magento 2 and by default decimal symbol is ',' coming everywhere in Admin and Frontend. When I add product price 17 it saving 17,00. And when I save 170,00 then it's saving 17,000,...
2
votes
2answers
30 views

M2.3.1 - Remove currency symbol from price

Is it possible to get the price without currency symbol, or a way to put a div around the currency symbol to hide it with css? $block->formatCurrency($block->getDisplayValue(), (bool)$block->...
1
vote
0answers
15 views

Product Prices of configurable products

I am getting stuck with the prices of configurable products on magento 2 I have made a configurable product with 6 simple products in it. Alle the simple products have received their own price. But ...
0
votes
0answers
17 views

Magento 2 : How to Show Price Without Added Prices From Customizable Options

How do I change the product price template on product page so that it does not change the unit price when options with additional fees are chosen. So a product with price 14$ will still say 14$ even ...
1
vote
0answers
21 views

Get base currency scope in Magento 2 Programmatically

I have created dynamic rows in Product edit form using dataProvider as per my custom requirements. I want to have Catalog Price Scope dropdown with amount option as in screen shot: I have got amount ...
1
vote
0answers
24 views

Show base currency price & display currency price at the same time in magento2?

I would like to show product price in both base currency & display currency. I have already enable display currency in frontend - that is i can see "USD / EUR" in header dropdown. If i want to ...
0
votes
0answers
23 views

Magento2 Product price data not save in catalog_product_index_price table

When I get product collection using \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory some of products are not get. After debug query and found missing products are not add in ...
0
votes
0answers
27 views

How to change Price Format in Magento 2.3?

I am trying to change the Price format From - Rp8.000,00 To - Rp8000.00 I tried the below solution but its only working in Product detail page: How to change currency format in Magento 2? I ...
0
votes
0answers
14 views

Overwriting FinalPriceBox Class for the wishlist

we have overwritten the FinalPriceBox.php in order to show a custom price with some conditions. This works well with the categories and product page. But we have seen it's not working on the wishlist. ...
1
vote
0answers
44 views

Magento 2.2: How to display price block on product detail page in a custom theme

I want to display the price and SKU in the product detail page. I've set luma as a parent theme. I am getting SKU under product-info-price div on frontend but not getting price. here is my layout file ...
0
votes
2answers
35 views

send custom product price to checkout on add to cart in magento2

I have a custom price in phtml which is shown in the product page.Now I want to send that price to checkout page on add to cart click in magento2 that custom price is coming in js variable and input ...
1
vote
0answers
14 views

Magento 1.9.2. - Filter products on the list page starting from the last tier price

I would like to be able to filter the products on the list page not for the final price but for the last tier price. How could I do? Thanks
1
vote
1answer
41 views

Specialprice & finalprice returns no decimals

Magento 2 returns regular price differently from special and final price. Expected result: $product->getPrice(); // 89,95 $product->getPriceInfo()->getPrice('regular_price')->getAmount()-&...
0
votes
1answer
22 views

How to convert template variables to custom data in magento 2

I have configured a back-end screen where I will enter a string as {{price}} for guest user. click here {{sign_up}}. So after I fetch the field value I want to dynamically replace the {{price}} ...
0
votes
1answer
26 views

Remove thousand separator from all price display- Magento 2

I want to display the price without ','. My current format is : ر.س.‏ 1٬105.00 But I need : ر.س.‏ 1105.00 I tried to remove from locale. But not working.
1
vote
1answer
19 views

save big num in magento product price

I wanna set this number 100000000000 to my product price but Magento change it to 100000000 and it doesn't save it correctly how can I fix it? magento version 1.9
0
votes
0answers
18 views

Magento 1.9 - Tax is not recalculated when you enter postcode?

There is a klarna checkout module when I enter a postcode, then certain tax conditions are triggered and the price is recalculated, but in grand total remains the same on the front, and only after ...
0
votes
0answers
7 views

Problem inside price-box js setting old values

I have overridden the method wrapResult inside: \Magento\Catalog\Pricing\Render\FinalPriceBox.php Firstly the correct price is displayed but after a few seconds it changes the price. I've ...
1
vote
1answer
34 views

I wish to add the new div in PDP page after price section in mageno 2

I have added custom div in /var/www/html/pot/app/design/frontend/pot_customization/Magento_Catalog/templates/product/price/amount/default.phtml. The div displays for all the products and works fine. ...
0
votes
1answer
31 views

Magento 2.2.6 how to develope loggedin customer only show price in website

I am using Magento 2.2.6 I need to customize and if any plugin available for logged-in customer show only price not show for guest user in Magento website. if anyone idea reply me. I have try to one ...
0
votes
3answers
50 views

how i can override the observer of other modules in magento 2

how i can override observer of other module(custom module) to my another custom modules in magento 2 is it possible ??? Does anyone have an idea? ex : custom module 1: the observer for ...
3
votes
0answers
106 views

Magento 2 Checkout Page, different price setup

Currently I'm on a magento project and somehow, I can't understand the logic behind this last page. The Currency that I've got is EURO, and in the /vendor/magento/zendframework1/library/Zend/Locale/...
0
votes
1answer
49 views

Magento2 - Programatically Increase/Decrease product price by certain amount for all products

I need to update(increase/decrease) the price & special price by certain amount or percentage for all products in all stores. Here is the my code but its not increase/decrease the price. I have ...
0
votes
1answer
32 views

Magento 2: I want to change Item collection sequence on cart page

I want to change cart sequence on cart page Price ascending wise. Please share a page link item collection for cart page.
0
votes
0answers
40 views

Gift Wrapping for Items not calculating correct total including tax

I'm using Magento EE Cloud 2.2.7. while adding gift wrapping for quote items, it is showing incorrect total (price incl. tax). Grand total is shown correctly. Totals Data: gw_items_base_price: "5....
0
votes
1answer
40 views

Magento 2 - Programatically updating the inventory store wise not working

I have a function to update the product inventory progrmmatically.below is my function in the helper file. protected $stockRegistry; ... public function __construct( .... //Some code-- \Magento\...
1
vote
1answer
72 views

How do i get category ID in final_price.phtml and hide price accordingly in magento 2

this is my current final_price.phtml file. the line $category = $product->getCategoryIds(); is causing error I'm trying to get the category_id of the current product, and check if it's in $...
1
vote
1answer
40 views

Magento 2.2.6 Configurable Product How to Show Old Price and Special Price?

I have used Magento 2.2.6 version.I have a one configurable product.I have added special price into the associate product.The Special Price is Display but old price is not display how to show them ? ...
0
votes
0answers
17 views

How to add product qty and product price store wise progrmatically in magento 2

I want to create product progrmatically. product creating section is done, after creating the product i want to update the product qty and price store wise. I have following array which return me the ...
1
vote
0answers
36 views

Display Configurable product Highest price by default

I need to show configurable product highest price in frontend. currently by default magento is loading lowest price. please help me to solve this issue. Tried by overriding "Magento\...
1
vote
1answer
40 views

Product list page configurable product price in negative value in magento 1?

Product list page configurable product price in negative value in Magento 1? How to correct it? Single product page the price is correctly showing
1
vote
1answer
121 views

How to get currently selected product id of configurable product on view page?

I need to change name, price, SKU and more when options are clicked. So I need the product ID of the selected option in the product view page. I have a Custom phtml file to write my own alteration in ...
2
votes
0answers
31 views

Different discount for category products

I want to know is there a way to get different discount for the products in the same category if quantity exceeds a limit. For example: I have these products with these prices: A=10 B=15 C=12 And ...
0
votes
0answers
20 views

Magento 2 - Importing prices for multiple store views using Magmi

I am trying to update prices using Magmi on 2 store views but I am having issues. Here is my setup. store,sku, price abc, 1001, 5.00 bab, 1001, 7.00 It worked perfectly. The question is: Now I ...
1
vote
2answers
50 views

Magento 2 : How to change the currency symbol wise price in list.phtml page?

I will trying but its not working ? <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Instance of Object Manager $currencyModel = $objectManager->create('...
0
votes
1answer
65 views

How to set a custom price of a product when adding to cart using an observer in Magento 2?

I want to set a custom price of the product when adding to cart using an observer. For that, I added this code but it's not working app\code\Webkul\Hello\Observer\CustomPrice.php <?php /** ...