Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show payment amount on Pay button #23

Open
ghost opened this issue Apr 28, 2019 · 2 comments
Open

Show payment amount on Pay button #23

ghost opened this issue Apr 28, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2019

To make things clearer and avoid the need of scrolling for the visitors, I would show the payment amount on the Pay button of the stripe iframe views/templates/front/checkoutiframe.tpl

Pay $ XX,XX
Pay XX,XX €

for example

@romaric33
Copy link

I agree with this idea.

@romaric33
Copy link

romaric33 commented Nov 7, 2020

To achieve this, I have edited the file /modules/stripe/views/templates/hookccpayment.tpl on line 152

data-tid="elements_thirtybees.form.donate_button">{l s='Pay' mod='stripe'} {displayPrice price=$total_price}</button>

but when changing carrier for instance, the price will not be shown anymore.

My new solution is:
data-tid="elements_thirtybees.form.donate_button">{l s='Pay' mod='stripe'} {$stripe_amount / 100} €</button>
hower the currency sign is hardcoded and it uses a dot to separate decimals where in France we would use a comma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants