fbpx

Vendor Staff Email support overwrites WooCommerce default email templates

WCMp Vendor Staff

Vendor Staff Email support overwrites WooCommerce default email templates Resolved

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #114236
      purchase
      Participant

      Hi,

      I have installed version 1.1.7 of WCMp Vendor Staff and I noticed that the default email templates of WooCommerce are not displayed anymore in WooCommerce Email Settings page.
      I have tried to check and it seems that the Vendor Staff plugin cleared the WooCommerce email template when it added its own email template
      Kindly check below function inside class-wcmp-sub-vendor.php

      // Email template added
      function wcmp_sub_vendor_email_setup() {
          require_once( 'emails/class-sub-vendor-email.php' );
          $emails['WCMP_Sub_Vendor_Email'] = new WCMP_Sub_Vendor_Email();
          return $emails;
      }
      Copy
    • #114241
      This reply has been marked as private.
    • #114454
      webmaster.mid
      Participant

      Hi. This error is happening on line 335 of file wcmp-sub_vendor/classes/class-wcmp-sub-vendor.php.

      The function is not receiving parameter $emails, resetting all WC e-mails.

      // Email template added
      function wcmp_sub_vendor_email_setup($emails) {
      require_once( ’emails/class-sub-vendor-email.php’ );
      $emails[‘WCMP_Sub_Vendor_Email’] = new WCMP_Sub_Vendor_Email();
      return $emails;
      }

    • #114522

      Hi @webmaster.mid,
      Yes, you are right.
      We will fix this issue permanently on our next update.

      Regards,

    • #120904

      hi, we have released an update with the fix.

Viewing 4 reply threads

The topic ‘Vendor Staff Email support overwrites WooCommerce default email templates’ is closed to new replies.

Buy all Marketplace addons together!!

Check Slashed Price