Store connections
Set up ROASaurus on PrestaShop
PrestaShop needs no ROASaurus module. Enable the webservice, create a key with read access, paste it in ROASaurus and add the script to your theme header. ROASaurus fetches valid (paid) orders every 5 minutes.
Before you start
- PrestaShop back office access to Advanced Parameters › Webservice.
- Access to your theme files or a "custom code" module.
Steps
Add the store
In ROASaurus, open the store menu at the top of the sidebar, choose Add a store, then PrestaShop. Enter the address your customers visit and click Continue.
You should see: Connect PrestaShop, with Last order received: none yet, Last sync: never, the numbered setup steps and the credential fields.
Add the tracking script
Copy the script tag from step 1 of the connection page. It contains your store key. Paste it in your theme header (
templates/_partials/head.tpl) or with a custom code module, then clear the cache.You should see: Open your shop with
?roasaurus=connectedat the end of the address: the browser says "ROASaurus is connected."Create a webservice key
Advanced Parameters › Webservice: enable the webservice, add a key with GET access to orders, customers, addresses, countries, currencies and configurations. Paste it in Webservice key, save and click Test connection.
You should see: "Connected to the PrestaShop webservice."
Add the thank-you page snippet
The connection page shows a snippet that fires the browser purchase with the order id. Add it to
order-confirmation.tpl, or a module on thedisplayOrderConfirmationhook; it fills in the order id and total. It links the order to the visitor and their ad click exactly; without it, ROASaurus matches by email or by IP address and browser.Fetch the first orders
Press Fetch orders now. The first fetch reads the last 3 days of paid orders; after that ROASaurus fetches every 5 minutes by itself.
You should see: "Fetched n paid orders, m new." and Last sync with the time. On Getting started, Connect the store turns green.
What you should see
Paid PrestaShop orders appear under Profit › Orders with their channel, and purchases go out to the ad platforms you connected (Data quality › Deliveries). Getting started shows Connected on with the date.
How orders arrive
PrestaShop has no order webhooks, so ROASaurus fetches orders marked valid every 5 minutes, with the customer, invoice address and products. Product combinations are kept apart as their own variants. ROASaurus also reads your default currency, country and time zone.
What ROASaurus reads
Only paid orders, with their products, totals, currency, customer contact details and address. Contact details are hashed before they go to an ad platform. Refunds follow where the platform reports them. Your shop is never changed.
Common problems
"Connection failed: … Save your credentials first, then test."
"Sync failed: …" or the Connect the store step turns red
Test connection answers 401 or 403
Next step
Next: connect your ad platforms and add your costs.
Continue with Getting startedStill stuck? Email us.