Appearance
Helpers Reference
List of all public methods exported within @shopware-pwa/helpers-next package.
Category
| name | description |
|---|---|
| getCategoryRoute | Get category/navigation route information for Vue Router. category or navigation URL and route informations for resolving SEO url.Use it with combination of <RouterLink> or <NuxtLink> in Vue.js or Nuxt.js projects.Example: |
Media
| name | description |
|---|---|
| getBiggestThumbnailUrl | the biggest thumbnail url from the media object |
| getMedia | Prepare media object |
| getSmallestThumbnailUrl | the smallest thumbnail url from the media object |
| getSrcSetForMedia | the srcset attribute for the image, for available breakpoints |
Product
| name | description |
|---|---|
| getMainImageUrl | gets the cover image |
| getProductFreeShipping | Get product free shipping property |
| getProductRatingAverage | Get product rating average property |
| getProductReviews | Format product reviews to ui-interfaces |
| getProductRoute | Get product route information for Vue router. product URL and route informations for resolving SEO url.Use it with combination of <RouterLink> or <NuxtLink> in Vue.js or Nuxt.js projects.Example: |
| getProductUrl | Get product url. The priority is SEO url and then technical url. |
Routing
| name | description |
|---|---|
| getCategoryRoute | Get category/navigation route information for Vue Router. category or navigation URL and route informations for resolving SEO url.Use it with combination of <RouterLink> or <NuxtLink> in Vue.js or Nuxt.js projects.Example: |
| getProductRoute | Get product route information for Vue router. product URL and route informations for resolving SEO url.Use it with combination of <RouterLink> or <NuxtLink> in Vue.js or Nuxt.js projects.Example: |
Other
| name | description |
|---|---|
| getCategoryImageUrl | gets the cover image |
| getCategoryUrl | Get URL for category.Some link |
| getFormattedPrice | Get formatted price |
| getTranslatedProperty | Get translated property from the given object. |