Viewing 6 replies - 1 through 6 (of 6 total)
  • It’s not part of the plugin, but it does sound cool to integrate.

    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!

    Thread Starter dassoubarna

    (@dassoubarna)

    Thanks a lot. I am asking them.

    Thread Starter dassoubarna

    (@dassoubarna)

    They just replied

    There’s a filter named apg_sms_message.

    Awesome! There you go then!

    Thread Starter dassoubarna

    (@dassoubarna)

    They asked me to use the filter like this..

    $mensaje = apply_filters( 'apg_sms_message' , $mensaje , $pedido->id );

    Now can you please tell me where should I enter the mobile no. of the vendor?

    I have no idea, I didnt write the SMS plugin. Writing custom code and using filters for a plugin that is not WC Vendors is a bit beyond our skill level. ??

    That being said, how you store the vendors mobile number is also up to you. Might I suggest wcvendors.com/kb/ and add a custom field to the vendor dashboard’s shop settings page? You could code it so that the custom field is a text input and the vendors enter their phone number there.

    From there, you would use the meta key from the custom field you just wrote, and send that to your filter for the SMS plugin. Using get_user_meta would probably be of some use to you, just not sure since again we dont write the SMS plugin and dont know how it works.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SMS and Email notification to vendors’ is closed to new replies.