Search code examples
shopwareshopware6shopware6-app

How to show options in Shopware 6 plugin?


I want to show a selectbox on my page like on the orders page, which also shows the variants in the title. How can I do this?

<sw-entity-single-select
  :label="$t('scg.detail.card.product.product')"
  entity="product"
  displayVariants
>
</sw-entity-single-select> 

This is an example what i want: enter image description here


Solution

  • You can see how this is done in the corresponding component: link

    Specifically for this selection, the sw-product-variant-info component is used to display the variants in the select box. But of course you can fill the result-item slot as you like.