Follow this guide to configure Shopware 6 for ProfitMetrics
Install the App- Single Channel Configuration
- Settings Verification
- Order Status
- Error Handling
- Multiple Shops/Sales Channels
- Product Feed
Step 1: Install the App
Go to ProfitMetrics > Integrations > Shopware 6 for the latest link to the Shopware 6 app
Step 2: Configuration
When only having one sales channel you only need to make settings for "All sales channels" (global settings).
![ProfitMetrics Integration for Shopware 6](https://store.shopware.com/media/image/e6/1f/a4/file629881641eb92.png)
The first card you need to configure is the "Profitmetrics Settings".
The fields here are where you establish the connection to Profitmetrics.
![ProfitMetrics Integration for Shopware 6](https://store.shopware.com/media/image/51/6e/f7/file629881665dc12.png)
- An active/not active toggle.
- Account mode to choose between production or dev
- Store Public ID to insert ID from ProfitMetrics > Websites
- Script to include on all pages except order confirmation
- It is not necessary to edit for the plugin to work.
Step 3: Settings Verification
Next, we have two buttons "Send orders" and "Test API connection".
- Send orders: This button will trigger an order export to Profitmetrics immediately
- Test API connection: If you are connected to your Profitmetrics account, you can use this to test. This will become successful when the following three conditions are true:
-
- Active/not active = active
- Account mode = production
- Store Public ID = Public ID from ProfitMetrics > Websites
![](https://i.imgur.com/pHRtERR.png)
Step 4: Order Status
In the next section "Order status" we decide what states will trigger an order export to Profitmetrics. Here we have two action fields:
![Screenshot 2024-03-04 at 6.53.06 AM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-03-04%20at%206.53.06%20AM.png?width=500&height=167&name=Screenshot%202024-03-04%20at%206.53.06%20AM.png)
- Order states: Choose the states that will trigger an order export. In our example, we have chosen "Authorized" and "Paid". These are chosen because almost all orders will have one of the two states at some point.
- Status above matches ANY state machine: Here we choose what status type that can trigger an order export. Therefore, you need to make sure that you choose a status type which contains the order state(s) that you chose in "Order states". In this example, the type "Payment state" is chosen because "Authorized" and "Paid" are both states that are connected to "Payment state".
Now when you have an order that enters the state of either "Authorized" or "Paid" this is going to trigger an order export.
Step 5: Error Handling
The last section "Error handling" is for settings regarding error handling. Here you can choose how many times the system will try to export an order (in case it fails). Moreover, you have the option to activate an error log.
![Screenshot 2024-03-04 at 6.53.13 AM](https://knowledge.profitmetrics.io/hs-fs/hubfs/Screenshot%202024-03-04%20at%206.53.13%20AM.png?width=500&height=150&name=Screenshot%202024-03-04%20at%206.53.13%20AM.png)
Step 6: Multiple Shops/Sales Channels
If you have multiple Shops/sales channels, then you need to change the Store Public ID for each Sales Channel.
- Change to the specific sales channel at the top of the config page
- Change the default from the Global setting to match the specific ID for each Sales Channel (from ProfitMetrics > Websites > Public ID)
Please note that the fields will appear locked until you click the 'link' icon. This acts as a 'use system settings' toggle
By default all fields are inherited from the global setting, so this is not necessary if there is only one sales Channel.
Step 7: Product Feed
Once the module is configured, please set up your product feed according to This Knowledge Base Guide.