Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Use coupon for certain category only  (Read 1425 times)

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Use coupon for certain category only
« on: December 04, 2023, 06:35:56 PM »
Hi, is there a way to have coupon apply only to certain products or a selected category ?  I added category A for a coupon of 10% discount  but now if customer adds coin from category A & B both coupon is applied to total. I want it to apply to only to those product belonging to category A not the entire cart.
« Last Edit: December 04, 2023, 06:46:27 PM by Sam_78 »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5798
  • Karma: +274/-2
    • View Profile
Re: Use coupon for certain category only
« Reply #1 on: December 05, 2023, 06:37:10 AM »
Hello.
This is expected behavior. If you want to change how the coupon applies you can change this file https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/total/coupon.php
The Github Pull request is always welcome

 

Powered by SMFPacks Social Login Mod