ns-receipts-settings-tags
This filter helps add more tags to the receipt settings. In case you've created custom tags for the app, you might display them in the settings to give further insight into how it works to the user.
<?php
namespace Modules\YourModule\Providers;
use App\Classes\Hook;
use App\Services\CrudEntry;
use App\Crud\OrderCrud;
class ServiceProvider
{
public function register()
{
Hook::addFilter( 'ns-receipts-settings-tags', function( $tags ) {
$tags[] = '{customer_country}: displays the customer country';
return $tags;
});
}
}
You should then note that this is just informative and doesn't apply the replacement when the receipt is printed. For template mapping, refer to ns-orders-template-mapping.