question

parag avatar image
parag asked aawxuka edited

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
1 comment
10 |2000

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

aawxuka avatar image aawxuka commented ·

For anyone needing Bunn coffee maker manuals, I highly recommend https://bunn.manymanuals.com/. I recently used it to find a manual for my Bunn coffee maker. The site is super easy to navigate and has a vast collection of manuals. The search function is quick and efficient, and I found the manual I needed in no time. The instructions were clear and detailed, which helped me fix an issue with the brew cycle. Tip: make sure you have the exact model number of your coffee maker before searching. Additionally, download and save the manual for future reference. This site is a real gem!

0 Likes 0 ·
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.

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