Skip to content

Commit

Permalink
fix: fix bug Abandoned Carts page
Browse files Browse the repository at this point in the history
  • Loading branch information
HuyPhuc98 committed Oct 30, 2023
1 parent 28ec660 commit bc1fa3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Block/Adminhtml/AbandonedCart/Edit/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function createOptions(array $options)
*/
public function getEmailTemplateOptions()
{
$this->emailTemplate->setPath('mpsmtp_abandoned_cart_email_template');
$this->emailTemplate->setPath('mpsmtp_abandoned_cart_email_templates');

return $this->createOptions($this->emailTemplate->toOptionArray());
}
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Model/Template/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Config
*/
public function afterGetAvailableTemplates(EmailConfig $subject, $templates)
{
$key = array_search('mpsmtp_abandoned_cart_email_template', array_column($templates, 'value'));
$key = array_search('mpsmtp_abandoned_cart_email_templates', array_column($templates, 'value'));
unset($templates[$key]);

return $templates;
Expand Down

0 comments on commit bc1fa3f

Please sign in to comment.