Questions tagged [custom-prices]
The custom-prices tag has no usage guidance.
36
questions
0
votes
0
answers
12
views
Company A is an e-commerce store selling rugs online
Company A is an e-commerce store selling rugs online. Company A wants to charge based on the size of rugs provided by the customer.
In backend, show product-wise option to enable/disable this ...
0
votes
0
answers
21
views
How to add custom price type value of a product to cart?
I'm trying to create a custom price type in Magento. And for that I've created a custom attribute to a product.
And I've added this price type to Magento\Catalog\Pricing\Price\Pool like below in my ...
0
votes
1
answer
49
views
Custom product prices with single API call
I am attempting to set custom prices for my products for specific customers. I am getting the prices through a third party API based on product SKU. I have to do it this way because product prices are ...
1
vote
0
answers
347
views
How to add custom price for bundle product while add to cart?
I have a bundle product that has been configured as dynamic price is "on". I tried to add custom price while add to cart like following code:
$customPrice = 500;
$item->setCustomPrice($...
1
vote
0
answers
68
views
How overwrite product price in plugin but not taking the cached price?
I have a plugin to change the product price, but when the plugin is called again, it's render the cache product price in the frontend. Any way to take the plugin info instead of the cache?
This is my ...
0
votes
2
answers
432
views
How to set custom price range in magento 1.9?
I want to show the price range Like this
Up to Rs 10000
From 10000 to 25000
From 25000 to 50000
From 50000 to 100000
From 100000 to 300000
Above 300000
How to implement this?
3
votes
0
answers
261
views
Magento2 : When Custom Price applied Product price is not displayed proper with tax on Cart
Steps to reproduce:
1.Please configure tax settings and tax rules as seen in screenshots.
2.Now login in storefront using Demo Customer Access provided by Magento
([email protected]).
3....
1
vote
1
answer
119
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
3
answers
544
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
0
answers
474
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
0
answers
126
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 ...
2
votes
2
answers
1k
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 ...
1
vote
2
answers
792
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
1
answer
830
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
1
answer
448
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
1
answer
153
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
0
answers
184
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 ...
4
votes
1
answer
2k
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)
-&...
1
vote
1
answer
3k
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
1
answer
837
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
1
answer
1k
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
1
answer
382
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
1
answer
3k
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
1
answer
2k
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
0
answers
337
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 ...
5
votes
0
answers
1k
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 ...
4
votes
3
answers
5k
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 ...
3
votes
1
answer
2k
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
0
answers
691
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
2
answers
159
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
1
answer
452
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.
2
votes
2
answers
659
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
2
answers
152
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
1
answer
109
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
1
answer
29
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
1
answer
344
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 ...