I have integrated SMS Gateway in my Opencart CMS
It uses the following SYNTAX
$xml_data ='<?xml version="1.0"?><smslist><sms><user>username</user
<password>112131</password><message>Your order # {$order_id} has been successfully received. Thank you for placing an Order at mystore.com</message><mobiles>9898000000</mobiles><senderid>Sherif</senderid><cdmasenderid>00201009546310</cdmasenderid><accountusagetypeid>1</accountusagetypeid></sms></smslist>';
$URL = "http://mainadmin.dove-sms.com/sendsms.jsp?";
$ch = curl_init($URL);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
Please make note that I have not used my personal credentials and this is just a syntax. I have tested the code and it works absolutely fine using my credentials
Now, What I want is it should load the order number, instead it shows the text {$order_id}
in my message!
Moreover I want the text to be sent to the user who has logged-in in my stored by fetching the $telephone
variable
Please help and thanks in advance
File in which this code is included: catalog/controller/checkout/sucess.php
Opencart version: 1.5.6
Find the Screenshot of the message I have Received here