Author Topic: Is there a way to apply custom discount at the time of cart summary or checkout?  (Read 95 times)

Offline sunnykasera3107

  • Newbie
  • *
  • Posts: 10
  • Karma: +4/-0
    • View Profile
Hi,

Is there a way to apply the custom discount at the time of cart summary or on the checkout page?
I have created a custom coupon feature which is totally different from the inbuilt feature. The backend (admin) is ready for that But when I am applying that coupon so I cannot get how to add a custom line item in cart summaries like tax or shipping.
Could you please suggest something to me for this?

Thank you

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4128
  • Karma: +249/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline sunnykasera3107

  • Newbie
  • *
  • Posts: 10
  • Karma: +4/-0
    • View Profile
That coupon is enabled. I am not talking about the existing coupon feature.
I am talking about the custom coupon feature I have developed. So I have a number of coupons in that custom coupon list. Now I want to apply that coupon on the cart.
So How cannot apply that on the cart is there any specific function available?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3891
  • Karma: +199/-0
    • View Profile
Maybe you need to create a custom order total to apply something to order and basket https://github.com/abantecart/abantecart-src/tree/master/public_html/storefront/model/total
“Chuck Norris is so amazing.”
― Mother Teresa

Offline sunnykasera3107

  • Newbie
  • *
  • Posts: 10
  • Karma: +4/-0
    • View Profile
Thank You, Yes I am looking for that way.
Let me try it...

Thank you for helping with this.