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

Payment description merge tags #358

Closed
rvdsteege opened this issue May 11, 2023 · 3 comments
Closed

Payment description merge tags #358

rvdsteege opened this issue May 11, 2023 · 3 comments
Assignees

Comments

@rvdsteege
Copy link
Member

From customer:

Where can I find a list of available merge tags for WooCommerce, to use in the payment/transaction description?

[…] For the custom payment description I'm now looking for the merge tags for 'single product name' and 'customer name', to make each transaction/payment from WooCommerce more recognizable, both in the Mollie dashboard and in the bank account.

[…] Are there any ready-made merge tags available for this? Or can you help me with a code-snippet to add these in the functions.php of the active theme, to make them available for use in these settings?

We have a few tags available (and mentioned) for use in the WooCommerce payment method description setting: {order_number}, {order_date}, {blogname}.

Specifically for Mollie, there's also a filter pronamic_pay_mollie_payment_description:

Custom tag replacements can also be added by hooking into the pronamic_pay_pre_create_payment action:

I've created a Gist for customer and item names tags, using this action:

However, we could also add some kind of merge tag controller which allows for payment data being used through tags in the payment description in all supported plugin integrations. For example:

  • {site_title}
  • {user:name}
  • {customer:name}
  • {customer:first_name}
  • {items} payment lines names

Internal Help Scout ticket: https://secure.helpscout.net/conversation/2239610520/25619

@remcotolsma
Copy link
Member

In pronamic/wp-pronamic-pay-adyen#22 a customer also needed the support of merge tags {gf_form_id} and {gf_entry_id}. If we introduce the ability to register merge tags we could include it in https://github.com/pronamic/wp-pronamic-pay-gravityforms.

@kjtolsma
Copy link
Member

kjtolsma commented Sep 12, 2023

Ziekenhuis Nij Smellinghe heeft ook de wens om een andere merge tag te gebruiken (Product titel). Het gaat in dit geval om Mollie i.c.m. WooCommerce.

@remcotolsma remcotolsma self-assigned this Sep 27, 2023
@remcotolsma
Copy link
Member

Ondersteuning voor merge tag {payment_lines_name} is toegevoegd via pronamic/wp-pay-core#149. Zojuist ook nog even getest en dit werkt goed:

Scherm­afbeelding 2023-09-29 om 14 35 48 Scherm­afbeelding 2023-09-29 om 14 35 25 Scherm­afbeelding 2023-09-29 om 14 36 29 Scherm­afbeelding 2023-09-29 om 14 36 44

De nieuwe merge tag functionaliteit geeft ruimte voor meer merge tags, maar voor nu hebben we daar niet hele concrete wensen in.

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

No branches or pull requests

3 participants