Questions tagged [special-price]

For questions about the Special Price function where a product has a temporary promotion resulting in a lower price for the customer than normal.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Do not want to display special price for all configurations of a configurable product

I have created a configurable product with several configurations. Some simple products that represent a distinct configuration have their own dedicated special price, which is lower than the actual ...
0 votes
0 answers
18 views

How to get Tier Price Observer

I am new in Magento. I try to get Special/Tiersprice. I have this code $item = $observer->getEvent()->getData('quote_item'); $item = ($item->getParentItem() ? $item->...
0 votes
1 answer
82 views

special price product collection working but loading speed is too slow ,I don't understand why the speed is so slow please help!

<?php namespace Product\Discount\Block; use Magento\Catalog\Api\CategoryRepositoryInterface; /* use Magento\Catalog\Api\CategoryRepositoryInterface; use Magento\Catalog\Block\Product\Context; use ...
3 votes
1 answer
108 views

How to get product collection without special price and tier price?

I'm using Magento v2.4, i want to retrieve a product collection that does not have special price (special price is not active or null) and tier price, currently i load the product collection like this:...
  • 68
0 votes
0 answers
29 views

Magento 2.4 special price reverting when qty updates

I have a special price set on some products in Magento 2.4. The price works fine when you put an original QTY in (on the cat page, product page, minicart or cart page) but as soon as the qty is ...
  • 77
0 votes
0 answers
21 views

How to remove the label for the oldPrice in app/design/frontend/Lifetime/default/Magento_Catalog/templates/product/price/amount/default.phtml

I have made the oldPrice for the configurable product visible by .old-price { display: block !important; } It displays the block but now an extra span for label comes along with it in default.html ...
  • 11
0 votes
0 answers
26 views

Custom Pricing Question

I use Magento 2.4.3. and I want to delete the thousands separator in magento prices. For example for in place of this price "2,100.00 €" I want to have "2100.00 €" Thanks a lot.
0 votes
0 answers
46 views

special price without rounding with 4 decimals

I need to show the special_price field on the backend with 4 decimal and without rounding. When I put 4 decimal values in the speical_price text field it saves in DB the same as I put on the text ...
  • 1,525
0 votes
0 answers
95 views

Special price is shown even though the configured date has passed

We are facing a problem with Special Price End date on Magento 2.3.5 We are updating the prices using the Rest API. When we add the special price with the start/End date all work fine until the end ...
  • 11
0 votes
1 answer
147 views

Multiple special prices for a single product

I've been asked about having the possibility to have multiple date ranges in the advanced pricing section at once so that my client can bulk update all the products with all of their promo periods ...
  • 105
0 votes
1 answer
111 views

How to set special price on all stores?

I want to programmatically set special prices on products. The below code works perfectly for 1 store view. But I want to have the special price to be applied to the "All Store Views" scope. ...
0 votes
1 answer
34 views

How to add a label to simple & Bundle product price?

I need to add the Saving percentage label to the product after the price on the category listing page and product details page. I managed to do this for configurable products by adding the below code ...
  • 2,597
0 votes
0 answers
87 views

Magento2 Special Price is not correctly reflecting on Product List Page and Search Page

Pr-conditions: Magento version: Magento Commerce 2.3.6 Varnish version : 5.2.1 PHP version: PHP 7.2.33 MySQL version: 5.7 Multi Website architecture Catalog Price Scope = "Website" (Admin &...
  • 1
0 votes
2 answers
27 views

catalog_product_entity_decimal table is empty

I need to bring in cost, price and special_price into an existing query. Research brings back catalog_product_entity_decimal has special_price and price. This table is empty. Is there another table ...
1 vote
0 answers
147 views

Magento 2 Add Time to Special Price Date Start and Special Price Date End

In the calendar special price date start and special price date end, they using format date only like below image : how can I modify this to add time on the calendar, I've checking Magento catalog ...
  • 1,333
0 votes
0 answers
28 views

Unable to find getPrice method in catalog

Simple issue but can't figure it out alone : Under base vendor/magento/module-catalog/view/base/web/template/product/price/special_price.html There is this part that is used to calculated the product ...
  • 853
0 votes
1 answer
35 views

Product special_price only changes with reindex

I'm trying to set a product special_price using rest api, But the special_price only changes in store front with reindex command. PS: When i use a numeric value, like: 15, 100, etc... it changes ...
0 votes
2 answers
1k views

Special Price Not Showing Configurable Product Magento 2.4.2

I have upgraded Magento 2.4.1 to 2.4.2 Special price is showing for a simple product but showing for the configurable product in the category view page. However, on the product details page, I can see ...
  • 131
0 votes
0 answers
56 views

Magento 2 Cannot update specialPrice per website

I'm trying to update specialPrice per website in a Magento 2.3.6 website. The problem is that when i am updating the price using the Product model , the specialPrice is removed from all storeviews ( ...
  • 231
0 votes
1 answer
240 views

How to set special price as final price in magento 2

I would like to setup the special price as a final price. In the current scenario, what happens, if the price columns is lesser than the special price, the price is taken as selling price. WHY There ...
0 votes
3 answers
397 views

Get On sale product collection in magento 2

I want to show all the on sale product on one page. Can any one help me with the code to get the products collection which are on Sale i.e which has special price assigned in magento 2 This is my ...
  • 720
0 votes
1 answer
210 views

Magento 2: How to remove decimal points in special price column in product admin grid

I want to remove decimal points from special price column in product admin grid.
0 votes
2 answers
673 views

Special Price Not Applying in Magento2 Cart

I am creating simple products through API call. Product is created finely and showing all attributes finely in admin part but when ever i am seeing product in frontend it is not showing any special ...
  • 502
1 vote
1 answer
440 views

Checking if child products of a configurable product have a special price?

The following code has been added to the list.phtml but is working only for simple products. When they have an special price with a date range, a sale label is attached to the product image on the ...
1 vote
2 answers
35 views

Cannot get special price

I have the following problem: I want to get the final price programatically but it always displays 0 I tried with : $product->getSpecialPrice(); $product->getPriceInfo()->getPrice("...
0 votes
1 answer
511 views

How do I exclude products with discount from coupon codes?

I need put a coupon code. But I don't need the products with any discount (catalog price rule). I want to make discount coupon only for products with normal price. Is this even possible?
0 votes
2 answers
46 views

How to Special price based on attribute?

Is it possible to set special price automatically based on a attribute? I have an attribute called offerprice in which I enter the percentage of discount. So if the product price is $100 and I enter ...
1 vote
2 answers
2k views

how to get special price and regular price in phtml file magento2

i have a phtml file where i want to get special and regular price of product im using product model but getting nothing, im using this code: $product_id =$block->getProduct()->getId(); $_product ...
0 votes
1 answer
257 views

Magically special_from_date is set whenever product is updated

I got a weird issue i can't see to find the reason behind it. When i update product with a special_price and the special_from_date is NULL (empty) it updates the special_from_date to today.. And i can'...
0 votes
0 answers
260 views

Override advanced pricing from product with catalog price rule

I've create a customer group called: "Dealers", the idea is that they have in their account a 10% discount on all the store. The problem i'm facing is that if I set a product, let's say "Product A", ...
0 votes
1 answer
711 views

Magento 2 How to Catalog Price rule apply on product special price

i want to catalog price rule apply on special price product but i see in magento default apply only on product final price but i want to catalog rule apply on product special price how can achieve ...
  • 5,179
0 votes
1 answer
80 views

How to get final price for not current customer?

There is a special customer group named A which has it's own special catalog rules and group prices. I am going to display final price of another customer group named B for A users. How can I get ...
0 votes
1 answer
114 views

Magento 2: Calculate sale price based on Special Price not Standard Price

I am attempting to do a "sale on sale" promotion for one of my clients. They would like to add a discount on top of items that are already on sale. Example: "take an extra 30% off sale items." Now, I ...
1 vote
3 answers
237 views

How to round Magento 2 special prices?

What I am trying to achieve is that, I have SALE on an item I've managed to display the Regular Price and the Special Price But let's say I have a product which has regular price of 319.00 I would ...
  • 63
2 votes
0 answers
345 views

get price in shipment email template in magento 2

I need to get customer order product price for Shipment email template in configurable products. I had added magento-sales/templates/email/items/shipment/default.php $priceHelper = $_objectManager-...
  • 569
2 votes
0 answers
125 views

Magento 2: import special price for configurable products from M1

In Magento 1 the special prices were added to configurable products. In Magento 2 the special prices are set for simple products associated with the main configurable product. Is there an easy way ...
  • 1,501
1 vote
0 answers
87 views

Special Price Tax

recently i upgraded my Magento2.2.8 to Magento2.3.3 after upgrade i add product in my cart and go to cart page and see summary on cart Page the tax added 10% which is ok but the issue is if i add ...
  • 379
0 votes
1 answer
368 views

Magento 2 function to get a list of products (simple and configurable) with special price on a given date

I have the following function which gives me a list of simple products which are on special at the moment: public function getSpecialProducts($config = []) { /** @var $collection \...
  • 115
2 votes
0 answers
27 views

Magento 2 to avoid special price for b2b customer

I have used magento 2.3.1 enterprise edition. I need to restrict the special price for b2b customers ( either to all the b2b customers or specific customer groups). But for B2C customers, I need to ...
  • 127
0 votes
0 answers
242 views

Price format count in upto 4 decimal points but display 2 decimal points in frontend

I want to display price in two decimal points. If I enter 38.3445 in special price than I want output in frontend as 38.35 or 38.00 . But Magento display as 38.34 . Magento counts upto 3 decimal ...
1 vote
1 answer
940 views

How to Get Special Prices to Show with Original Price Strike-through in magento 2

Am adding special price with Original Price Strike-through
3 votes
0 answers
693 views

How to apply coupon code only to normal price not special price

I created one shopping cart rule for 10% discount using coupon code tenoff for all products but I want to apply this discount only on products which don't have active special price. Is this possible? ...
0 votes
1 answer
864 views

Magento 2: Catalog rule not apply on product special price

I have tried to apply Catalog Rule on product but this discount rule is not applied which product have already special price and tier price. so is this default magento behaviour of its bug or any ...
  • 1,022
0 votes
0 answers
70 views

Original Price And Special Price Issue in Magento 2

I want like this If original price is higher than the special price than original price should be hide in product details and throw out the check out page. Can you please let me know where to add ...
1 vote
0 answers
30 views

Configurable product on sale have an error on variation price

When I change product variation on the dropdown, the full price of that product is not loaded, it continues to show the price of the default configurable product. I do not know why this error happens ...
1 vote
0 answers
584 views

Magento 2 sorting configurable products by special_price is not working

I have simple and configurable products on listing page. I am using special_price attribute for sorting. It is working for simple products but not working for configurable products. I have assigned ...
  • 1,965
0 votes
2 answers
633 views

How to remove special price from configurable parent product in magento2

We have migrated Magento 1 to Magento 2 after migration special price of configurable product parent is showing but we can't edit this special price in the backend.
1 vote
2 answers
2k 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!
  • 475
5 votes
2 answers
842 views

Error showing special prices when changing store view - Magento 2.3.1

I have 2 store views, one for normal customers (product prices including tax) and one for wholesale customers (product prices excluding tax). See images for reference. Normal Store View (product ...
  • 465
0 votes
1 answer
111 views

where is magento2 admin bundle product special price file

bundle product in magento2 admin special price. I want edit the file but i can't find the file path. can anyone please help me.

1
2 3 4 5