diff --git a/api/controller/product.controller.js b/api/controller/product.controller.js index 67403d6..72f0471 100644 --- a/api/controller/product.controller.js +++ b/api/controller/product.controller.js @@ -13,7 +13,7 @@ class ProductController { name: item.name, description: item.description, type: item.type, - price: item.size, + price: item.price, specialPrice: item.specialPrice, isNew: item.isNew, slug: item.slug, diff --git a/src/components/ui/Card.vue b/src/components/ui/Card.vue index b67e1dd..6172fcf 100644 --- a/src/components/ui/Card.vue +++ b/src/components/ui/Card.vue @@ -53,7 +53,8 @@ export default defineComponent({ setup({ price, discount }) { const isLoaded = ref(false); const percent = +discount / 100; - const priceWithoutLetter = ~~price.replaceAll("€", ""); + //const priceWithoutLetter = ~~price.replaceAll("€", ""); + const priceWithoutLetter = price; const finalValue = ~~(priceWithoutLetter - priceWithoutLetter * percent); const onLoad = () => { @@ -81,7 +82,7 @@ export default defineComponent({
{{ finalValue }}€
-- {{ priceWithoutLetter }}€ +
+ {{ price }}€