MailOdds

PrestaShop + MailOdds

Connect your PrestaShop store to MailOdds. Sync products, send transactional email, validate checkout addresses, and attribute revenue to campaigns.

Setup time: 10-15 min
Difficulty: Intermediate
1,000 free validations included

Prerequisites

  • MailOdds account with API key
  • PrestaShop store (1.7+ or 8.x)
  • PrestaShop webservice API key

E-commerce Use Cases

Store Connection

Connect your PrestaShop store with API credentials. Import store data and enable product sync, sending, and attribution.

Product Catalog Sync

Import and query your product catalog for campaign personalization, product recommendation emails, and abandoned cart templates.

Transactional Email

Order confirmations, shipping notifications, and password resets sent via MailOdds with open and click tracking built in.

Revenue Attribution

Track email-driven purchases with the mid parameter. Attribute revenue back to specific campaigns and measure ROI.

How to Connect

REST API

PHP SDK for full platform access

Dashboard

Connect and manage stores visually

PrestaShop Webservice

Use PrestaShop's webservice API credentials

Store Connection

Connect your PrestaShop store to MailOdds with a single API call using the PHP SDK. Once connected, your store is ready for product sync, transactional email, and revenue attribution.

Connect PrestaShop Store

PHP
use MailOdds\Client;

$client = new Client('YOUR_API_KEY');

$store = $client->stores->connect([
    'platform' => 'prestashop',
    'shop_domain' => 'your-store.com',
    'api_key' => 'YOUR_PRESTASHOP_WEBSERVICE_KEY'
]);

// Trigger product catalog sync
$client->stores->sync($store->id);

Related: E-commerce Email Integration

Order Confirmation Email

Hook into PrestaShop order events to send transactional emails through MailOdds. Track opens and clicks on order confirmations, shipping updates, and other lifecycle emails.

Send Order Confirmation

PHP
// Hook into PrestaShop order confirmation
// In your module's hookActionValidateOrder:

$result = $client->deliver([
    'from' => 'orders@your-store.com',
    'to' => $customer->email,
    'subject' => 'Order #' . $order->reference . ' confirmed',
    'html' => $orderHtml,
    'tags' => ['order-confirmation', 'prestashop'],
    'metadata' => [
        'order_id' => $order->id,
        'order_total' => $order->total_paid
    ],
    'track_opens' => true,
    'track_clicks' => true
]);

Commerce Event Tracking

Track storefront events from your PrestaShop theme to attribute revenue back to email campaigns. Capture the mid parameter from email links and close the attribution loop on purchase.

Track Storefront Events

JAVASCRIPT
// PrestaShop storefront event tracking
// Add to your theme footer template

fetch('https://api.mailodds.com/v1/events/track', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    event: 'order_completed',
    email: customerEmail,
    properties: {
      order_id: orderId,
      total: orderTotal,
      currency: 'EUR',
      mid: new URLSearchParams(window.location.search).get('mid')
    }
  })
});

Related: E-commerce Email

Product Query for Campaigns

Query your synced PrestaShop product catalog to build personalized campaign content. Use product data for recommendation emails, abandoned cart templates, and promotional campaigns.

Query Synced Products

PHP
// Query synced PrestaShop products for campaigns
$products = $client->storeProducts->list([
    'store_id' => $storeId,
    'limit' => 20
]);

foreach ($products->data as $product) {
    // Use in campaign HTML templates
    $product->title;
    $product->price;
    $product->image_url;
    $product->url;
}

Zero-Config Sending Domain Authentication

PrestaShop merchants sending via MailOdds get automatic email authentication. Add one NS record for mo.yourdomain.com and MailOdds manages SPF, DKIM, MX, and DMARC automatically. No ongoing DNS maintenance.

Email Validation at Checkout

Use the MailOdds pixel or a custom PrestaShop module to validate email addresses at checkout. Catch disposable and invalid addresses before they enter your customer database, reducing bounces and protecting sender reputation.

Learn more about e-commerce email integration

Email-to-Web Attribution

MailOdds appends a mid parameter to links in your emails, enabling email-to-web attribution on your PrestaShop store:

https://your-store.com/products/widget?mid=msg_abc123

Your PrestaShop storefront can capture mid from URL parameters to attribute web sessions and purchases back to specific email campaigns. Pair with the order_completed event for complete funnel tracking.

Full Platform: Beyond Validation

MailOdds connects to PrestaShop as a complete email platform. Sync your product catalog, send targeted campaigns, and attribute revenue back to specific emails.

Frequently Asked Questions

Troubleshooting

Need more help?

Can't find what you're looking for? We're here to help you get PrestaShop working.

Connect Your PrestaShop Store

Sync products, send transactional email, and track revenue attribution. Free plan included.