WCMp Core
-
AuthorPosts
-
-
September 23, 2021 at 1:53 PM #128035WLS_FHParticipant
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
-
September 24, 2021 at 6:27 PM #128136MVX Support NinjaKeymaster
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. -
September 24, 2021 at 7:09 PM #128141WLS_FHParticipant
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
-
September 25, 2021 at 1:53 PM #128181MVX Support NinjaKeymaster
Hi,
I’m afraid that we don’t have any automated tool instead of announcement. -
September 27, 2021 at 6:53 PM #128259WLS_FHParticipant
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 -
September 27, 2021 at 8:30 PM #128278WLS_FHParticipantThis reply has been marked as private.
-
September 27, 2021 at 8:35 PM #128281MVX Support NinjaKeymaster
@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.
-
September 28, 2021 at 4:24 PM #128328MVX Support NinjaKeymaster
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/ba317e4eeb1242869c204928fb9df51dKindly 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.
-
September 28, 2021 at 6:49 PM #128346WLS_FHParticipant
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 ? -
September 29, 2021 at 1:56 PM #128389MVX Support NinjaKeymaster
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.
-
September 29, 2021 at 2:03 PM #128393WLS_FHParticipant
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 -
September 29, 2021 at 7:35 PM #128413MVX Support NinjaKeymaster
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 textTherefore 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.-
September 30, 2021 at 5:49 PM #128451WLS_FHParticipant
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
-
-
September 30, 2021 at 8:55 PM #128472MVX Support NinjaKeymaster
@WLS_FH, our team will check this and get back to you.
Kindly provide them some time.
-
October 1, 2021 at 12:44 AM #128477WLS_FHParticipant
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. -
October 1, 2021 at 8:08 PM #128496NerdySupportExpert MoumitaKeymaster
Hi, this code is working fine on our end
add_filter('wcmp_vendor_store_header_hide_store_email', '__return_true');
CopyAs 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. -
October 5, 2021 at 5:31 PM #128637NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
October 14, 2021 at 12:49 PM #129049WLS_FHParticipant
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.
**********
-
October 18, 2021 at 3:14 PM #129162MVX Support NinjaKeymaster
@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
-
October 19, 2021 at 12:43 AM #129199WLS_FHParticipant
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
-
October 19, 2021 at 6:59 PM #129247NerdySupportExpert MoumitaKeymaster
@WLS_FH, I have forwarded this feature request with our team. They will take further decision on this.
-
October 20, 2021 at 11:56 AM #129271WLS_FHParticipant
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.
-
October 20, 2021 at 5:45 PM #129287NerdySupportExpert MoumitaKeymaster
Hi @WLS_FH, we have opened a git link. Please check https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/971
-
December 7, 2021 at 3:41 AM #131659WLS_FHParticipant
Hi,
Just wondering what’s the progress on this.
Thanks-
December 7, 2021 at 3:51 AM #131660WLS_FHParticipant
@Moumita we just tested this with the new release and it doesn’t seem to be working yet.
-
December 7, 2021 at 8:44 PM #131711MVX Support NinjaKeymaster
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.-
December 8, 2021 at 12:13 AM #131732WLS_FHParticipant
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 itIn 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.
-
December 8, 2021 at 9:07 AM #131734WLS_FHParticipantThis reply has been marked as private.
-
December 9, 2021 at 8:35 PM #131819MVX Support NinjaKeymaster
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.-
December 10, 2021 at 2:12 AM #131832WLS_FHParticipant
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
-
December 10, 2021 at 12:54 PM #131839MVX Support NinjaKeymaster
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.
-
December 10, 2021 at 7:32 PM #131852WLS_FHParticipant
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
-
December 11, 2021 at 6:42 PM #131891MVX Support NinjaKeymaster
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.
-
December 14, 2021 at 1:13 PM #131969WLS_FHParticipant
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.
-
December 14, 2021 at 1:22 PM #131972WLS_FHParticipant
1) Email subject fixed, we found a wrong setting.
2) HTML formatting does not work. Kindly provide a solution to this.Thanks
-
December 14, 2021 at 6:50 PM #131998MVX Support NinjaKeymaster
Hi,
kindly share your admin, ftp access.
Also do not forget to mark the response as private while sharing the access. -
December 14, 2021 at 7:56 PM #132005WLS_FHParticipantThis reply has been marked as private.
-
December 14, 2021 at 8:05 PM #132006MVX Support NinjaKeymaster
Thank you for sharing the access. Our team will get back to you.
-
December 15, 2021 at 5:23 PM #132034AnonymousInactive
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’ ) );
CopyHope this will solve the HTML formatting issue.
Thanks -
December 15, 2021 at 9:01 PM #132049WLS_FHParticipant
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. -
December 15, 2021 at 9:22 PM #132050WLS_FHParticipant
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>
-
December 15, 2021 at 9:24 PM #132051WLS_FHParticipant
I gave you an access to our staging environment but it seems you didn’t check the settings we used. Have you ?
-
-
-
-
-
-
-
-
-
-
October 20, 2021 at 6:25 PM #129297WLS_FHParticipant
Thank you Moumita,
looking forward to solving this issue. -
October 21, 2021 at 6:53 PM #129355NerdySupportExpert MoumitaKeymaster
We will keep you posted @WLS_FH
-
October 22, 2021 at 10:30 PM #129434l.ganParticipant
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.
-
October 23, 2021 at 3:16 PM #129450MVX Support NinjaKeymaster
@l.gan we will surely keep you posted
-
October 25, 2021 at 4:04 PM #129546WLS_FHParticipant
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. -
October 25, 2021 at 8:08 PM #129582MVX Support NinjaKeymaster
@WLS_FH, we are working on a huge update of WCMp. We will add this in that update.
-
October 27, 2021 at 1:36 AM #129673WLS_FHParticipant
That’s great news.
I hope most of the recent bugs I submitted will be fxixed in the new release -
October 27, 2021 at 10:47 AM #129682MVX Support NinjaKeymaster
surely, will keep you posted
-
December 16, 2021 at 11:41 AM #132064MVX Support NinjaKeymasterThis reply has been marked as private.
-
December 16, 2021 at 4:56 PM #132082MVX Support NinjaKeymasterThis reply has been marked as private.
-
December 16, 2021 at 10:40 PM #132094MVX Support NinjaKeymasterThis reply has been marked as private.
-
December 17, 2021 at 7:18 PM #132127AnonymousInactive
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>
Copyinside it and save it
I hope it will now solve the HTML email formatting issue.-
December 21, 2021 at 3:18 AM #132228WLS_FHParticipant
Hi
unfortunately, the solution provided does not see to be workingWarning: printf(): Too few arguments in ../dc-product-vendor/emails/vendor-new-announcement.php on line 24
-
December 21, 2021 at 11:48 AM #132232AnonymousInactive
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-
December 21, 2021 at 12:51 PM #132238WLS_FHParticipant
Hi
it happened after updating WCMP core to the latest version.
We made sure the new templates are uploaded inour_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
-
December 21, 2021 at 12:54 PM #132239AnonymousInactive
sure we will look into it
give us some time
Thanks-
December 21, 2021 at 12:56 PM #132241WLS_FHParticipant
Appreciated thanks
-
December 21, 2021 at 7:48 PM #132266AnonymousInactive
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: –-
December 21, 2021 at 10:26 PM #132275WLS_FHParticipant
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
-
December 22, 2021 at 4:33 PM #132299AnonymousInactive
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
-
-
-
-
-
-
-
-
-
December 17, 2021 at 7:58 PM #132128WLS_FHParticipant
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
-
December 17, 2021 at 10:14 PM #132147AnonymousInactive
yes as this was the major issue we would release in the next update
-
-
December 17, 2021 at 8:18 PM #132129WLS_FHParticipant
Sorry, please don’t forget to share the context variable. Thanks!
-
December 17, 2021 at 10:18 PM #132148AnonymousInactive
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!
-
-
December 20, 2021 at 10:29 AM #132180NerdySupportExpert MoumitaKeymaster
You can track the issue from here https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/996
-
December 22, 2021 at 4:37 PM #132306AnonymousInactive
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 -
December 22, 2021 at 4:54 PM #132308WLS_FHParticipant
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 272) 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
-
December 22, 2021 at 6:50 PM #132317AnonymousInactive
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));?>
CopyThe 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-
December 23, 2021 at 12:57 AM #132352WLS_FHParticipant
@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
-
-
December 22, 2021 at 8:23 PM #132325WLS_FHParticipant
Yes I get that. But there’s must have been something conflicting after the update.
Would help if you give me1. 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
-
December 23, 2021 at 1:14 AM #132353WLS_FHParticipant
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.aspThis 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.
-
December 23, 2021 at 6:03 AM #132363AnonymousInactive
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. -
December 23, 2021 at 11:34 AM #132367WLS_FHParticipant
No worries was a joint effort.
Cheers
-
January 8, 2022 at 6:13 PM #132866NerdySupportExpert MoumitaKeymaster
@WLS_FH, we are closing this thread, as this has been fixed in our last update.
-
-
AuthorPosts
The topic ‘Follow up emails’ is closed to new replies.