botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Cards Customization] Need Help removing tax and total in receipt card

Open Masssluis opened this issue 10 years ago • 11 comments

I want to display the key value pairs one by one in the card.I tried with receipt card but in that it is showing tax and total.I don't want to display the tax and total.Is there any way to do that or else with any other card i can able to do the same? capture

Masssluis avatar Nov 25 '16 05:11 Masssluis

What SDK and channel are you using?

chrimc62 avatar Nov 26 '16 01:11 chrimc62

I had also seen this behavior in Web Chat Channel. Even if Tax and Total are not set ,they are shown in Receipt card

AnandChitale avatar Dec 02 '16 04:12 AnandChitale

yes , it is there , but one thing i noticed that when the channel is Skype or Facebook and if the tax and total column is empty the card does not shows it .


From: AnandChitale [email protected] Sent: Friday, December 2, 2016 10:28:54 AM To: Microsoft/BotBuilder Cc: Masssluis; Author Subject: Re: [Microsoft/BotBuilder] Need Help removing tax and total in receipt card (#1733)

I had also seen this behavior in Web Chat Channel. Even if Tax and Total are not set ,they are shown in Receipt card

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/1733#issuecomment-264373678, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVHa1r-uUuPieDnCfc1gyehDxOqMLmOpks5rD6WOgaJpZM4K8Hut.

Masssluis avatar Dec 02 '16 09:12 Masssluis

Adding @LarsLiden to comment on the channel differences.

chrimc62 avatar Dec 08 '16 06:12 chrimc62

@eanders-MS can you take a look? This seems like a bug.

LarsLiden avatar Dec 08 '16 17:12 LarsLiden

Hi @Masssluis, I've opened an issue on the Web Chat repo to track the issue for the Web Chat channel.

Which other channels are you interested in?

I know Facebook drops the card if empty; we unfortunately don't have the ability to modify the Facebook UI to change that behavior.

dandriscoll avatar Dec 21 '16 22:12 dandriscoll

If I don't set the Total property when building a ReceiptCard (using C# and Skype Channel), the card does not get shown. I saw this is a mandatory field as we re talking bout a Receipt. However, I would like to achieve something like a receipt card but without Total field. Like this:

screen shot 2017-01-02 at 12 46 19

How can I indent text to the right using a HeroCard for instance? Is that possible?

@dandriscoll maybe you know the best way to tackle this.

Thanks in advance!

piffarettig avatar Jan 02 '17 15:01 piffarettig

Adding the Skype label to get help from Skype experts. We'll continue to track the Web Chat issue on the other repo.

dandriscoll avatar Jan 02 '17 18:01 dandriscoll

I have a similar requirement with being able to use a hero card to mimic a receipt card. In my case (using node.js) I have been using a receipt card to ask for confirmation for scanning in actual receipt values. This works fine in Slack and the emulator, but Messenger displays lots of spurious values that I'm not interested in and it also doesn't display half of what I do want (when I define them as facts), it also doesn't display the five buttons I want. However, I can't currently use a hero card because most of the text is truncated and the buttons cause it to display as a carousel. Presumably this is just a limitation of the Messenger cards that are out of your control?

If I could at least display the values in a card and then display the buttons in a standard choice prompt, then that would be a help, but the example by @piffarettig above is very close to what I'm after!

stenoid avatar Feb 27 '17 15:02 stenoid

Note: Please only submit Bot Builder SDK bugs here. If you have general questions or implementation issues, please submit a question on Stack Overflow at http://stackoverflow.com/questions/tagged/botframework.

nwhitmont avatar Apr 12 '17 17:04 nwhitmont

This issue is not fixed yet? Still have the same problem here

Daddymarto01 avatar Jun 08 '18 11:06 Daddymarto01