HI,
It will work from WCFM product manager, but a small custom code will require for this!
Thank You
hello
pls share code.
thank you
Hi,
Please add this code to your child theme’s functions.php –
add_action( 'after_wcfm_products_manage_meta_save', function( $new_product_id, $wcfm_products_manage_form_data ) {
$post = get_post( $new_product_id );
do_action( 'wptelegram_p2tg_send_post', $post, 'non_wp', false );
}, 50, 2 );
Thank You
hello
i add code, but dont any text or pic send to telegram!!! but before add this code, It was sent only text.
this is all code i use in child theme’s functions.php :
///change ، to ,
add_filter( 'wcfm_pm_product_tags_before_save', function( $product_tags, $new_product_id ) {
$product_tags = str_replace( "،", ",", str_replace( " ", ",", $product_tags ) );
return $product_tags;
}, 50, 2 );
add_filter( 'wcfm_pm_product_tags_after_save', function( $product_tags, $new_product_id ) {
$product_tags = str_replace( ",", "،", $product_tags );
return $product_tags;
}, 50, 2 );
/////////////////////////////// telegram
add_action( 'after_wcfm_products_manage_meta_save', function( $new_product_id, $wcfm_products_manage_form_data ) {
$post = get_post( $new_product_id );
do_action( 'wptelegram_p2tg_send_post', $post, 'non_wp', false );
}, 50, 2 );
Hi,
i add code, but dont any text or pic send to telegram!!! but before add this code, It was sent only text.
– OK, then please remove this code. We are checking this again.
Can you please show me screenshot for, if you add a product from wp-admin then what is sending and also when you are adding product from WCFM product manager (without this code)!
Thank You
I add pruduct from woocommerce. Photo is send to channel and price is free.
Also after update plugin, The message is sent twice to the channel.
My telegram channel
T.me/SepSarIR
Thanks
If i Set “Publish Products”
OFF
After aplay pruduct,
All its ok, pic and text and price is Correctly sent to channel.