The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [discount]

Indicates Questions regarding Shopping Cart discount

Filter by
Sorted by
Tagged with
0
votes
1answer
41 views

when coupon code apply and discount amount 0 then coupon not showing in order summery

I want to coupon code showing when discount amount is 0.00 Note: when discount coupon code is 0 or more then rule working fine
0
votes
1answer
41 views

Magento 2: Show subtotal without discount in Cart page

In my custom module, I need to Display subtotal without discount(subtotal - discount) how can I achieve my needs? , any help appreciated. Thank you
0
votes
0answers
25 views

Set discount only for one category for product who has multiple categories - Magento 2

I have some products which have 2 categories: Fabric and Wallpaper. I set cart condition that apply if category is Fabric and quantity is > 2. This works perfect. But I have a problem because some ...
0
votes
0answers
10 views

How to automatically apply a 50% discount to the order total for all re-orders?

As a client requirement, I need to automatically apply a 50% discount off the order total for all re-orders. This will be for all registered users. Is there a way to customize the re-order function to ...
0
votes
0answers
7 views

Generate 50% off coupon on already discounted products.If there is 10%, 20%, 30% or 0% OFF then the coupon should make it 50%

I want to generate coupon that apply 50% OFF on the products but if there is already discount on them like 10% OFF then the coupon should make it 50% OFF.Like wise if there is already 30% OFF the ...
0
votes
1answer
27 views

Magento 2 cart rule conditions and action to exclude specific product using sku

I have added cart rule and its working properly, I need to exclude specific product from cart rule and others to go with cart rule. EX: sku1 need to exclude from cart rule. 1.Only "sku1" in the ...
2
votes
3answers
160 views

Magento2 How to Discount Description add on Checkout order summary

I Want to add Coupon Description in Order Summary I have to Find the file here app/design/frontend/[VendorName]/[theme]/Magento_SalesRule/web/template/cart/totals/discount.html <!-- ko if: ...
0
votes
1answer
14 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
0
votes
1answer
27 views

Discount attribute is not visible in attributes set

I am new to Magento 2 and I am wondering why discount attribute is not visible in the store -> Attribute set -> Default -> Groups. I checked that the discount attribute is present in the ...
0
votes
0answers
20 views

Magento 2: Show discount and summary on mini cart (canvas)

I need to show the total summary and discount information on canvas cart. I am using a mini cart as canvas cart. https://prnt.sc/pcud8e May I call the api /V1/guest-carts/:cartId/totals-information ...
0
votes
0answers
12 views

Discount Message showing twice

Can anyone help me figure this out? I added text (as the default rule label) when creating a coupon code but for some reason in checkout the message shows up twice
0
votes
0answers
12 views

Discounts can not be applied to manual entered orders

I have a annoying issue that when we are entering an order manually in the backend we can adjust the product price to a custom price all OK but we are unable to use the discount box. It seems to be ...
1
vote
0answers
36 views

How to remove coupon from payment dive after clicking order summary discount code close button in magento2?

I have made custom discount remove button on checkout order summary. coupon removed successfully but how to refresh payment div discount box code after removing coupon? order summary: payment div:
0
votes
1answer
56 views

Magento 2: Remove coupon code from discount label

I want to remove Coupon code from Discount title on order summary from the Checkout page. please refer screenshot. i have checked console: <tr class="totals discount"> <th class=...
0
votes
0answers
11 views

Event for apply discount coupon Magento 2

I want to add custom validation for Discount coupon that it can be used only on first order of any customer. For this i want to create an observer for an event which will trigger when customer ...
0
votes
0answers
31 views

Magento 2: Shopping Cart Rule discount based on item quantity

I'm a Magento 2 newbie. My customer wants to add a cart rule like, apply 2% discount if item quantity >=12 apply 4% discount if item quantity >=24 apply 6% discount if item quantity >=36 apply 8% ...
0
votes
1answer
21 views

