Skip to main content

Guidelines

Frontend guidelines​

All addons are reviewed before they become available on the Shoptet Marketplace. To get your addon approved, follow the guidelines below. We strongly recommend going through them before you submit your addon.

CDN usage​

All JavaScript, CSS, and static assets must be served from the Shoptet CDN. This ensures that assets are delivered securely and efficiently. Using the Shoptet CDN has these benefits:

  1. Content is cached and served faster than through the e-shop domain.
  2. CDN requests do not count towards the limit of concurrent connections to the same domain name.
  3. No additional DNS lookups are needed.
  4. Lower risk of outages caused by slow third-party servers.

The Addon Repository uploads all assets to the Shoptet CDN for you automatically.

Partner developers can also store CSS and JS files on FTP in /user/documents/ of their own partner e-shop, but this approach is discouraged in favor of the Addon Repository.

How to test​

Use the Network tab in the browser developer tools to check that all addon assets are served from the https://cdn.myshoptet.com/ domain.

XHR requests and trailing slashes​

All XHR requests should be cached. Use the /cache/ prefix in e-shop URLs to enable caching. Uncached requests are tolerated only when they are triggered by a user interaction. Make sure your request URLs end with a trailing slash / to avoid unnecessary redirects.

note

For multilingual e-shops, place /cache/ before the language prefix, e.g., https://multi.shoptet.com/cache/sk/blog/.

How to test​

Check the Network tab in the browser developer tools to verify that all XHR requests are cached and end with a trailing slash /.

Source code accessibility and readability​

Source code must be unminified, well documented, and readable. Minify only the files you deploy, in your own build (the Visual Addon Boilerplate does it for you), and keep the readable source available for the review.

How to test​

The source code of the addon is reviewed for accessibility and readability during the approval process.

Code security and custom codes​

Use custom codes for shared parts of the code and API endpoints for e-shop-specific code. This approach ensures security and maintainability. How the codes are placed, reviewed and deployed is described in Code placement, review and deployment for addons.

How to test​

The source code is evaluated for security and proper use of custom codes during the review process.

API guidelines​

Follow the recommendations in Proper API usage and stay within the limits described in Rate limiter.