Questions tagged [discount]

Indicates Questions regarding Shopping Cart discount

Filter by
Sorted by
Tagged with
0
votes
1answer
29 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
42 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
18 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
21 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
26 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 ...
0
votes
0answers
9 views

Group Price wont work for product using formula price

I am using a module that allows me to set a price based on a formula. The customer is able to choose the product height and width to get their price. Then I set a 25% discount for wholesale ...
0
votes
0answers
15 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
16 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
27 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
32 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
69 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
25 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
22 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
60 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
53 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
27 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
18 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
19 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
17 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
16 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 ...
2
votes
0answers
25 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
22 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 ...
3
votes
0answers
33 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
35 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
14 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
11 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
22 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 ...
0
votes
0answers
15 views

Display discount percentage for child products of Configurable product Magento 2

I have to display percentage discount for Configurable every child products. I have done it for Simple and Grouped products but not getting any idea for configurable products. Please help me or give ...
1
vote
0answers
48 views

100% Discount for matching products with discount code, Max qty 1 per product, Maximum fixed total, with 5 items

We have a clothing shop and are offering the following discount with a code to select customers only... 1 Free Sweatshirt (any size) 1 Free Polo (any size) 1 Free Fleece (any size) 1 Free Coat (any ...
0
votes
1answer
7 views

Magento 1 :How can I set Any Kind of Discount is not apply for Specified Product?

I have Five Prime Products in Magento 1 site And I want to set Condition for that No any Kind of Discount apply on this particular Product. Problem is Discount Coupon is Apply on this product and ...
0
votes
0answers
17 views

Discounts at line level?

I've been using Magento for a number of years now, and have found some of the extensions for promo discount really useful. However, we now integrate the site with our new ERP solution, and push/pull ...
2
votes
0answers
14 views

Magento 2 : Category products dynamic rules get scope between 10% and 20% discount

We have a category where we need to add all products from another category with between 10% and 20% discount. The problem is that some of the products have a special price AND a price-rule which ...
0
votes
0answers
8 views

How call all discounted products in a block

How can we call all discounted Products on Home page ? I check the option in backend Edit the Home Page and insert widget then select Catalog Product List an give condition . But i want to call ...
1
vote
0answers
23 views

Save shipping address after discount code applying

All previously filled information with shipping address is deleted, if I use coupone code in my cart summary block. As you can see State and Zip code are chosen. And then, if I apply discount code ...
0
votes
0answers
38 views

how to exclude special prices and multiple purchase discount from coupon code discounts

I want to create a discount code which will allow x% discount on the customers basket but I want to exclude items that are already have a discount applied (Special Price) but also want to exclude ...
1
vote
1answer
47 views

Adding custom discount adds 2 times in EE 2.2.6

I am adding custom discount to my cart but it seems it is adding 2 times in the cart. Here is my model file code. $discount = 10; $baseDiscount = 10; $total->addTotalAmount('plandiscount', -$...
0
votes
0answers
34 views

Magento 1.9 Dynamic Bundle with discounted price options

I have the following challenge. We would like to use dynamic bundles in Magento 1 and give a discount on additional bundle options (main product with accessories). Those bundle options are also sold ...
2
votes
3answers
76 views

Magento 2 New user give the discount

In Magento 2.2.6, How to give 5% discount for a newly registered customer ? Thanks in advanced!
0
votes
1answer
79 views

Magento 1.9 tier discount precision

We have a Problem with differences in the total price of the order between our Magento Webshop and ERP. For example Magento (in our case 1.9.4.0) calculates this way: 7.85 € (product price) - 5% (...
1
vote
0answers
21 views

magento 2 apply default discount code

I am working on magento 2.3.0 and checkout is working fine with discount. I have created discount code named 95TEST which discount 95% on order total. Now, Every time when customer redirect to ...
1
vote
1answer
39 views

Magento Shopping cart price rule with free shipping and discount

I'm trying to set up a shopping cart price rule to create a customer coupon code that accomplishes two goals: IF customer apply coupon code then 1) 20% off all customer and 2) free shipping(...
0
votes
1answer
67 views

Buys X get cheapest as Y from same category magento 2

As per the answer from here I have created an event for salesrule_validator_process and the code is below. class CustomCartPriceRules implements ObserverInterface { public function __construct() {...
3
votes
1answer
83 views

Magento 2 Add Discounts to totals to Quote

I am trying to create my custom reward points module. I need to apply discount to customer based on his reward points when he click use my rewards in cart/checkout page. For that i am followed below ...
3
votes
0answers
25 views

bundle vs single quantity discount

I write you because I am trying to create a shopping cart rule that applies a discount to a bundle of materials (2 different materials in each BOM) if the user places more than 10 bundles in the ...
2
votes
0answers
32 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
1answer
48 views

Magento1: Add Discount_Amount Column in Invoice details

I want to add a new column in customer's frontend where they can see also the discount amount. http://example.com/sales/order/invoice/order_id/11111/ I would like to add the column in this table. ...
0
votes
0answers
11 views

Manage discounts for custom totals

I have a custom total, for example: Shipping insurance. It is managed correctly, the price without Taxes and the price with Taxes, I would like to further improve this custom totals by inserting the ...