• Resolved epicburrito

    (@epicburrito)


    When I add a new product, the notification goes out. However, it won’t resend a notification for an old product. I’ve tried changing the product from published, to draft, and back to published. Doesn’t work. How else can I resend the notification? I’m comfortable editing the database, if that is what it takes.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Shubhanshu Kandani

    (@shubhanshukandani)

    Hi @epicburrito,

    Thanks for reaching out to us! We’re happy to support you.

    Are you republishing the old products for which a notification has already been sent?

    Waiting for the above information.

    Thank you!

    Thread Starter epicburrito

    (@epicburrito)

    I have republished the product multiple times. I’ve changed it from ‘published’ to ‘draft’ and back to ‘published’ by using the quick edit feature. I’ve changed the status by going to the product itself and editing it. I’ve changed some text. I’ve changed the status to draft, logged out, and waited a few hours before changing it to published. I’ve deleted the report that was generated from the first notification. I’ve also changed the list that the auto-notification uses.

    It is a WooCommerce store. The notification was created by using the drag and drop method. All the plugins, themes, and WordPress core are up-to-date.

    Plugin Contributor Shubhanshu Kandani

    (@shubhanshukandani)

    Hi @epicburrito,

    Thanks for sharing the above information! Hope you’re doing well.

    Currently, there is no direct setting that will allow notifications to be sent for old products, however the following custom code will enable notifications for old posts/products.

    add_filter( 'ig_es_disable_old_post_notification', 'es_cc_enable_old_post_notification' );
    
    function es_cc_enable_old_post_notification( $old_post_notification_disabled ) {
    	$old_post_notification_disabled = false;
    	return $old_post_notification_disabled;
    }

    You can add the above code snippet in the currently active child theme’s functions.php file. 

    Alternatively, the?Code Snippets?plugin can be used to add the code snippet.

    Let me know how it goes on your end.

    Waiting for your confirmation.

    Thanks!

    Thread Starter epicburrito

    (@epicburrito)

    Hello. The code did not work. I added it directly to the functions file in the child theme.

    May I ask how the Icegram plugin knows if a post/product is “old”? It looks like that information is not recordecd in an Icegram table in the database so what data is the plugin looking at?

    Plugin Contributor Shubhanshu Kandani

    (@shubhanshukandani)

    Hi there,
    Thanks for sharing the test results with us. Hope you’re doing well.

    If a post/product was published 1 year ago, the plugin considers it old and does not send a notification. Can you please confirm if this is the case at your end as well?

    Click here to view the screenshot for finding the product publish date on the Products page.

    Thanks!

    Thread Starter epicburrito

    (@epicburrito)

    The product had been published for about 2 days.

    Plugin Contributor Shubhanshu Kandani

    (@shubhanshukandani)

    Hi there,

    Thanks for your response and support! I hope you’re doing well.

    Got your point! Please use the below code.

    //<?php Uncomment this line if this line is already not present in the functions.php file.
    
    add_filter( 'get_post_metadata', 'es_cc_ovveride_is_post_notified', 10, 5 );
    
    function es_cc_ovveride_is_post_notified( $value, $object_id, $meta_key, $single, $meta_type ) {
    	if ( 'ig_es_is_post_notified' === $meta_key ) {
    		return false;
    	}
    
    	return $value;
    }

    You can add?the above code snippet in the currently active child theme’s?functions.php?file.?

    Let me how it works on your end.

    Waiting for your confirmation.

    Cheers!

    Thread Starter epicburrito

    (@epicburrito)

    That worked. Thank you.

    Plugin Contributor Shubhanshu Kandani

    (@shubhanshukandani)

    Hi there,

    Thanks for your confirmation.

    Awesome!?I’m glad to hear that inquiry has been resolved! Ping me whenever you need any assistance, and I am always available here to support you.

    Whereas, I hope you’re enjoying the Icegram Express (Email Subscribers) plugin.

    Could you please do us a BIG favor by sharing your experiences with us and leaving a review here? It’ll hardly take 2 minutes and?will surely make our day.

    Thank you in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Resend new product notification’ is closed to new replies.