My configuration is like this :
Set Min Qualifying Quantity = 2
Set Discount type Free Items with value 1

When i change the payment method it does not discount the item when i go back and submit it then it apply the discount.
Like i have two option : Paypal and COD. If i changed paypal to cod then submit the form the issue occurs.

Comments

sumitmadan’s picture

Component: User interface » Code
sumitmadan’s picture

Title: Uc Discount Alt not working Properly if Paypal Method Enabled? » Discount not Apply when i change the payment order and proceeds.
sumitmadan’s picture

Solved this by changing From Line 1692 :

 foreach ($order_and_discount_products as $key => $product) {
      $discount_products_qty += $product->qty;
      $discount_products_amount += $product->qty * $product->price;
   }

to

 foreach ($order_and_discount_products as $key => $product) {
      $discount_products_qty += $product->qty;
      $discount_products_amount += $product->qty * $product->price;
      if(isset($product->uc_discounts_is_fully_discounted)) {
			unset($order_and_discount_products[$key]->uc_discounts_is_fully_discounted);
	  }
    }

But there is one more issue :
Maximum time, If 'Add "Discounted products" to cart' is selected the 1 Free item is added with 0 qty. Sometimes it works fine.

sumitmadan’s picture

Issue summary: View changes

Reason of issue

tinker’s picture

Issue summary: View changes
Status: Active » Fixed

Please upgrade to 7.x-2.0-alpha3 and test again. Most of the code used to calculate and display discounts has been changed and should have fixed this issue. If the issue still persists please reopen it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.