Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    That sounds too complex for a simple snippet to take care of. I also have no idea what SMS script you’re using.

    I suggest you post the spec to jobs.wordpress.net and get a developer to build this.

    Thread Starter cookiexx

    (@cookiexx)

    Hi Mike,

    Thank you for the reply.
    Will the script below help you?

    <?php
       define ('USER_ID', 1234);
       define ('SERVICE_ID', 4567);
       define ('SMSPAY_SERVER', '194.153.118.27');
    
       if ($_SERVER{'REMOTE_ADDR'} == SMSPAY_SERVER) {
          $sms_id = $_REQUEST{'id'};
          $service_id = $_REQUEST{'sid'};
          $text = $_REQUEST{'text'};
    
          if ($service_id == SERVICE_ID) {
             // This is where the script should go
             echo 'All good';
          } else echo '-ERR Wrong service ID!';
       }
    ?>

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    No not really. I’d have to look at your SMS api docs, but I cannot code that kind of customisation for you here, and it’s not really even WooCommerce core related.. Please use jobs.wordpress.net

    Thread Starter cookiexx

    (@cookiexx)

    Thank you for the assistance, Mike!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature a product automatically’ is closed to new replies.