Forum Replies Created
-
AuthorPosts
-
August 13, 2020 at 8:24 am in reply to: Money off coupon for full amount still asks for card information #3157
madideas
ParticipantThanks for that quick update, tested and is behaving ok. I do note that the email receipt may not be ideal, as the ‘subtotal’ line shows a negative amount if the coupon value is higher than the purchase amount:
Product Name: Webinar for £10
Quantity: 1
Item Price: £10.00
Coupon “test12”: -£12.00
Subtotal: -£2.00
——————————–
Total Amount: £0.00I think it would be better for the subtotal to appear as zero, and arguably the coupon amount should only show the amount that’s been redeemed, i.e. the product price, however these aren’t deal-breakers. The danger here is that the customer might expect a refund of £2 looking at this receipt.
August 12, 2020 at 11:00 am in reply to: Money off coupon for full amount still asks for card information #3152madideas
ParticipantI’ve run some tests as suggested but I’m getting inconsistent results. When the coupon value meets or exceeds the product price it’s working as expected, but it’s also sporadically reducing the price to zero when the coupon price is lower than the item, for example product at £10 applying £9 coupon gave it for free, and also product price £55 with £33 coupon also gave for free.
So whilst I can’t be specific about why this is failing, this doesn’t appear to be a good build.
August 3, 2020 at 8:48 am in reply to: Money off coupon for full amount still asks for card information #3143madideas
ParticipantFWIW, and I obviously don’t know my way around the code, I modified the Load_coupon method for the Item class to check the coupon value and if >= product price then transform it into a 100% off, which is then handled properly by the rest of the plugin code.
if(intval($this->coupon[‘discount’])>=$this->get_price() &&
$this->coupon[‘discount_type’]===’fixed’){
// transform this to a 100%
$this->coupon[‘discount’]=100;
$this->coupon[‘discount_type’]=’perc’;
}July 31, 2020 at 8:18 am in reply to: Money off coupon for full amount still asks for card information #3139madideas
ParticipantHi, the product price is £33, and the coupon is ‘fixed amount’ of £33. I did also experiment with higher value coupons, and the total price went negative(!)
July 30, 2020 at 9:56 am in reply to: Money off coupon for full amount still asks for card information #3137madideas
Participant… and then payment processing reports ‘Error occurred: This value must be greater than or equal to 1’ – so it doesn’t work anyway.
-
AuthorPosts