question

parag avatar image
parag asked jamekaelso343 answered

Does an event occur when a discount is applied to an item or order?

We're developing a Clover App where users must choose discounts from either the native Clover discounts app or a list of discounts not stored in the Clover system. Is there a broadcast sent when the user clicks the discount link for an item or the 'Add Order Discount' link from the Register app? I aim to capture when they click one of these links and prompt them to choose between a Clover Discount or an external discount.

Clover Android SDK
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

angela683 avatar image
angela683 answered angela683 edited

Hello, @Parag dollartreecompass


Unfortunately, there is no event broadcasted when a discount is applied to a line item or an order, nor is there one when a merchant clicks on the “Add discount” button or the “Add order discount” button. This means that you won’t be able to capture the click on these links directly to prompt the user to choose between a Clover Discount or an external discount.


As a workaround, you could consider adding a custom button or modify order button within your app that merchants can use to apply external discounts. This button would launch an activity from your app where you can present the options for applying either a Clover discount or an external discount. This way, you can control the flow and ensure that the merchant is presented with the choice at the right moment in the transaction process.


Implementing this solution would involve modifying the user interface of your Clover App and handling the discount logic within your application’s code. It’s a more manual approach but can achieve the desired outcome of guiding the user through the discount selection process. Remember to make the user experience as seamless as possible to avoid confusion and streamline the checkout process.



I hope my suggestion is helpful for you.



Best Regard,
angela683

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

robert2003b avatar image
robert2003b answered robert2003b edited

For your external discounts, you can add a “Modify Order” button in your app. This button will show up in the same section as merchant-facing custom tenders. When clicked, it will launch an activity from your app (using an intent filter). In this activity, you can then ask the merchant to add an outside discount to the order. You can label the button as “Add outside discount” or any other relevant text using the android:label field. www.coveredca.com

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

danial01232 avatar image
danial01232 answered

For Monkey Mart, consider adding a "Modify Order" button to your app for external discounts. Clicking it launches an activity prompting merchants to apply outside discounts.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tomdanny avatar image
tomdanny answered

Yes, when a discount is applied to an item or order, an event typically occurs to update the system and reflect the change. This might involve triggering notifications, recalculating totals, or logging the transaction details. To effectively manage and track these events, ensure your system is properly configured. Complement your workflow with custom printed clothing that features your company’s logo or message, adding a professional touch to your operations.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

danial01232123 avatar image
danial01232123 answered

When a discount is applied, events trigger updates in the system, such as recalculating totals or logging transaction details. Ensure your system is configured to track these changes. You can also enhance your workflow with custom printed clothing featuring your company’s logo. For a fun break, play the slope game to unwind.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jamekaelso343 avatar image
jamekaelso343 answered

Having an event trigger when a discount is applied to an item or order sounds like a fantastic feature! It would be incredibly useful for tracking promotional performance, automating workflows, and gaining insights into customer behavior. This functionality could make managing discounts and marketing strategies much more efficient to the Explore

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community