ETBS Order Note Templates for WooCommerce

설명

Adds a template picker to the WooCommerce order edit screen. Choose a saved template, click “Insert”, and the text is added to the order note field with the placeholders already filled in from that order. You can review and edit the text before you add the note.

Useful for the messages you type again and again: shipping notices, payment confirmations, cancellation guidance, and so on.

Features

  • Register templates under WooCommerce, with a title and a body.
  • Placeholders are replaced with the order’s data at the moment you insert the template.
  • Your own typing in the note field is never erased. The template is appended.
  • Works with both HPOS and legacy order storage.
  • Developers can add their own placeholders with the ormm_tags filter.

Placeholders

  • {customer_name} – billing name
  • {order_number} – order number
  • {order_date} – order date
  • {order_total} – order total, with the currency symbol
  • {payment_method} – payment method
  • {shipping_method} – shipping method
  • {site_name} – site name

A paid add-on for Japanese stores is available.

스크린샷

설치

  1. Make sure WooCommerce is installed and active.
  2. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins screen in WordPress.
  3. Activate the plugin through the “Plugins” screen.
  4. Register your templates, then open any order to use them.

FAQ

Where do I create the templates?

Under WooCommerce in the admin menu. Each template has a title and a body. The “Order” field sets the display order.

Where do the templates appear?

On the order edit screen, above the “Add note” field. If no template is registered, nothing is shown there.

Is a note to the customer sent by email?

Yes. WooCommerce emails every “Note to customer” as it is. Check the inserted text before you click “Add note”.

Can I use HTML in a template?

No. The body is saved as plain text, and HTML tags are removed when you save.

How do I add my own placeholder?

Use the ormm_tags filter. The keys include the curly braces.

add_filter( 'ormm_tags', function ( $tags, $order ) {
    $tags['{tracking_number}'] = (string) $order->get_meta( '_tracking_number' );
    return $tags;
}, 10, 2 );

Are my templates deleted when I uninstall the plugin?

No. Your templates are kept in the database when you delete the plugin, so they are still there if you install it again.

I use “ETBS OrderMemo” (the version distributed from GitHub). How do I switch?

The two plugins cannot be active at the same time. Deactivate “ETBS OrderMemo” first, then activate this plugin. Your templates are shared, so they carry over as they are.

Only deactivate the old plugin. If you want to delete it, first update it to version 1.0.3 or later. Earlier versions delete all of your templates when the plugin is deleted.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“ETBS Order Note Templates for WooCommerce”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“ETBS Order Note Templates for WooCommerce”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “ETBS Order Note Templates for WooCommerce”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.1.0

  • Initial release on WordPress.org.