Zen Cart Logo
Forums / Contribution-Writing Guidelines / SMS on Sale using clickatel

SMS on Sale using clickatel

Views: 2,543

Results 1 to 7 of 7
11 Aug 2012, 6:30 AM
#1
vkd1980 avatar

vkd1980

New Zenner

Join Date:
Jul 2012
Location:
Kochi,Kerala
Posts:
58
Plugin Contributions:
2

SMS on Sale using clickatel

Hi,

Can anyone help me to convert the attached OSC addon to Use with ZC 1.5.0

Vinod

11 Aug 2012, 7:21 AM
#3
vkd1980 avatar

vkd1980

New Zenner

Join Date:
Jul 2012
Location:
Kochi,Kerala
Posts:
58
Plugin Contributions:
2

Re: SMS on Sale using clickatel

DrByte:

http://www.zen-cart.com/downloads.php?do=file&id=291

its using email to SMS method, According to my knowldge no-Service providers in India is giving email to SMS, thats why I insisted to converting this OSC addon

11 Aug 2012, 4:03 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: SMS on Sale using clickatel

But it has the framework; all you need to do is bring the clickatel logic over to replace the email logic.

13 Aug 2012, 5:07 PM
#5
vkd1980 avatar

vkd1980

New Zenner

Join Date:
Jul 2012
Location:
Kochi,Kerala
Posts:
58
Plugin Contributions:
2

Re: SMS on Sale using clickatel

DrByte:

But it has the framework; all you need to do is bring the clickatel logic over to replace the email logic.

Thank you for the ignition DrByte, I am about to finish my second contribution to send sms using http API of service Provider. some finishing touches are pending

16 Aug 2012, 5:25 AM
#6
vkd1980 avatar

vkd1980

New Zenner

Join Date:
Jul 2012
Location:
Kochi,Kerala
Posts:
58
Plugin Contributions:
2

Re: SMS on Sale using clickatel

While I am adding the following code in Admin>Orders.php its not working(Not receiving SMS) t!. But its successfully working on Catalog side, Can you specity whats the cause?

zen_mail($check_status->fields['customers_name'], $check_status->fields['customers_email_address'], EMAIL_TEXT_SUBJECT . ' #' . $oID, $message, STORE_NAME, EMAIL_FROM, $html_msg, 'order_status');
           
            // BOF Send SMS to Customers on Order Status Change

             $ch = curl_init();
$user=SMS_USER_ID;
$pass= SMS_PASSWORD;
$receipientno= $order->customer['telephone'];
$senderID=SMS_SENDER_ID; 
$msgtxt= "Dear ".$check_status->fields['customers_name'] . ",\n Your Order # ".$oID." Has been".$orders_status_array[$status] ."Thank you for Shopping with ".STORE_NAME;
curl_setopt($ch,CURLOPT_URL,SMS_URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "user=$user:$pass&senderID=$senderID&receipientno=$receipientno&msgtxt=$msgtxt&state=1");
$buffer = curl_exec($ch);
curl_close($ch);

   
 
//  EOF Send SMS to Customers on Order Status Change with status

Thanks in Advance
Vinod

18 Aug 2012, 10:31 AM
#7
vkd1980 avatar

vkd1980

New Zenner

Join Date:
Jul 2012
Location:
Kochi,Kerala
Posts:
58
Plugin Contributions:
2

Re: SMS on Sale using clickatel

vkd1980:

While I am adding the following code in Admin>Orders.php its not working(Not receiving SMS) t!. But its successfully working on Catalog side, Can you specity whats the cause?

no support for above problem :dontgetit

any way , I am uploading the catalog side as new plugin on 21-Aug-2012,