AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: sunnykasera3107 on February 07, 2019, 05:41:56 AM

Title: Is there a way to apply custom discount at the time of cart summary or checkout?
Post by: sunnykasera3107 on February 07, 2019, 05:41:56 AM
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
Title: Re: Is there a way to apply custom discount at the time of cart summary or checkout?
Post by: abantecart on February 07, 2019, 10:49:09 PM
Possibly, you do not have coupons enabled on the shopping cart. Check manuals below.

https://abantecart.atlassian.net/wiki/spaces/AD/pages/7143431/Coupon+on+shopping+cart+page

https://abantecart.atlassian.net/wiki/spaces/AD/pages/11304965/Manage+Coupons
Title: Re: Is there a way to apply custom discount at the time of cart summary or checkout?
Post by: sunnykasera3107 on February 08, 2019, 02:06:11 AM
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?
Title: Re: Is there a way to apply custom discount at the time of cart summary or checkout?
Post by: Basara on February 08, 2019, 05:32:59 AM
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
Title: Re: Is there a way to apply custom discount at the time of cart summary or checkout?
Post by: sunnykasera3107 on February 11, 2019, 03:32:26 AM
Thank You, Yes I am looking for that way.
Let me try it...

Thank you for helping with this.