dassoubarna on "[Plugin: WooCommerce - APG SMS Notifications] Vendor Notifictions"

ساخت وبلاگ

dassoubaa
Member
Posted 4 days ago #

I am using wc-vendors plugin. Is there any way to send sms notification to the vendor when a order is placed?

I am using Spring Edge SMS Gateway.

https://wordpress.org/plugins/woocommerce-apg-sms-notifications/

Not possible with actual version.

Kind regards.

dassoubaa
Member
Posted 3 days ago #

I asked the wc-vendor plugin author for the help.
They replied

You would want to contact the APG SMS author, and ask them if there is a filter, to change the text message to go to the post_author not admin. All vendors are, is the author of the post, and the post is the product. So, if they can do that, you're good to go!

Is it possible via some function hook or so? If so I can try it with custom coding. Although I am not an expert in PHP but still I can try my best.

There's a filter named apg_sms_message.

Kind regards.

dassoubaa
Member
Posted 1 day ago #

Can you suggest any documentation on how to use that filter apg_sms_message.

Thanks in advance!

It's very easy:
$mensaje = apply_filters( 'apg_sms_message' , $mensaje , $pedido->id );

Kind regards.

dassoubaa
Member
Posted 3 minutes ago #

Thanks for the help!

I have created a user meta field named "mobile" for entering mobile number of the user. Can you please guide me how to use that meta field (get_user_meta?) with the filter?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 269 تاريخ : پنجشنبه 10 تير 1395 ساعت: 23:34