Magento 2.3.X: GraphQL does not reflect catalog rule discounts

I'm using Magento 2.3.2. I've successfully completed all cart-related tasks (create cart, add a product, select shipping& payment methods, and place the order) using GraphQL. GraphQL seems not ...
0
votes
1answer
20 views

How to show discount on all products without applying it in checkout page

I want to show X percent discount on all products in my website. I dont want to apply that on checkout page. Just only want to show visually like below image Is there any way to show this ? ...
3
votes
0answers
36 views

Magento 2: Set custom discount price to existing cart/quote in controller

I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered: I want to add discount to ...
0
votes
1answer
33 views

Can anyone explain me the code and what is been returned in $discountData : Magento 2

$rulePercent = min(100, $rule->getDiscountAmount()); $discountData = $this->discountFactory->create(); $itemPrice = $this->validator->getItemPrice($item); $baseItemPrice = $...
0
votes
0answers
11 views

Magento 2: Fetch coupon details from coupon name without applying it to the cart

How can I fetch coupon details ie discount amount or percentage from coupon name without applying it to the cart?
0
votes
1answer
54 views

Magento2 : Product not saving set custom attribute using Observer

I want to set Discount on my product after Save product so I'm using catalog_product_save_after then I am creating an attribute 'discount' and set the calculated value, but when i save the collection ...
0
votes
2answers
51 views

Round Special Price displayed in Catalogue pages (Product Listing Pages) - Magento 2.3.2

