Expertise technical

Automate your abandoned cart reminders by SMS on Shopify in Morocco

Restart abandoned cart sms shopify Morocco: technical guide with code examples for developers in Morocco.

Automate your abandoned cart reminders by SMS on Shopify in Morocco
Table of Contents
  1. In Morocco, online commerce suffers from a massive scourge: the abandoned cart rate. Very suspicious customers browse from Instagram, add to cart to see delivery costs, then leave the site (often Shopify).
  2. Why SMS is superior to email for Moroccan Retail
  3. How to set up dunning without expensive subscription (Shopify Flow)
  4. Timing (The Golden Rule of the sequence)
  5. Measuring Recovered Revenue

In Morocco, online commerce suffers from a massive scourge: the abandoned cart rate. Very suspicious customers browse from Instagram, add to cart to see delivery costs, then leave the site (often Shopify).

If you use Klaviyo or Mailchimp to send an abandoned cart email to a Moroccan buyer, your chances of recovering this sale are tiny (less than 5% conversion on email).
On the other hand, an SMS lands directly in your pocket, vibrates, and displays an open rate of 98%. Automating this SMS reminder via Shopify is the most profitable “Quick-Win” for a local e-commerce brand.

Why SMS is superior to email for Moroccan Retail

The sociology of the Moroccan buyer is unique: the need for reassurance (trust) is enormous, and the transaction often resembles a discussion.
SMS creates urgency and proximity (Direct Customer Service effect).

"An email is seen as a machine that spams you. An SMS is seen as a warehouse worker who warns you that your product is going to be put back on the shelves."

How to set up dunning without expensive subscription (Shopify Flow)

Forget the miracle “Shopify Apps” which charge you $30 per month just for the right to send SMS, and which resell you SMS credit to Morocco at 0.80 MAD.
You can automate this for free if you use the appropriate Shopify plan, by connecting Shopify Flow (Shopify's free in-house automation tool) to the API of your Moroccan SMS platform (EnvoiSMS).

Configuration in Shopify Flow:

  1. Trigger: Select Checkout abandoned.
  2. Condition (Filter): Add a time condition: Wait for 3 hours.
  3. Action: Select Send HTTP Request.
  4. Configuration of the query:
  • URL: https://api.envoisms.ma/v1/sms/send
  • Method: POST
  • Headers: Authorization: Bearer YOUR_TOKEN
  • Body (JSON):```json

{
"recipient": "{{checkout.shippingAddress.phone}}",
"sender_id": "MA_BOUTIQUE",
"message": "Bonjour {{checkout.shippingAddress.firstName}}, vous avez oublié des articles dans votre panier ! Validez-le avant rupture de stock ici : {{checkout.abandonedCheckoutUrl}}"
}

bash

Timing (The Golden Rule of the sequence)

Don't send the SMS 10 minutes after abandonment, the customer may just be looking for their credit card. Don't send the SMS 2 days later, he has already purchased from Jumia.

The optimal sequence (The Funnel):

  • H+1 (Free Email): First send the native automatic follow-up by Email from Shopify. It's free. Give the customer time to come back on their own.
  • H+3 or H+4 (The "Service" SMS): If the order is still not converted, Shopify Flow triggers the SMS via the EnvoiSMS API.
> [Brand] Your basket is waiting for you! Resume your order where you left it: bit.ly/panier.
  • D+1 (The Ultimate SMS - Exceptional Discount): If the value of the basket is greater than 500 MAD (filter this in Shopify Flow), send a "Last Chance" SMS with a discount to kill hesitation.
> [Brand] We offer you delivery! Finalize your order from yesterday with the code LIVR-FREE (Valid for 4 hours): bit.ly/panier.

Measuring Recovered Revenue

Each SMS sent costs you around 0.65 MAD (Starter rate with a validated Sender ID). If you send 100 per month (65 MAD cost), and you collect even 3 baskets at 400 MAD (1,200 MAD turnover), the Return on Investment (ROI) of this simple technical automation is titanic.

Always make sure that the number entered by the customer in the Shopify telephone field is valid (International format +212) by activating strict verification in your checkout settings, otherwise you will pay for SMS messages that will never arrive due to erroneous formatting (Hard Bounce).

Why choose EnvoiSMS for your business?

Carrier Delivery

Local routes to IAM, Orange and Inwi, with automatic failover between routes and delivery status sent by webhook.

Cost Optimization

WhatsApp Business API from 0.65 MAD per message with optimal ROI.

Sovereign Data (CNDP)

Full compliance with Moroccan personal data protection regulations (CNDP).

What is the routing latency on the IAM, Inwi and Orange networks?
On our local routes to Maroc Telecom (IAM), Orange and inwi, the average delivery latency is between 2 and 4 seconds for transactional flows.
How does the platform manage the format of Moroccan numbers?
EnvoiSMS automatically normalizes the numbers entered (06..., 07..., 00212...) to the E.164 standard (+212) to avoid any delivery failure.

Suggested Articles

SMS Formatting in Morocco: Line Breaks, GSM-7 vs UCS-2 Encoding and Cost Optimization
technical

SMS Formatting in Morocco: Line Breaks, GSM-7 vs UCS-2 Encoding and Cost Optimization

WhatsApp Business Formatting in Morocco: Enriched Text, Emojis and Interactive Buttons
technical

WhatsApp Business Formatting in Morocco: Enriched Text, Emojis and Interactive Buttons

One-Tap Autofill & 1-Click WhatsApp OTP Authentication in Morocco
technical

One-Tap Autofill & 1-Click WhatsApp OTP Authentication in Morocco