-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update Gateway.php #7
Conversation
Instead of showing "Pronamic" on the payment button as default text, it should be fetched from the user-defined title. So that the admin can edit the payment button text. What do you think about it?
I don't think it ever does (I was unable to reproduce it), there's a
The payment method title is not the same as the order button text. We currently set the button text to Proceed to {payment method name} if the name of the payment method is known (which is the case for all methods, except for the unique Pronamic method). Consider the title being set to for example Method X (no additional fees!), we don't want to set the button text to a title like this, as it is unclear what the button will do if we only use the title as button text and prepending the button text will result in text like "Proceed to Method X (no additional fees!)" — which is also a little strange. We've actually used the title as button text in the past, but have moved away from that as we noticed all kinds of weird texts on this button. Please note that the filter |
I understand what you say. Are you planning to give an option to the admin to edit button text without woocommerce_order_button_text filter? I mean, currently, the admin has an option to edit the title, are you planning to give a new option to change button text also? |
No plans for an order button text option. Such option might result in i18n issues, for example if the user profile language not equals the site language. Do you have a specific use case, where Place order does not make sense for the order button? |
For custom payment methods, currently, there is no way to define the payment method name. Kindly refer For these custom payment methods, woocommerce shows "Proceed to Pronamic". Kindly assist, how can we handle this? |
What exactly is a custom payment method? If this is a class extending from |
Hello @rvdsteege Sorry for the late reply. I missed your last message.
Now, on woocommerce checkout page, I see "Proceed to Pronamic", instead of "Proceed to UPI" because of That's why I requested filters here. Could you please work on adding this filter? It will fix the issue I mentioned above. Because Also, kindly add a filter here also |
Instead of showing "Pronamic" on the payment button as default text, it should be fetched from the user-defined title. So that the admin can edit the payment button text. What do you think about it?