Skip to main content
PrestaShop → SalesforceIntegration guide

Connecting PrestaShop to Salesforce

PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the PrestaShop order before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PrestaShop to Salesforce: B2B orders onto Accounts, not new Leads

For B2B PrestaShop stores, log orders against the existing Salesforce Account rather than creating a Lead per purchase. Match on email against Contacts then Leads, store id_customer as an external ID on the Contact, and record orders as Opportunities or a custom Order object keyed by order reference. Agree which order states mean closed-won and push later changes as updates.

PrestaShop stores pushing orders into Salesforce are usually B2B or trade sellers: the web store takes repeat orders, sales manages accounts in Salesforce. That context decides the design. A PrestaShop customer who already exists as a Contact under an Account should have the order logged against that Account, not trigger a new Lead on every purchase, which is what many simple connectors do by default.

Match on email first against Contacts, then Leads, and create a Lead only for genuinely new buyers. Store id_customer as an external ID on the Contact so later syncs upsert rather than duplicate, and record orders as Opportunities or a custom Order object with the PrestaShop order reference as their external ID. The company and VAT fields, if your checkout collects them, help pick the right Account. First-order click identifiers belong on the Lead or Contact as custom fields so the account's origin survives.

Order state mapping is where it breaks. PrestaShop order states are customized per store; agree which ones mean closed-won in Salesforce, and push later changes (shipped, cancelled, credit slip issued) as updates to the same record. Validation rules on Opportunity often require fields the sync never sets and reject the write quietly, so open a synced order in the UI. Check which connectors are maintained for your versions before building.

PrestaShop → Salesforce · what breaks

Why this join usually fails — PrestaShop → Salesforce

  1. 01

    The Lead or Contact identity never reaches PrestaShop

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  2. 02

    Module ecosystem interference

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  3. 03

    Writes that succeed and change nothing

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  4. 04

    Nothing reconciles afterwards

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

PrestaShop → Salesforce · the fix

What working looks like — PrestaShop → Salesforce

  • The Lead or Contact identity on every order

  • Conversions arriving in Salesforce

    The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.

  • Reconciled against the source

PrestaShop → Salesforce · architecture

How PrestaShop and Salesforce actually connect

  1. 1

    PrestaShop holds the truth

    You own the data and can query it directly. Pin down which order states count as revenue, since PrestaShop's state machine is more granular than most.

  2. 2

    Salesforce needs a click to match

    Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.

  3. 3

    The identifier is the bridge

    The Lead or Contact identity, captured at the visit and carried into the PrestaShop order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the confirmation template.

  5. 5

    Deduplication at the destination

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

PrestaShop → Salesforce · normal or broken

Working vs. broken, side by side — PrestaShop → Salesforce

Normal, not a fault

  • The Lead or Contact identity present on the order

  • Sent from the PrestaShop order validation hook

  • Deduplicated correctly

    Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.

  • Reconciles with the source

Actually broken

  • The Lead or Contact identity missing on most records

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  • Sent from the browser

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  • Counted twice, or not at all

    Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.

  • Nobody has reconciled it

PrestaShop → Salesforce · diagnose

Diagnostic order — PrestaShop → Salesforce

  1. 01

    Count orders carrying the Lead or Contact identity

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order metadata on ten recent orders

    Partial coverage across orders points at a module conflict rather than a missing implementation.

  4. 04

    Write a test value and open the record in the UI

    The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.

  5. 05

    Read the match rate, not the success message

    Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.

PrestaShop → Salesforce · prove

How it gets proven — PrestaShop → Salesforce

Source of truth

PrestaShop's order records in your own database, for the same window and order state set.

  • The Lead or Contact identity confirmed present on a live order.
  • A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
  • Order metadata confirmed present across ten consecutive orders rather than one.

PrestaShop → Salesforce · free audit

What we check in the free audit

  • Count orders carrying the Lead or Contact identity
  • Follow one real conversion end to end
  • Check order metadata on ten recent orders
  • Write a test value and open the record in the UI
  • Read the match rate, not the success message

Checked against

PrestaShop's order records in your own database, for the same window and order state set.

Get my free conversion tracking audit

Free30 minutesNo obligation

PrestaShop → Salesforce · when not to buy

When you don't need this — PrestaShop → Salesforce

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Lead or Contact identity.
  • If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
  • If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.

PrestaShop → Salesforce · what we deliver

What gets built — PrestaShop → Salesforce

  • Identifier capture into PrestaShop

    Capture the identifier and write it to order metadata through a hook, server-side, so it does not depend on page execution.

  • Event source: the PrestaShop order validation hook

    Fire server-side from the hook rather than the confirmation template.

  • Dispatch to Salesforce

    API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.

  • Reversals where they exist

    Credit slips are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against PrestaShop's order records in your own database, for the same window and order state set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

PrestaShop → Salesforce questions, answered

Use a connector or middleware that upserts Contacts by email or external ID and logs orders as Opportunities or a custom object keyed on the order reference. Check that it is maintained for your PrestaShop and Salesforce versions.

Free · 30 min

Get PrestaShop and Salesforce joined properly

Free30 minutesNo obligation