How to create Snippet in Shopware 5?

Create Simple Product In Shopware 5

To create Snippet in Shopware 5 follow the following steps:

Step 1: Login to the admin panel and go to Configuration > Snippets.

Step 2: Click on Add snippet button.

Step 3: Fill out the following fields:

  • Namespace: frontend/index/test
  • Name: sTestSnippet
  • Value: This value will be shown in the frontend where you will call it.

Step 4: Calling the snippet in .tpl file using this code.

{s namespace="frontend/index/test" name="sTestSnippet"}{/s}

Step 5: After that clear the cache and refresh the frontend to see the changes.

For any support on shopware please mail us at manish@bay20.com or Whatsapp Us at +91-8800519180.