OpenCart

OpenCart SMS notifications from your own number

Text OpenCart customers when their order ships, is complete or is canceled, from your own Android phone and number. Free extension for OpenCart 3 and 4.

By NARBOWEB SRL, the company behind SMSTunnel Published 5 min read

A short text tells customers more than an email they may never open: that their order has shipped, that it is complete, or that it was canceled. OpenCart doesn’t send texts on its own, and the usual way to add them is an SMS API provider: you rent a number from the provider and pay for every text.

There is a simpler route for many shops. With the free SMSTunnel for OpenCart extension, your store hands each order text to your SMSTunnel account, and the SMSTunnel app on your own Android phone sends it from your own number, on your own SIM and mobile plan. Customers see a number they know and can simply reply.

How it works

  1. Something happens in your store: a customer places an order, or you change an order’s status.
  2. The extension writes the text from your template and hands it to your SMSTunnel account.
  3. The SMSTunnel app on your phone sends it as a normal SMS from your number.

Each text goes to one number. If your phone is offline for a while, the texts wait in your account and go out as soon as it is back online.

What you need

  • OpenCart 3.0.x, 4.0.2 or 4.1, with PHP 7.1 or newer
  • An Android phone with a SIM card, which stays on and online
  • The SMSTunnel app from Google Play, signed in to your SMSTunnel account (the Free plan needs no credit card)
  • The free SMSTunnel for OpenCart extension, from the OpenCart Marketplace or GitHub

Step 1: Get your key

In your SMSTunnel dashboard, open Apps → Add an app, pick OpenCart, name it after your store and click Create the key. Copy the key right away: it is shown only once. The dashboard then shows the next steps with your key already in them, and the download links for both versions of the extension.

Step 2: Install the extension

There are two packages, one for each OpenCart generation:

  • smstunnel.ocmod.zip for OpenCart 4.0.2 to 4.1. Keep this file name: OpenCart 4 names the extension after it.
  • smstunnel-oc3.ocmod.zip for OpenCart 3.0.

In your admin, open Extensions → Installer and upload the file. On OpenCart 4, then click the green + next to it in the list. Then open Extensions → Extensions, choose Modules, install SMSTunnel with its green + and click Edit.

Step 3: Fill in the settings

Turn on Send texts, paste the key in API key, and choose the Phone that sends your texts (or Any of my phones). Then decide who gets which text:

  • Text me about new orders, with Your numbers: one text to each of up to 5 numbers, for every new order.
  • Text customers about their orders: tick the statuses under When the order status becomes. Shipped, Complete, Canceled and Refunded are ticked when you install it.

Save with the blue button at the top of the page.

SMSTunnel's page in the OpenCart 4 admin: your phones with their state, the test text and the API key

Step 4: Send yourself a test text

Once the key is saved, the top of the extension’s page lists your phones, online or offline. Type your number in Send a test text to and click Send a test text. A moment later your phone sends you: “This is a test text from Your Store. Your order texts will come from this phone.”

On OpenCart 4, checkout asks for a telephone number only if you turn it on: open System → Settings, edit your store, and on the Option tab turn on Telephone Display and Telephone Required. Until then, the extension’s page reminds you.

The texts

These are the suggested texts. Each status has its own, and you can reword every one:

WhenSuggested text
New order, to you{store_name}: new order #{order_id} from {firstname} {lastname}, {total}.
ShippedHello {firstname}, your order #{order_id} from {store_name} is on its way. {comment}
CompleteHello {firstname}, your order #{order_id} from {store_name} is complete. Thank you!
CanceledHello {firstname}, your order #{order_id} from {store_name} has been canceled. Reply to this text if you have any questions.
RefundedHello {firstname}, your order #{order_id} from {store_name} has been refunded.
Any other statusHello {firstname}, your order #{order_id} from {store_name} is now: {status}.

{comment} is what you type when you change the order’s status, sent only when you tick Notify customer: put the tracking number there. The suggestions come in English and Romanian, and each customer gets them in the language they ordered in.

Built so a text never gets in the way

  • Checkout never waits long. The extension gives SMSTunnel a few seconds at most. If SMSTunnel can’t be reached, the order goes through, the text is marked as not sent with the reason, and Send again sends it with one click.
  • Never twice. Each order gets each text once, even if it gets the same status again. A text whose sending SMSTunnel didn’t confirm is never sent again on its own.
  • Numbers that work. A local number gets the calling code of the order’s billing country, then its delivery country, then the default country you choose: (415) 555-0123 on a United States order becomes +14155550123. A (0) written after the calling code, as in +49 (0) 170 1234567, is left out. Premium-rate numbers and short codes are never texted.
  • Every text in one list. Recent texts shows the last texts, whether they went out and what your phone did with them. Numbers show only their last 2 digits, and a text that went out keeps no words.

The list of recent texts: new-order texts to the shop owner and order updates to customers, each sent

Questions

Do I need a special SIM or number? No. The texts leave from the phone and SIM you already have, so customers see your usual number.

What does a text cost? SMSTunnel charges no per-message fees: your texts go out on your own mobile plan. SMSTunnel’s Free plan needs no card, and the monthly plans are on the pricing page.

Can customers reply? Yes. Replies reach your phone like any text.

What does SMSTunnel receive from my store? The number and the words of each text, nothing else: no email, no address, no order contents.

Which OpenCart versions does it support? OpenCart 3.0.x, 4.0.2.x and 4.1.x. It was tested on 3.0.3.8, 3.0.5.1, 4.0.2.3 and 4.1.0.4, and its code is on GitHub under the GPL.

Send only texts your customers expect from your store: order updates, not unsolicited messages.

See also

More from the blog

Try it with your own phone

Install the Android app, sign in, and your own software can send its first text in a few minutes. The Free plan needs no credit card.