How to get the coupon code which customer enters in the checkout page and giving custom discounts to the customer according to the country code using observers.

please help me out.

  • giving custom discounts to the customer don't understand this word if a coupon is already given discount then why you need custom discount again. Can you please explain it? – Amit Bera Jun 12 '18 at 14:46
  • i need one discount for one country and another discount amount for another country with the same coupon code...thats why i need observer to do this – SUBBULAKSHMI G Jun 13 '18 at 6:07
  • Create cart price rule with 1 common coupon code and don't specific any country
  • Now this coupon code would apply for all customers irrespective of countries
  • Then use this event salesrule_validator_process and try to debug customer country data then override the cart rule discount based on your conditions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.