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 [custom-prices]

The tag has no usage guidance.

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->...
0
votes
2answers
36 views

Custom price in cart not working in Magento 2.3.1 observer

I am developing a magento site for furniture sale. I have some grouped products. If a customer add 1 piece of any product of the group to cart, the special price will be added to cart. If the ...
2
votes
0answers
101 views

How to change the cart subtotal value using observer in magento 2?

I want to change the cart subtotal calculation in magento 2 but i try this code but not changing $quoteQty = $quote->getQuoteQty(); $priceOne=$priceOne/$quoteQty; $quoteItem->...
0
votes
0answers
18 views

How to set 2 prices for a product and add to cart same both 2 prices magento 2

Actually am trying to show 2 or more prices for a simple product and once we add to cart and it should sum the prices to cart and also display same prices in shopping cart. If anyone have ...
1
vote
2answers
213 views

Update the Price of an item when adding to the cart

So here's my project. Make our giftcard integration purchasable. Basically I need to get an "Enter Custom Amount" input field to update the price of the item. What I have been told by our ...
0
votes
0answers
77 views

Magento 2 - Product custom price not change based with current currency

I have used checkout_cart_product_add_after event, to add the custom price in catalog product. I used the code for to add custom price, $item->setCustomPrice($price); $item->...
0
votes
1answer
394 views

Custom price is not getting calculated on cart magento 2

I am setting up the custom price with some calculation during add to cart and update cart. I am using following code to add custom price $fPrice = 39.1467 // after calculation $qty = 24; $item-&...
0
votes
1answer
145 views

Creating Order Programatically Showing Wrong Grand Total

I've successfully created an order programmatically using custom prices for items. When I view the order, the item is correct, the subtotal is correct, but the Grand Total is double. Here is my code.....
0
votes
1answer
64 views

setCustomPrice is reset in checkout process

I want to add a product to a cart and change its price to 0. Currently I have : $request = new Varien_Object([ 'qty' => 1, ]); $cart->getQuote() ->addProductAdvanced(Mage::getModel(...
1
vote
0answers
97 views

Magento 2.2.3 - Sort product collection by custom price

I want to sort my product custom price instead of Magento default price. By default product price is '0'. I overwrite /vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php. I set my ...
2
votes
1answer
521 views

M2: Wrong totals, if I change item customPrice after quote->collectTotals()

For example. There is 1 product in the cart with base price 35. Working code: foreach ($this->cart->getQuote()->getAllVisibleItems() as $item) { $item->setCustomPrice(11.11) -&...
0
votes
1answer
160 views

Magento2 custom price manual order not working

When i create a manual order in backend, i have the option to set a custom price for the product. But this option isn't working. After refresh the new price in the field is lost. Does anybody know ...
1
vote
1answer
1k views

Magento 2: How to set a custom price of a product?

In Magento 2, I need to set the custom price of a product pro-grammatically when admin creates an order from backend. For example, in this page 'www.site.com/admin/sales/order_create/index/key/...
0
votes
1answer
584 views

Custom price of product not getting applied in cart in Magento 2

I am trying to set the custom price of product to cart using Magento2 but unable to do that. For that I have created a module TW - as namespace Cart- as Module name . So under TW/Cart I have created 2 ...
3
votes
1answer
691 views

Display Both original price and custom price at manual order creation for customer

After entering the custom price at the stage of admin create manual order, the products original price removed when entering the custom price, I need both an original price and custom price. how to ...
0
votes
1answer
125 views

Prices of products (only some products) not updating on front end

I have changed prices of products in my store, checked it on the website and some of them have been changed but some not.
2
votes
1answer
2k views

Magento 2 : Add product to cart programmatically with custom price

I want to add product with custom price in cart/checkout only but the original price of product should not get any affect. So far I've achieved this.I'm adding product programmatically based on some ...
0
votes
1answer
973 views

Create custom options in event observer magento 2

I want to create new custom option for quote item in my observer. How can I do that? Here is my code: public function execute(\Magento\Framework\Event\Observer $observer) { $item = $observer->...
1
vote
0answers
303 views

Magento 1.9: Product price model increment with (quantity and price) step

Is it possible to have a mapping for product quantity and price in terms of step, instead of linear scaling? More specifically, a base price(x$) for base quantity(q) plus additive step price(y$) for ...
3
votes
0answers
855 views

Magento2 Update price automatically when quantity changed on product page

How can I update product price and custom options when user change the quantity ? If quantity belong to tier price, price should be update accordingly. Actually I am not able to get the product price ...
3
votes
3answers
2k views

Magento2 price filter with configurable products

I created a custom price filter (without layered navigation). This function works great on simple products, but configurable products are filtered (maybe because they don't have a price?). This is ...
1
vote
1answer
1k views

Modify price of all product using event observer

I made module to add 100 USD to all products price using module, but it does not work as expected. Need help to fix it. Below is my event observer xml code: <catalog_product_collection_load_after&...
5
votes
0answers
568 views

After adding custom price to product currency is not converting on cart page

To add custom price while adding to cart I have used catalog_product_load_after observer and used the function to add price. public function checkoutCartProductAddAfter(Varien_Event_Observer $...
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 ...
1
vote
1answer
409 views

Prices, How to hide decimals when are .00?

I want to know if exists one elegant option to hide decimals in the price when are ,00 I want this format: 8,45€ 299€ ---> Now I have 299,00 Thanks.
1
vote
2answers
615 views

Custom Option to add a fixed price

I run a silent disco company. I want people to hire headphones from my website in any quantity. I want people to select between a 2 channel and 3 channel option. I want the 3 channel option to add £...
5
votes
2answers
137 views

CE.1.9.1 Magento Product Prices Massive Upgrade

I'm new over here and also new in Magento! My issue is the following, I'm developing my first "Simple Products" Magento ecommerce site and my client ask me he needs to be able to upgrade product ...
2
votes
1answer
83 views

Multiplier custom option

I need to add a custom option to a simple product which will be number of pages. This needs to get multiplied rather than added to other fields. Example: Black and white (€0.03) or Colour (€0.15) ...
1
vote
1answer
22 views

subdivide the products in “percent categories”? [closed]

we want to have 3 buttons on our webpage where we want to subdivide the most of our articles in 3 groups: first group: 50-60% second group: 60-70% third group: over 70% of the normal UVP - shop ...
0
votes
1answer
330 views

How do I determine if a shopping cart contains items with custom prices as well as discounts from a shopping cart rule?

We have a number of items which use a discounted custom price for logged-in customers (part of an older promotion). We're looking at running a new promotion that will automatically discount prices ...