Skip to content

Commit

Permalink
fix(email-template): missing attribute (#2487)
Browse files Browse the repository at this point in the history
withdraw approval template
product publish template
  • Loading branch information
kzamanbd authored Jan 3, 2025
1 parent c159994 commit de5c7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion includes/Emails/WithdrawApproved.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ public function trigger( $withdraw ) {
$this->setup_locale();
$seller = new Vendor( $withdraw->get_user_id() );
$this->object = $seller;
$amount = wc_format_decimal( $withdraw->get_amount(), false, true );

$this->placeholders['{store_name}'] = $seller->get_shop_name();
$this->placeholders['{amount}'] = dokan()->email->currency_symbol( $withdraw->get_amount() );
$this->placeholders['{amount}'] = dokan()->email->currency_symbol( $amount );
$this->placeholders['{method}'] = dokan_withdraw_get_method_title( $withdraw->get_method() );
$this->placeholders['{profile_url}'] = esc_url( dokan_get_navigation_url( 'edit-account' ) );
$this->placeholders['{withdraw_page}'] = esc_url( dokan_get_navigation_url( 'withdraw-requests' ) );
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/plain/product-published.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// translators: 1) product title
echo sprintf( esc_html__( 'Your product %s', 'dokan-lite' ), esc_html( $data['{product_title}'] ) );
echo esc_html__( 'has been approved by one of our admin, congrats!', 'dokan-lite' );
echo esc_html__( ' has been approved by one of our admin, congrats!', 'dokan-lite' );
echo " \n\n";

// translators: 1) product url
Expand Down

0 comments on commit de5c7a1

Please sign in to comment.