Magento 2.3.2 - I have set discount through Catalog Price Rule. And so in Catalog pages (Product Listing Pages) there are two Prices displayed 1) Regular Price 2) Special Price (discounted ...
0
votes
0answers
19 views

Catalog Rule - Discount price application

What is the exact location where discount is applied ? How can we markup the discount price ? Are negative values acceptable in discount price ? If we want to set negative values and increase ...
0
votes
0answers
23 views

Magento 2: create coupon code

I want to create a coupon code which can work as a gift card. Gift Card will be applied separately (not in discount form/ Multiple coupon can be apply) I followed Coupon code to achieve this but the ...
0
votes
2answers
40 views

Magento 2: How to pre Open Apply Voucher Code in Checkout page

When checkout page is loaded it shows apply discount code section like this We want that it should be preopen as shown in below image How to modify core magento functionality to pre open this ...
1
vote
0answers
26 views

Different price between PDP and cart

A client uses bundle products with discounts, which are set as a percentage of the original price. The discounted price is rounded to two decimals on the PDP and used in the total price calculation (...
0
votes
0answers
48 views

Magento 2, Applied discount amount not display on checkout and order item table

I have created a Catalog Price Rule for 10% discount like the below image It applied product price, but its not showing on checkout details and also the discounted amount details are not saved in ...
1
vote
1answer
59 views

How to get discount amount for each item from order id / item id

How can I get the discount amount for each item in an order? using its order id/item id. I am not able to retrieve the discount amount from its order id/item id.
0
votes
1answer
63 views

How to get discount amount in Magento 2

I am trying to get discount amount, but no success How to get discount amount from $block->getShipment() <?php /** @var $_item \Magento\Sales\Model\Order\Item */ $_item = $block->getItem(...
0
votes
0answers
83 views

Apply discount amount on cart line items in Magento 2

I am trying to set discount amount on each cart item in the cart with some condition. I have followed like this to achieve that. Vendor/Module/etc/sales.xml <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
26 views

Hide reward points payment when discound code is applied in magento 2

I want to hide reward points payment option while discount code is applied but I don't know if that can be set somewhere in the Magento admin panel. I want to do it in reverse direction too, so if ...
0
votes
1answer
25 views

Magento 2 complicated shopping cart rule

I can't figure out how I can create a complicated cart discount rule I need and if it can be done. Conditions for customers should be: One specific brand called "Xbrand" If customer add 2 products ...
0
votes
1answer
132 views

Discount Codes Not Working After Update (Magento 2.2.9)

After an otherwise successful update to Magento 2.2.9, the discount code functionality has stopped working. When I try to apply it on the Cart page, nothing happens. When I try it on the Payment ...
0
votes
0answers
9 views

Discount on related products magento 2.3.1

We are using magento 2.3.1, I was wondering if there is a way to apply a discount on related products if a product is added to cart. Do I need to create a custom rule or something? any suggestions? ...
0
votes
0answers
14 views

How to set custom tax and custom discount while placing order programmatically magento 2

hi all, we are placing order programmatically at this momemnt we are trying to add custom tax and custom discount. If you guys have any idea please guide me thanks in Advance.
2
votes
1answer
58 views

How to Modify Discount amount of cart price rule on cart page in magento 2

I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class Magento\SalesRule\Model\RulesApplier and function is protected function ...
2
votes
1answer
29 views

Order has discount but the discount was not applied in the item level

Can someone help me understand why my order has a discount but the discount is not divided into each of the items accordingly. In most of the orders, the discount amount is divided into each item ...
2
votes
0answers
20 views

Magento 2 shopping cart and checkout: show discounts tax included

In my checkout and shopping cart discounts are appearing tax excluded. I would like to show it tax included I'm searching where is defined the displayed value to place something like amount * 1.21, ...
0
votes
0answers
23 views

Magento2 Product discount by customer attribute

I am using Magento2.3.1. I need to discount a product by a customer custom attribute. I've added "DynamoCustomerType" to customer attribute. I used this first order discount tutorial to add customer ...
1
vote
0answers
18 views

Pricing rule : Percent of product price discount

I want to set up a "buy more save more" rule in Magento where one gets a 20% discount for every 150USD spent in a specific set of product categories. Is it possible to make sure products from ...
0
votes
0answers
18 views

I want to apply table rates shipping based on price AFTER DISCOUNT in Magento 2

I want to apply table rates shipping based on price AFTER DISCOUNT in Magento 2. For Ex. Here(https://prnt.sc/o4albv) is shipping apply on Subtotal amount $2676. I ...
3
votes
0answers
35 views

How to get the applied custom discount amount in observer?

I followed the steps in the below link to apply custom discount [https://magento.stackexchange.com/a/93349/21007][1]. But I need to get the applied custom discount amount in the observer event of ...
0
votes
0answers
25 views

Split cart rules/discount over multiple lines

I am trying to work out where or how I can get the discounts/cart rules to be applied across multiple lines eg Current Display Subtotal: $xxx.xx Discount (Free Shipping, Applied Coupon Code ...
4
votes
0answers
63 views

Invalid form key. please refresh the page. Discount code and Paypal review

This one seems different to all the previous questions about this error message. I'm getting the following message "Invalid form key. please refresh the page." when trying to enter a discount code or ...
0
votes
0answers
12 views

Product price issues after custom discount

I have built a custom salesrule which implements the DiscountInterface. When the sales rules criteria is met, the calculate() method runs on the for each product in the cart. Rather than apply a ...
0
votes
1answer
67 views

Quote Item level manual Discount - Magento 2

I need to give Quote Item level manual Discount for selected cart items. After giving discount Cart Item row total will change. As can't modify the product price so custom price solution is also not ...
0
votes
0answers
21 views

How to apply New customer discount for first & third order

How to apply discount for new customer like 1st order 5% discount and 3rd order 10% discount?
0
votes
0answers
13 views

Magento 2 discount applied to all items in the order

Can someone explain why magento spread the discount to all items bought in an order even thought the discount was against 1 items. NOTE: the discount is spread only in backend order for the customer ...
1
vote
1answer
32 views

Pre populate the discount code in checkout/cart

I want to know if we can pre populate the discount code in the checkout/cart page when customer clicks a button from a page. Aim is when customer clicks a button from a page it should redirect them ...