Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Follow up emails

WCMp Core

Resolved
Viewing 44 reply threads
  • Author
    Posts
    • #128035
      WLS_FH
      Participant

      Hi there,

      How do we send follow up emails to vendors who did not list any product yet (but they registered an account)?.
      Is there any solution you can recommend?

      Thanks

    • #128136

      Hi.
      In order to send follow up emails, you can create an announcement and choose which vendor to send the message. Whenever an announcement is send, the selected vendor will also receive an email as well as can see the announcement in their dashboard.

    • #128141
      WLS_FH
      Participant

      hi, thank you we knew about announcements.
      Is there any automated tool we can use, instead?
      Imagine having hundreds of vendors it gets a bit tricky to know which one listed a product or not.

      Thanks

    • #128181

      Hi,
      I’m afraid that we don’t have any automated tool instead of announcement.

    • #128259
      WLS_FH
      Participant

      Shame, we really need to find some sort of automation to boost listing.

      Using the announcement feature as you recommended, is it possible to use context varibales such as {name} so that we customize one template and and send it to specific vendors ?

      Also, where do we customize the email template?
      Thanks

    • #128278
      WLS_FH
      Participant
      This reply has been marked as private.
    • #128281

      @WLS_FH, you can definitely automate the flow. However, this requires a good amount of custom code.

      If you want our team can help you out with the coding logic.

      • #128282
        WLS_FH
        Participant

        We will defintely need to look into this further as we want to automate some process.
        Before doing that, can you please look into the issue we found ?
        Thanks

    • #128328

      Hi,
      We tried to recreate this on our end but didn’t face any such issues.
      Kindly check the link below:
      https://www.loom.com/share/ba317e4eeb1242869c204928fb9df51d

      Kindly note that,
      Announcements are made by admin to vendors to notify them/alert them regarding anything.

      From admin’s dashboard, you have to go to announcements tab under WCMp and create a new announcement mentioning the vendor which admin wishes to.

      So Whenever an announcement is posted by admin, vendors will be able to see it under “Announcements” tab in vendor dashboard (like shown in the video). We will just notify the vendor via mail that an announcement has been made. But in order to see the content,they have to visit their dashboard.

    • #128346
      WLS_FH
      Participant

      In your video you did not show the email the vendor received.
      In my video the body of the email received by the vendor is different to the one set in the Announcement.
      Can you please check again ?

    • #128389

      Hi,
      In the body of the mail you’ll not be able to see the content of the announcemnt added, you’ll only be notified that an announcement has been made (i.e. the email you have received).

      In order to view the announcement and the content you have to visit the vendor dashboard.

      Let us know if you need any further help.

    • #128393
      WLS_FH
      Participant

      Hi,

      It seems you’re not getting my point.
      Whoever receives the announcement email, receives a body text which has nothing to do with the body of the Announcement.

      Regardless if on the dashboard the announcement is fine.

      I am talking about the email which is being automatically sent out to vendors. That body of that specific email, is wrong.

      Let me know if it’s still unclear.
      Thanks

    • #128413

      Hi WLS_FH,
      Hi
      Our replies are inline with yours.

      -It seems you’re not getting my point.
      Whoever receives the announcement email, receives a body text which has nothing to do with the body of the Announcement.
      Regardless if on the dashboard the announcement is fine.
      I am talking about the email which is being automatically sent out to vendors. That body of that specific email, is wrong.
      Let me know if it’s still unclear.
      Thanks

      >>We understand your point.
      But kindly note that the announcement emails doesn’t contain the actual announcement message. It just has a default email text i.e. body text

      Therefore the email body will not contain the message that you have made in the announcement. WLS, a vendor can only see the announcement message in their vendor dashboard page.

      Now if you want to display the announcement message into the mail also, then you have to do custom code and add this.
      =========================================================================================================================================================

      -As ADMIN, if I edit the store location of a VENDOR (wcmp-vendors-store-location), the change won’t be reflected on the Store Location Map on the Frontend.
      To load the store location map we use WCMp: Vendor’s Store Location.
      It works ONLY when vendors do it, but ADMIN can’t.

      >> There are two types of options, i.e, changing store address and changing store location from map.
      Admin can only change the vendor’s store address. But to update the store location through map, only vendors can do so from the vendor dashboard.

      =========================================================================================================================================================

      -How to hide ‘vendors email address’ from the storefront?

      >> In order to remove vendor’s email id from storefront,
      Kindly add this code in function.php of your current active theme :
      add_filter(‘wcmp_vendor_store_header_hide_store_email’, ‘__return_true’);

      =========================================================================================================================================================

      -can you please provide instructions on how to customize vendors Wizard’s layout ?
      We’d like to provide a better branding experience when Vendor register for the first time.

      >>What type of customization are you looking for.
      =========================================================================================================================================================
      Kindly maintain this thread for all your queries.
      Looking forward for your cooperation.

      • #128451
        WLS_FH
        Participant

        Hi,

        Thanks for replying, but merging other issues in one thread it is very confusing.
        Please keep topics/thread separate.

        My answers:

        **********

        We understand your point. But kindly note that the announcement emails doesn’t contain the actual announcement message. It just has a default email text i.e. body text.
        Therefore the email body will not contain the message that you have made in the announcement. WLS, a vendor can only see the announcement message in their vendor dashboard page.
        Now if you want to display the announcement message into the mail also, then you have to do custom code and add this.

        Sorry but it just does not make much sense then and I shouldn’t be wasting this much time to explain quite an obvious issue.

        You’re saying that an email containing a ‘default’ body text, which has nothing to do with the announcement itself, is sent out to vendors when ADMIN create an announcement. So I don’t understand why sending a WRONG email in first place, all the more when the subject of the email is ‘ANNOUNCEMENT’.

        So you either 1. prevent sending a ‘default’ email to VENDORS or 2) you fix it and integrate with WOO EMAIL ANNOUNCEMENT, as it should be.

        **********

        There are two types of options, i.e, changing store address and changing store location from map.
        Admin can only change the vendor’s store address. But to update the store location through map, only vendors can do so from the vendor dashboard.

        Even this does not make much sense.
        Why Admins can change a store location, but not the real location on the map? It seems there’s a missing step here.

        **********

        Thanks for the code

        **********

        I need to customize colours/fonts of the Wizard and make it closer to our Brand Identity.

        **********

        Thank you

    • #128472

      @WLS_FH, our team will check this and get back to you.

      Kindly provide them some time.

      • #128630
        WLS_FH
        Participant

        Hi,
        Any update on this?
        Announcements do not work they way they should and we need to fix this asap.

        Thanks

    • #128477
      WLS_FH
      Participant

      Hi, I tried this

      -How to hide ‘vendors email address’ from the storefront?

      >> In order to remove vendor’s email id from storefront,
      Kindly add this code in function.php of your current active theme :
      add_filter(‘wcmp_vendor_store_header_hide_store_email’, ‘__return_true’);

      But did not work.
      Emails are still very miuch visible in the vendors’ storefront.

    • #128496

      Hi, this code is working fine on our end

      add_filter('wcmp_vendor_store_header_hide_store_email', '__return_true');
      Copy

      As you are facing this issue, kindly create a staging site and share the temporary admin, FTP access.
      While sharing the access don’t forget to mark the response as private.

      • #128629
        WLS_FH
        Participant
        This reply has been marked as private.
    • #128637
      This reply has been marked as private.
    • #129049
      WLS_FH
      Participant

      Hi there,

      is there any update on this topic? I am still waiting to see how to fix these issues.

      **********

      “We understand your point. But kindly note that the announcement emails doesn’t contain the actual announcement message. It just has a default email text i.e. body text.
      Therefore the email body will not contain the message that you have made in the announcement. WLS, a vendor can only see the announcement message in their vendor dashboard page.
      Now if you want to display the announcement message into the mail also, then you have to do custom code and add this.”

      Sorry but it just does not make much sense then and I shouldn’t be wasting this much time to explain quite an obvious issue.

      You’re saying that an email containing a ‘default’ body text, which has nothing to do with the announcement itself, is sent out to vendors when ADMIN create an announcement. So I don’t understand why sending a WRONG email in first place, all the more when the subject of the email is ‘ANNOUNCEMENT’.

      So you either 1. prevent sending a ‘default’ email to VENDORS or 2) you fix it and integrate with WOO EMAIL ANNOUNCEMENT, as it should be.

      **********

      I need to customize colours/fonts of the Wizard and make it closer to our Brand Identity.

      **********

    • #129162

      @WLS_FH, if you want to stop the mails, then goto WooCommerce >> Settings >> Mail and disable the “Vendor New Announcement” email : https://prnt.sc/1wlhtis

    • #129199
      WLS_FH
      Participant

      Hello,

      In all honesty I would like this feature to work as it should be.
      More specifically, in WCMP – AFM you have a section called ANNOUNCEMENT and you can decide who reads/receives this announcements. Given that NOT every vendors log into the platform everyday, but MOST of the vendors receives and reads emails, I think it is appropriate that they receive the correct announcement in the BODY of the email. And not something wrong, which is clearly either a bug or a lack of integration.
      Kindly provide a fix, as having multiple Vendors it is quite necessary to send bulk notification via emails.

      Also, I am still waiting to know how to customize colours/fonts of the Wizard and make it closer to our Brand Identity.

      Thanks

    • #129247

      @WLS_FH, I have forwarded this feature request with our team. They will take further decision on this.

    • #129271
      WLS_FH
      Participant

      Hi Moumita,

      Just to clarify. This is not a new feature.
      It’s a missing part with WC core email messaging system.

      To give a better context.
      Say a marketplace needs to update its terms and conditions.
      By law (at least in EU) the admin needs to send an email to all registered users.

      Clearly this can’t be done by hand nor you can expect to to just place an announcement in the dashboard until the login in again.

    • #129287

      Hi @WLS_FH, we have opened a git link. Please check https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/971

      • #131659
        WLS_FH
        Participant

        Hi,
        Just wondering what’s the progress on this.
        Thanks

        • #131660
          WLS_FH
          Participant

          @Moumita we just tested this with the new release and it doesn’t seem to be working yet.

          • #131711

            Hi,
            We have already fixed this and also recreated on our end. (see the screenshot- https://prnt.sc/2263amw )
            Kindly update the plugin and check again.

            • #131732
              WLS_FH
              Participant

              Nope, it still does not work and yes, we have updated the plugin already.

              It works ONCE, and one time only, the first time you SEND the announcement out.

              Try it yourself.
              1. Create a new test message and send it to yourself – you will receive it
              2. Edit the same message and send it to another email address – you will not receive it
              3. Edit the same message and send it to yourself again – you will not receive it

              In short. It works the first time the announcement is sent out; thereafter that very same announcement cannot be sent out anymore.

              Additionally:
              1) We added the variable {name} into the announcement body but it wasn’t parsed. Is there a way to use a variable to fetch the name of the Vendor?
              2) The subject of the email is the name of the platform, and not the title of the Announcement.
              3) The email text is different to the one set in the Announcement.

              Pretty buggy still.

              • #131734
                WLS_FH
                Participant
                This reply has been marked as private.
              • #131819

                Hi,
                The default flow of announcement is such that email will be sent only once i.e, when announcement will be made for the first time.
                This is because once a announcement sent and vendor read that, the announcement gets set as unread. That is why once a announcement is sent, we don’t send any email when you edit it.
                So we always recommend to create a new announcement.

                • #131832
                  WLS_FH
                  Participant

                  Ok I understand, but is this your own flow or Woocommerce?
                  I don’t think this is the right flow, as I can give you different scenarios where you need to edit/change that announcement and send it for example to new added vendors.
                  You don’t want to create a new announcement every time you have a new Vendor, right?

                  Also, you did not tell me why the body and the subject of the email is wrong.
                  Can you tell us how to fix it ?
                  And can you tell us how to add a variable to fetch Vendor’s name dynamically?

                  Thanks

                  • #131839

                    Hi,
                    Our replies are inline with yours-

                    -You don’t want to create a new announcement every time you have a new Vendor, right?

                    >>Whenever a vendor opens the announcement in vendor dashboard it goes in read section (see screenshot- https://prnt.sc/22kba3j ). If you edit the old announcement it will not appear in unread section, for this reason mail will be sent only once.

                    However whenever a new vendor will be added, you’ll have to add a new announcement and it will be also be notified in vendor dashboard, in announcement notification.

                    ==========================================================================================================

                    -Also, you did not tell me why the body and the subject of the email is wrong.
                    Can you tell us how to fix it ?
                    >> We tried to recreate this on our end but didn’t face any such issues.
                    (see screenshot- https://prnt.sc/22kfk9s and https://prnt.sc/22kgq7m )

                    ==========================================================================================================

                    -And can you tell us how to add a variable to fetch Vendor’s name dynamically?

                    >>Our developer will get back to you.

                    • #131852
                      WLS_FH
                      Participant

                      @Moumita

                      I) Flow. If that’s the case my genuine opinion is that the flow is wrong. You have an announcement that can be sent to one or another vendor. The system should keep track who received that announcement (sent/unread) but at the same time, it should allow adding more recipients in the future. It’s a query in the DB, if you recorded the previous recipients than you should be able to add more in the future.
                      I understand that it’s coding, but if you want to make it right, that should be the process.

                      II) Body/Subject, it’s all wrong.
                      1. the subject does not show up in the Email Subject, but just the name of the marketplace
                      2. the ‘Subject’ is repeated 3 times. We don’t want this
                      3. where we added the question mark, the text ‘This is to inform you that we recently updated the article This is the subject of the test announcement’ is something we don’t want, or we want to change, eventually.
                      4. where we added the second question mark, the text ‘You can always check the changes from here https://briskby.com/dashboard/vendor-announcements/. We would request you to check the same and take the necessary action if required.
                      Your continued use of the Store, will be subject to the updated terms.’ is something we don’t want, or we want to change, eventually.

                      III) context variable. Please do.

                      Thanks

                      • #131891

                        Hi.

                        Our replies are inline with yours-

                        1Flow. If that’s the case my genuine opinion is that the flow is wrong. You have an announcement that can be sent to one or another vendor.

                        >>We have forwarded this to our development team and they will take further decision on this and might fix in future update. However we cannot provide any ETA at the moment.

                        ===========================================================================================

                        2.the ‘Subject’ is repeated 3 times. We don’t want this

                        >>solution: –
                        1 create dc-product-vendor folder inside current child theme
                        2 then create emails folder inside the dc-product-vendor
                        3 then create a file (vendor-new-announcement.php) inside your emails folder
                        4 Finally paste the below code in it : –

                        <?php
                        /**
                        * The template for displaying demo plugin content.
                        *
                        * Override this template by copying it to yourtheme/dc-product-vendor/emails/vendor-new-announcement.php
                        *
                        * @author WC Marketplace
                        * @package dc-product-vendor/Templates
                        * @version 0.0.1
                        */
                        if (!defined(‘ABSPATH’))
                        exit; // Exit if accessed directly
                        global $WCMp;
                        do_action( ‘woocommerce_email_header’, $email_heading, $email );
                        $text_align = is_rtl() ? ‘right’ : ‘left’;
                        ?>

                        <?php $announcement_link = esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’))); ?>
                        <p><?php printf(esc_html__($post_content)); ?></p>
                        <p><?php printf(esc_html__(‘You can always check the changes from here %s. We would request you to check the same and take the necessary action if required.’,’dc-woocommerce-multi-vendor’), $announcement_link);?></p>
                        <p><?php printf(esc_html__(‘%s continued use of the Store, will be subject to the updated terms.’, ‘dc-woocommerce-multi-vendor’), $single); ?></p>

                        <?php do_action(‘wcmp_email_footer’); ?>

                        —————————————————————————————————————————————————————————————
                        —————————————————————————————————————————————————————————————

                        Second Step

                        1 Now create plain named folder inside the emails folder
                        3 then create a file (vendor-new-announcement.php) inside your plain folder
                        4 Finally paste the below code in it : –

                        <?php
                        /**
                        * The template for displaying demo plugin content.
                        *
                        * Override this template by copying it to yourtheme/dc-product-vendor/emails/plain/vendor-new-announcement.php
                        *
                        * @author WC Marketplace
                        * @package dc-product-vendor/Templates
                        * @version 0.0.1
                        */

                        if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
                        global $WCMp;

                        echo $email_heading . “\n\n”;

                        $announcement_link = esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’)));

                        echo sprintf(_($post_content)).”\n”;

                        echo sprintf(_(‘You can always check the changes from here %s. We would request you to check the same and take the necessary action if required.’,’dc-woocommerce-multi-vendor’), $announcement_link). “\n”;

                        printf( __( “View the announcement: %s”, ‘dc-woocommerce-multi-vendor’ ), esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’)))) . “\n”;

                        printf( __(‘%s continued use of the Store, will be subject to the updated terms.’, ‘dc-woocommerce-multi-vendor’), $single );

                        echo apply_filters( ‘wcmp_email_footer_text’, get_option( ‘wcmp_email_footer_text’ ) );

                        ===========================================================================================
                        3.context variable. Please do.

                        >>We will give you a fix in the next update.

                      • #131969
                        WLS_FH
                        Participant

                        Hi,

                        1. Email subject does not work. It is still empty (just the name of the marketplace)
                        2. The body formatting does not work, as a matter of fact, it seems the HTML code has not been parsed.

                        See screenshots.

                      • #131972
                        WLS_FH
                        Participant

                        1) Email subject fixed, we found a wrong setting.
                        2) HTML formatting does not work. Kindly provide a solution to this.

                        Thanks

                      • #131998

                        Hi,
                        kindly share your admin, ftp access.
                        Also do not forget to mark the response as private while sharing the access.

                      • #132005
                        WLS_FH
                        Participant
                        This reply has been marked as private.
                      • #132006

                        Thank you for sharing the access. Our team will get back to you.

                      • #132034
                        Anonymous
                        Inactive

                        Hi
                        Our replies are inline with yours-

                        Happy to see that the email subject has been resolved
                        Question:
                        – HTML formatting does not work. Kindly provide a solution to this?
                        solution:-
                        in your active child theme
                        – create one folder named as dc-product-vendor
                        – create another folder inside it named as emails
                        – create a file inside it named as vendor-new-announcement.php
                        and finally paste the code inside it

                        <?php
                        /**
                        * The template for displaying demo plugin content.
                        *
                        * Override this template by copying it to yourtheme/dc-product-vendor/emails/vendor-new-announcement.php
                        *
                        * @author WC Marketplace
                        * @package dc-product-vendor/Templates
                        * @version 0.0.1
                        */
                        if (!defined(‘ABSPATH’))
                        exit; // Exit if accessed directly
                        global $WCMp;
                        do_action( ‘woocommerce_email_header’, $email_heading, $email );
                        $text_align = is_rtl() ? ‘right’ : ‘left’;
                        ?>
                        
                        <?php $announcement_link = esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’))); ?>
                        <p><?php printf(apply_filters('the_content',$post_content));?></p>
                        <p><?php printf(esc_html__(‘You can always check the changes from here %s. We would request you to check the same and take the necessary action if required.’,’dc-woocommerce-multi-vendor’), $announcement_link);?></p>
                        <p><?php printf(esc_html__(‘%s continued use of the Store, will be subject to the updated terms.’, ‘dc-woocommerce-multi-vendor’), $single); ?></p>
                        
                        <?php do_action(‘wcmp_email_footer’); ?>
                        
                        Copy

                        ———————————————————————————————————————————————————————-
                        ———————————————————————————————————————————————————————-
                        -> second you have to create a folder inside your emails folder named as plain
                        -> create a new file named as vendor-new-announcement.php
                        and finally paste the below code

                        <?php
                        /**
                        * The template for displaying demo plugin content.
                        *
                        * Override this template by copying it to yourtheme/dc-product-vendor/emails/plain/vendor-new-announcement.php
                        *
                        * @author WC Marketplace
                        * @package dc-product-vendor/Templates
                        * @version 0.0.1
                        */
                        
                        if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
                        global $WCMp;
                        
                        echo $email_heading . “\n\n”;
                        
                        $announcement_link = esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’)));
                        
                        echo sprintf(__(apply_filters('the_content',$post_content)))."\n";
                        
                        echo sprintf(_(‘You can always check the changes from here %s. We would request you to check the same and take the necessary action if required.’,’dc-woocommerce-multi-vendor’), $announcement_link). “\n”;
                        
                        printf( __( “View the announcement: %s”, ‘dc-woocommerce-multi-vendor’ ), esc_url(wcmp_get_vendor_dashboard_endpoint_url(get_wcmp_vendor_settings(‘wcmp_vendor_announcements_endpoint’, ‘vendor’, ‘general’, ‘vendor-announcements’)))) . “\n”;
                        
                        printf( __(‘%s continued use of the Store, will be subject to the updated terms.’, ‘dc-woocommerce-multi-vendor’), $single );
                        
                        echo apply_filters( ‘wcmp_email_footer_text’, get_option( ‘wcmp_email_footer_text’ ) );
                        
                        Copy

                        Hope this will solve the HTML formatting issue.
                        Thanks

                      • #132049
                        WLS_FH
                        Participant

                        Sorry, but what’s the difference to what @Ninja already suggested on December 11, 2021 at 6:42 PM?
                        That code did not work before.
                        Woocommerce setting for New Vendor Announcement is already to ‘html’ format.

                      • #132050
                        WLS_FH
                        Participant

                        Also note your code is wrong.

                        Parse error: syntax error, unexpected ‘can’ (T_STRING), expecting ‘)’ in /wp-content/themes/Divi/dc-product-vendor/emails/vendor-new-announcement.php on line 20

                        <p><?php printf(esc_html__(‘You can always check the changes from here %s. We would request you to check the same and take the necessary action if required.’,’dc-woocommerce-multi-vendor’), $announcement_link);?></p>

                      • #132051
                        WLS_FH
                        Participant

                        I gave you an access to our staging environment but it seems you didn’t check the settings we used. Have you ?

    • #129297
      WLS_FH
      Participant

      Thank you Moumita,
      looking forward to solving this issue.

    • #129355

      We will keep you posted @WLS_FH

    • #129434
      l.gan
      Participant

      I also think that this feature, if the developers add it to the plugin, will be just great!

      especially if it will be possible to choose different letters for suppliers who already have a product, and for suppliers who do not have a product yet.

    • #129450

      @l.gan we will surely keep you posted

    • #129546
      WLS_FH
      Participant

      Hello,

      I never had an answer to this issue:

      WCMP SUPPORT: There are two types of options, i.e, changing store address and changing store location from map.
      Admin can only change the vendor’s store address. But to update the store location through map, only vendors can do so from the vendor dashboard.

      OUR ANSWER:
      ..this does not make much sense.
      Why Admins can change a store location, but not the real location on the map? It seems there’s a missing step here.

    • #129582

      @WLS_FH, we are working on a huge update of WCMp. We will add this in that update.

    • #129673
      WLS_FH
      Participant

      That’s great news.
      I hope most of the recent bugs I submitted will be fxixed in the new release

    • #129682

      surely, will keep you posted

    • #132064
      This reply has been marked as private.
      • #132070
        WLS_FH
        Participant
        This reply has been marked as private.
    • #132082
      This reply has been marked as private.
      • #132085
        WLS_FH
        Participant

        Maybe you should click ‘ok’ when Filezilla asks for the certificate? 🙂

    • #132094
      This reply has been marked as private.
      • #132097
        WLS_FH
        Participant
        This reply has been marked as private.
    • #132127
      Anonymous
      Inactive

      Hi,
      We have checked your folders and files, but was not able to do the changes there because of permission denied.
      So you just have to do a small change inside your theme/Divi/dc-product-vendor/emails/vendor-new-announcement.php
      open it you will see the below code
      <p><?php printf(esc_html($post_content)); ?></p>,
      so replace it with the given below code: –

      <p><?php printf(apply_filters('the_content',$post_content));?></p>
      Copy

      inside it and save it
      I hope it will now solve the HTML email formatting issue.

      • #132228
        WLS_FH
        Participant

        Hi
        unfortunately, the solution provided does not see to be working

        Warning: printf(): Too few arguments in ../dc-product-vendor/emails/vendor-new-announcement.php on line 24

        • #132232
          Anonymous
          Inactive

          Hi,
          but the code is working fine in our end
          we have used the same template code which you have used in your WordPress, but haven’t seen any type of error there.
          Please check it once and share us the screenshots of your code as well the error part

          • #132238
            WLS_FH
            Participant

            Hi

            it happened after updating WCMP core to the latest version.
            We made sure the new templates are uploaded in

            our_theme/dc-product-vendor/emails/vendor-new-announcement.php

            Please access our staging environment and test again, as the error happens there as well after updating WCMP core.

            Thanks

            • #132239
              Anonymous
              Inactive

              sure we will look into it
              give us some time
              Thanks

              • #132241
                WLS_FH
                Participant

                Appreciated thanks

                • #132266
                  Anonymous
                  Inactive

                  Hi,
                  I have checked your code and have applied in my end but it is working very fine in my end.
                  Workings:-
                  I have again installed a new version of wordpress
                  Installed updated plugin of dc-woocommerce-multivendor
                  and take your folder email to my child theme/dc-product-vendor
                  There is no error in my end.
                  Here is the screenshots: –

                  • #132275
                    WLS_FH
                    Participant

                    Ok that’s really random.

                    1) Is there a log that I can check?
                    2) What version of Woocommerce do you use?
                    3) Can you give me a link where I can downgrade to the previous version of WCMP?

                    Thanks

                    • #132299
                      Anonymous
                      Inactive

                      hi,
                      sorry for the delay
                      I have seen your code that you have added some different code to fetch the announcement content and I have use it in my code and it is working pretty fine. But the content is showing just a paragraph there are no breaks between the paragraphs.
                      I can share you the screenshot.
                      Your code is also good just do one change try to remove this %1$s and add only %s, it will work good
                      If not let us know , otherwise it is working well in my end
                      Also note I am using the latest version of woocommerce i.e. 6.0.0 and dc-woocommerce-multivendor i.e. 3.8.5
                      Thanks

    • #132128
      WLS_FH
      Participant

      Hi,

      thanks it did work.

      Are you going to add this into the next release or shall we keep it within our custom files ?

      Thanks

      • #132147
        Anonymous
        Inactive

        yes as this was the major issue we would release in the next update

    • #132129
      WLS_FH
      Participant

      Sorry, please don’t forget to share the context variable. Thanks!

      • #132148
        Anonymous
        Inactive

        Hi,
        For the issue of the context variable
        Basically I have seen that you need the name of the vendor to be there at the time of email, right?
        So, if this is the issue then surely this will be going to be included in the next update.
        Thanks!

    • #132180
      • #132242
        WLS_FH
        Participant

        Thank you Moumita, but does this refer to HTML issues or the Conext Variable ?

    • #132306
      Anonymous
      Inactive

      hi,
      sorry for the delay
      I have seen your code that you have added some different code to fetch the announcement content and I have use it in my code and it is working pretty fine. But the content is showing just a paragraph there are no breaks between the paragraphs.
      I can share you the screenshot.
      Your code is also good just do one change try to remove this %1$s and add only %s, it will work good
      If not let us know , otherwise it is working well in my end
      Also note I am using the latest version of woocommerce i.e. 6.0.0 and dc-woocommerce-multivendor i.e. 3.8.5
      Thanks

    • #132308
      WLS_FH
      Participant

      Hi thanks for checking.

      Let me recap so we have all a better understanding on the situations.
      1) This code below was working fine until updating Woocommerce and WCMP core to the very latest version.

      <?php printf(apply_filters(‘the_content’,$post_content));?>

      This code returns this error:
      Warning: printf(): Too few arguments in /home/stagingwp/public_html/wp-content/themes/Divi/dc-product-vendor/emails/vendor-new-announcement.php on line 27

      2) The previous code below you provided is stripping off <p> HTML tags, meaning the body of the email is without any line breaker.

      <p> <?php printf(esc_html__(‘%s’,’the_content’) , $post_content);?> </p>

      This code outputs an email without line breakers (see screenshot)

      3) The code I wrote below (which includes your latest recommendation), doesn’t output the content.

      <?php $content = get_the_content(); printf(“Output: %s”, $content); ?>

      (see screenshot)

      ***************

      I don’t want to keep chasing a ghost. Can you provide a working solution ASAP as we need to send announcements to our vendors?

      Thanks

    • #132317
      Anonymous
      Inactive

      Hi,
      We understand your problem as I have already shared you the working code.
      I don’t know why it is coming error in your end as I have also checked your code but It is working in my end
      For verifying I have uploaded a loom video which will make you clear about the email code.
      https://www.loom.com/share/190097d8ebbd44c29bd9a4f25f178f03

      <?php printf(apply_filters(‘the_content’,$post_content));?>
      Copy

      The above code works perfectly fine from my end.
      As you have also said that it was working earlier before you made an updation in wcmp, besides these I am making you clear that the code given is working for us.
      Thanks

      • #132352
        WLS_FH
        Participant

        @Ritik
        Just disabled my main theme, nothing changed but I got this. What PHP version are you using?

        Warning: Use of undefined constant ‘the_content’ – assumed ‘‘the_content’’ (this will throw an Error in a future version of PHP) in /home/stagingwp/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-new-announcement.php on line 22

        Warning: printf(): Too few arguments in /home/stagingwp/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-new-announcement.php on line 22

    • #132325
      WLS_FH
      Participant

      Yes I get that. But there’s must have been something conflicting after the update.
      Would help if you give me

      1. A link where to download the previous version of wcmp
      2. Is there a log that I can check?
      3. What version of wp have you tested this with?

      These info would help for now.

      Thanks

    • #132353
      WLS_FH
      Participant

      After checking and checking we reviewed Printf PHP syntax and noticed that the code you provided is wrong.
      https://www.w3schools.com/php/func_string_printf.asp

      This is how we solved it
      <p><?php printf(apply_filters(‘the_content’,$post_content), $post_content);?></p>

      The question is why is it working for you, given the syntax was wrong, I have no idea.

    • #132363
      Anonymous
      Inactive

      Hi,
      I am happy that you solved the issue yeah I have also gone through the printf syntax, but what I was getting while fixing the code that I told you. Maybe there is some issue in my part will see into it.
      Thanks for informing and it will release in the next update.
      Sorry for keeping you in this for long.

    • #132367
      WLS_FH
      Participant

      No worries was a joint effort.

      Cheers

    • #132866

      @WLS_FH, we are closing this thread, as this has been fixed in our last update.

Viewing 44 reply threads

The topic ‘Follow up emails’ is closed to new replies.