In the last Shoptet version, it is not possible to change the e-shop design via API. However, it is possible to include HTML codes
into previously defined places. This enables the code or link to a file containing additional CSS styles or JavaScript codes to be entered.
The same functionality is now included within the e-shop administration (/admin/html-kody/, HTML code tab).
There are 3 possible locations, where HTML codes can be inserted:
common-header- the code will be inserted into each e-shop page header (<HEAD>)common-footer- the code will be inserted into each e-shop page foot (before end</BODY>)order-confirmed- the code will be inserted in the page confirming the order (the "thank you page")
The inserted codes may come from 3 sources, and they are included in the following order:
Codes from addons (the addon defines HTML codes to be inserted for anybody, who installs the addon). If there are more of these, they are inserted progressively, the order cannot be relied upon.
Codes entered via API. Each addon can insert only one code into each location. If there are more of these addons, the codes will be inserted progressively, one after another, the order cannot be relied upon.
The code entered in the administration GUI (
/admin/html-kody/,HTML codetab).
This lists currently defined HTML codes for this addon, in all possible locations. Each addon sees only “its own” codes, it cannot see other codes of other addons, not even from the same developer. Also, it does not see the code inserted within the administration.
- Mock serverhttps://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/template-include
- https://api.myshoptet.comhttps://api.myshoptet.com/api/template-include
- shoptetAccessToken
- shoptetPrivateApiToken
curl -i -X GET \
https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/template-include \
-H 'Content-Type: application/json' \
-H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'{ "data": { "snippets": [ … ] }, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }