• Hi there,

    Thanks for this awesome plugin.

    1) Is there a plan to include an option to only send the “Order received” SMS if the chosen payment method is A, B or C? (I only want to send this SMS for payment methods that required offline payment, for example).
    1.1) Is there any filter in place that I could, just before the SMS is sent, check for the payment method and cancel that SMS programmatically? (if not, could you implement it?)

    2) Some time ago I asked you to create the “apg_sms_message” filter so that other plugins can add new details to the messages. If I want to add the bank transfer IBAN, is this the way you recommend me to do it, or could you probably create a built in variable for this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Art Project Group

    (@artprojectgroup)

    Hi Marco.

    There’s no plan to add that option in the future, but is a good idea, maybe in a future update we’ll add it.

    The IBAN number is not readable from your plugin, use the filter.

    Kind regards.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    Regarding 1 / 1.1 i think you could, on a first phase just implement a filter to return true/false and than send or not send the SMS based on that.

    Of course the $order object, as well as the SMS details, should be passed to that filter so that the developer can implement his own logic.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    Hi again,

    If you add this after line 172 on apg-sms.php any other plugin will be able to hook on this and decide to abort the SMS sending by returning false, based on his own logic.

    //Permitir que otros plugins impidan que se envíe el SMS
    if ( !apply_filters( 'apg_sms_send_message', true, $pedido ) ) {
    	return;
    }
    Plugin Author Art Project Group

    (@artprojectgroup)

    We’ll add it to the next update.

    Kind regards.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    Update: I’ve created a pull request on GitHub for this ??

    Plugin Author Art Project Group

    (@artprojectgroup)

    Updated.

    Kind regards.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Order received only for certain payment methods + Bank transfer details’ is closed to new replies.