@shopbite-de/storefront 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/Footer.vue +1 -1
- package/app/components/Header/Body.vue +1 -1
- package/app/components/Header.vue +1 -1
- package/app/components/Product/Card.vue +1 -1
- package/app/composables/useHeaderNavigation.ts +2 -2
- package/app/composables/useProductConfigurator.ts +2 -0
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ const mainIngredients = computed<Schemas["PropertyGroupOption"][]>(() => {
|
|
|
56
56
|
function onVariantSelected(variant: Schemas["Product"]) {
|
|
57
57
|
price.value = variant.calculatedPrice.totalPrice;
|
|
58
58
|
label.value = variant.translated.name ?? variant.name;
|
|
59
|
-
description.value = variant.description;
|
|
59
|
+
description.value = variant.translated.description ?? variant.description;
|
|
60
60
|
number.value = variant.productNumber;
|
|
61
61
|
}
|
|
62
62
|
</script>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { NavigationMenuItem } from "@nuxt/ui";
|
|
2
2
|
|
|
3
|
-
export const useHeaderNavigation = () => {
|
|
3
|
+
export const useHeaderNavigation = async () => {
|
|
4
4
|
const route = useRoute();
|
|
5
5
|
|
|
6
|
-
const { data: navigationData } = useAsyncData("
|
|
6
|
+
const { data: navigationData } = await useAsyncData("navigation", () =>
|
|
7
7
|
queryCollection("navigation").first(),
|
|
8
8
|
);
|
|
9
9
|
|
|
@@ -69,11 +69,13 @@ export function useProductConfigurator() {
|
|
|
69
69
|
product: [
|
|
70
70
|
"id",
|
|
71
71
|
"name",
|
|
72
|
+
"description",
|
|
72
73
|
"translated",
|
|
73
74
|
"productNumber",
|
|
74
75
|
"options",
|
|
75
76
|
"properties",
|
|
76
77
|
"calculatedPrice",
|
|
78
|
+
"translated",
|
|
77
79
|
],
|
|
78
80
|
product_option: ["id", "groupId", "name", "translated", "group"],
|
|
79
81
|
property: ["id", "name", "translated", "options"],
|