diff --git a/CHANGELOG.md b/CHANGELOG.md index dae5937a..1cda3321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- When a product is sponsored, renders the sponsored tag above the product's name. + ## [2.86.0] - 2023-11-10 ### Added diff --git a/docs/ProductSummaryName.md b/docs/ProductSummaryName.md index 0ff6aae4..397d6ab7 100644 --- a/docs/ProductSummaryName.md +++ b/docs/ProductSummaryName.md @@ -42,6 +42,7 @@ Product Summary Name is a block exported by the [Product Summary app](https://de | `showSku` | `Boolean` | Show product SKU | `false` | | `showProductReference` | `Boolean` | Show product reference | `false`| | `showBrandName` | `Boolean` | Show brand name | `false`| +| `sponsoredBadgeLabel` | `String` | The text of the "Sponsored" tag, if applicable. | `"store/sponsored-badge.label"`| ## Customization diff --git a/messages/ar-SA.json b/messages/ar-SA.json index c615a11f..b7ec52af 100644 --- a/messages/ar-SA.json +++ b/messages/ar-SA.json @@ -2,6 +2,7 @@ "store/pricing.from": "من", "store/pricing.to": "إلى", "store/button-label": "شراء", + "store/sponsored-badge.label": "ได้รับการสนับสนุน", "admin/editor.productSummary.title": "ملخص المنتج", "admin/editor.productSummary.description": "ملخص المنتج الذي يظهر معلومات المنتج الرئيسي", "admin/editor.productSummary.isOneClickBuy.title": "يجب إعادة توجيه الدفع بعد النقر على الشراء", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "تسمية الصورة الفوقية", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "معايير البحث عن تسمية صورة فوقية (بالضبط: العثور على الصورة التي تطابق تماما الاسم المملوء في حقل 'تسمية صورة فوقية' | تضمن: العثور على الصورة الأولى التي تحتوي على النص المملوء في حقل 'تسمية صورة فوقية')", "admin/editor.productSummaryImage.hoverImage.criteria.index": "مؤشر الصورة الفوقية", + "admin/editor.productSummaryName.sponsoredBadge.title": "ข้อความของแท็กผลิตภัณฑ์ที่ได้รับการสนับสนุน หากมี", "admin/editor.productSummaryBuyButton.title": "زر ملخص شراء المنتج", "admin/editor.productSummaryName.title": "اسم ملخص المنتج", "admin/editor.product-summary-specification-badges.title": "ملخص مواصفات شارات المنتج", diff --git a/messages/bg-BG.json b/messages/bg-BG.json index 9c197913..587799ed 100644 --- a/messages/bg-BG.json +++ b/messages/bg-BG.json @@ -2,6 +2,7 @@ "store/pricing.from": "От", "store/pricing.to": "До", "store/button-label": "Купуване", + "store/sponsored-badge.label": "Спонсориран", "admin/editor.productSummary.title": "Резюме на продукт", "admin/editor.productSummary.description": "Резюмето на продукта, което съдържа основните данни за него", "admin/editor.productSummary.isOneClickBuy.title": "Трябва да пренасочи към финализиране след кликване на бутона за купуване", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Етикет при задържане на курсора върху изображение", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Критерии за търсене на етикет при задържане на курсора върху изображението (точно: намира изображението, което е точно съвпадение с името, посочено в полето „етикет при задържане на курсора върху изображение“ | съдържа: намира първото изображение, което съдържа текста, поставен в полето „етикет при задържане на курсора върху изображение“)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Индекс при задържане на курсора върху изображение", + "admin/editor.productSummaryName.sponsoredBadge.title": "Текст на етикета на спонсорирания продукт, ако е приложимо", "admin/editor.productSummaryBuyButton.title": "Бутон за покупка с резюме на продукта", "admin/editor.productSummaryName.title": "Име на резюме на продукта", "admin/editor.product-summary-specification-badges.title": "Значки със спецификации на резюме на продукта", diff --git a/messages/context.json b/messages/context.json index f0324b67..0a5457b2 100644 --- a/messages/context.json +++ b/messages/context.json @@ -37,6 +37,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.index": "admin/editor.productSummaryImage.hoverImage.criteria.index", "admin/editor.productSummaryImage.hoverImage.criteria.label": "admin/editor.productSummaryImage.hoverImage.criteria.label", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria", + "admin/editor.productSummaryName.sponsoredBadge.title": "admin/editor.productSummaryName.sponsoredBadge.title", "admin/editor.productSummaryBuyButton.title": "admin/editor.productSummaryBuyButton.title", "admin/editor.productSummaryName.title": "admin/editor.productSummaryName.title", "admin/editor.product-summary-specification-badges.title": "admin/editor.product-summary-specification-badges.title", diff --git a/messages/de-DE.json b/messages/de-DE.json index 1d0d4f36..ad2bda1c 100644 --- a/messages/de-DE.json +++ b/messages/de-DE.json @@ -2,6 +2,7 @@ "store/pricing.from": "Von", "store/pricing.to": "Bis", "store/button-label": "Kaufen", + "store/sponsored-badge.label": "Gesponsert", "admin/editor.productSummary.title": "Produktzusammenfassung", "admin/editor.productSummary.description": "Die Produktübersicht zeigt die wichtigsten Produktinformationen", "admin/editor.productSummary.isOneClickBuy.title": "Soll nach einem Klick auf Kauf zur Kasse weitergeleitet werden", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Mausverschiebung Bildbeschriftung", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Mausverschiebung Bildbeschriftung Bezeichnungssuche (genau: findet das Bild, das genau mit dem Namen übereinstimmt, der im Feld 'Hover Image Label' eingetragen ist | enthält: findet das erste Bild, das den Text enthält, der im Feld 'Hover Image Label' ausgefüllt ist)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Mausverschiebung Index", + "admin/editor.productSummaryName.sponsoredBadge.title": "Text des gesponserten Produkt-Tags, falls zutreffend", "admin/editor.productSummaryBuyButton.title": "Produktübersicht Kauf-Taste", "admin/editor.productSummaryName.title": "Produktübersicht Name", "admin/editor.product-summary-specification-badges.title": "Produktübersicht Spezifikations-Abzeichen", diff --git a/messages/en.json b/messages/en.json index 894ff536..f4a10000 100644 --- a/messages/en.json +++ b/messages/en.json @@ -2,6 +2,7 @@ "store/pricing.from": "From", "store/pricing.to": "To", "store/button-label": "Buy", + "store/sponsored-badge.label": "Sponsored", "admin/editor.productSummary.title": "Product Summary", "admin/editor.productSummary.description": "Product summary showing the main product information", "admin/editor.productSummary.isOneClickBuy.title": "Redirect to checkout after clicking buy", @@ -39,6 +40,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.index": "Hover Image Index", "admin/editor.productSummaryBuyButton.title": "Product Summary Buy Button", "admin/editor.productSummaryName.title": "Product Summary Name", + "admin/editor.productSummaryName.sponsoredBadge.title": "Text of the sponsored product tag, if applicable", "admin/editor.product-summary-specification-badges.title": "Product Summary Specification Badges", "admin/editor.productSummaryList.title": "Product List", "admin/editor.productSummaryList.description": "Product list from a collection", diff --git a/messages/es.json b/messages/es.json index 1f3ff22b..4268fc39 100644 --- a/messages/es.json +++ b/messages/es.json @@ -2,6 +2,7 @@ "store/pricing.from": "De", "store/pricing.to": "Para", "store/button-label": "Comprar", + "store/sponsored-badge.label": "Patrocinado", "admin/editor.productSummary.title": "Resumen del producto", "admin/editor.productSummary.description": "El resumen del producto que muestra la información principal del producto", "admin/editor.productSummary.isOneClickBuy.title": "Redirigir al checkout después de hacer clic en comprar", @@ -39,6 +40,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.index": "Índice de la imagen activable", "admin/editor.productSummaryBuyButton.title": "Botón de compra del resumen del producto", "admin/editor.productSummaryName.title": "Nombre del resumen del producto", + "admin/editor.productSummaryName.sponsoredBadge.title": "Texto de la etiqueta de producto patrocinado, si corresponde", "admin/editor.product-summary-specification-badges.title": "Insignias de especificación del resumen del producto", "admin/editor.productSummaryList.title": "Lista de productos", "admin/editor.productSummaryList.description": "Una lista de productos que tiene una colección", diff --git a/messages/fr-FR.json b/messages/fr-FR.json index 0c3b211b..dc1a1152 100644 --- a/messages/fr-FR.json +++ b/messages/fr-FR.json @@ -2,6 +2,7 @@ "store/pricing.from": "De", "store/pricing.to": "À", "store/button-label": "Acheter", + "store/sponsored-badge.label": "Sponsorisé", "admin/editor.productSummary.title": "Synthèse de produit", "admin/editor.productSummary.description": "La synthèse du produit affichant les principales informations sur le produit", "admin/editor.productSummary.isOneClickBuy.title": "Doit être redirigé vers la caisse après avoir cliqué sur Acheter", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Pointer l’étiquette de l’image", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Critères de recherche pour pointer l’étiquette de l’image (exact : trouve l’image correspondant exactement au nom rempli dans le champ 'Pointer l’étiquette de l’image' | contenus : trouve la première image qui contient le texte rempli dans le champ 'Pointer l’étiquette de l’image')", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Pointer l’index de l’image", + "admin/editor.productSummaryName.sponsoredBadge.title": "Texte de l'étiquette du produit sponsorisé, le cas échéant", "admin/editor.productSummaryBuyButton.title": "Bouton d’achat de la synthèse du produit", "admin/editor.productSummaryName.title": "Nom de la synthèse du produit", "admin/editor.product-summary-specification-badges.title": "Spécification des badges de la synthèse du produit", diff --git a/messages/id-ID.json b/messages/id-ID.json index 201ffb5e..f5b41c4f 100644 --- a/messages/id-ID.json +++ b/messages/id-ID.json @@ -2,6 +2,7 @@ "store/pricing.from": "Dari", "store/pricing.to": "Ke", "store/button-label": "Beli", + "store/sponsored-badge.label": "Disponsori", "admin/editor.productSummary.title": "Ringkasan Produk", "admin/editor.productSummary.description": "Ringkasan produk menampilkan informasi produk utama", "admin/editor.productSummary.isOneClickBuy.title": "Seharusnya dialihkan ke checkout setelah mengklik beli", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Label Gambar Mengambang", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Kriteria pencarian label gambar mengambang (persis: temukan gambar yang sama persis dengan nama yang terisi di bidang 'Label Gambar Mengambang’| berisi: temukan gambar pertama yang berisi teks yang terisi di bidang 'Label Gambar Mengambang')", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Indeks Gambar Mengambang", + "admin/editor.productSummaryName.sponsoredBadge.title": "Teks tag produk bersponsor, jika ada", "admin/editor.productSummaryBuyButton.title": "Tombol Beli Ringkasan Produk", "admin/editor.productSummaryName.title": "Nama Ringkasan Produk", "admin/editor.product-summary-specification-badges.title": "Badge Spesifikasi Ringkasan Produk", diff --git a/messages/it-IT.json b/messages/it-IT.json index dde1a846..8d7d9979 100644 --- a/messages/it-IT.json +++ b/messages/it-IT.json @@ -2,6 +2,7 @@ "store/pricing.from": "Da", "store/pricing.to": "A", "store/button-label": "Compra", + "store/sponsored-badge.label": "Sponsorizzato", "admin/editor.productSummary.title": "Riepilogo del prodotto", "admin/editor.productSummary.description": "Il riepilogo del prodotto mostra le principali informazioni sul prodotto", "admin/editor.productSummary.isOneClickBuy.title": "Dovrebbe reindirizzare l'utente al checkout dopo aver cliccato su \"Acquista\"", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Etichetta dell'immagine secondaria", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Criterio di ricerca dell'etichetta dell'immagine secondaria (exact: trova l'immagine che corrisponde esattamente al nome inserito nel campo \"Etichetta dell'immagine secondaria\" | contains: trova la prima immagine che contiene il testo inserito nel campo \"Etichetta dell'immagina secondaria\")", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Indice dell'immagine secondaria", + "admin/editor.productSummaryName.sponsoredBadge.title": "Testo del tag del prodotto sponsorizzato, se applicabile", "admin/editor.productSummaryBuyButton.title": "Pulsante \"Acquista\" nel riepilogo del prodotto", "admin/editor.productSummaryName.title": "Nome nel riepilogo del prodotto", "admin/editor.product-summary-specification-badges.title": "Badge per le specifiche nel riepilogo del prodotto", diff --git a/messages/ja-JP.json b/messages/ja-JP.json index 09032991..2f107569 100644 --- a/messages/ja-JP.json +++ b/messages/ja-JP.json @@ -2,6 +2,7 @@ "store/pricing.from": "開始", "store/pricing.to": "終了", "store/button-label": "購入する", + "store/sponsored-badge.label": "スポンサー付き", "admin/editor.productSummary.title": "製品サマリ", "admin/editor.productSummary.description": "主な製品情報を表示する製品サマリ", "admin/editor.productSummary.isOneClickBuy.title": "購入をクリックした後でチェックアウトにリダイレクトしなければなりません", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "マウスオーバー画像ラベル", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "マウスオーバー画像ラベル検索の基準 (すべて一致: 「マウスオーバー画像ラベル」フィールドの名前フィールドとすべて一致する画像を探します | 含む: 「マウスオーバー画像ラベル」フィールドのテキストフィールドを含む最初の画像を探します)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "マウスオーバー画像インデックス", + "admin/editor.productSummaryName.sponsoredBadge.title": "スポンサー付き商品タグのテキスト(該当する場合)", "admin/editor.productSummaryBuyButton.title": "製品サマリ購入ボタン", "admin/editor.productSummaryName.title": "製品サマリ名", "admin/editor.product-summary-specification-badges.title": "製品サマリ指定バッジ", diff --git a/messages/ko-KR.json b/messages/ko-KR.json index 6d12f538..d7c0e43b 100644 --- a/messages/ko-KR.json +++ b/messages/ko-KR.json @@ -2,6 +2,7 @@ "store/pricing.from": "에서", "store/pricing.to": "까지", "store/button-label": "구매", + "store/sponsored-badge.label": "후원", "admin/editor.productSummary.title": "제품 요약", "admin/editor.productSummary.description": "주요 제품 정보를 보여주는 제품 요약", "admin/editor.productSummary.isOneClickBuy.title": "구매를 클릭한 후 체크아웃으로 리디렉션", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "호버 이미지 라벨", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "호버 이미지 라벨 검색 조건(정확: '호버 이미지 라벨' 필드에 입력된 이름과 정확히 일치하는 이미지를 찾습니다. | 포함: '호버 이미지 라벨' 필드에 입력된 텍스트를 포함하는 첫 번째 이미지를 찾습니다.)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "호버 이미지 인덱스", + "admin/editor.productSummaryName.sponsoredBadge.title": "해당되는 경우 스폰서 제품 태그의 텍스트", "admin/editor.productSummaryBuyButton.title": "제품 요약 구매 버튼", "admin/editor.productSummaryName.title": "제품 요약 이름", "admin/editor.product-summary-specification-badges.title": "제품 요약 사양 배지", diff --git a/messages/nl-NL.json b/messages/nl-NL.json index 7194d156..8b7cead1 100644 --- a/messages/nl-NL.json +++ b/messages/nl-NL.json @@ -2,6 +2,7 @@ "store/pricing.from": "Van", "store/pricing.to": "Naar", "store/button-label": "Koop", + "store/sponsored-badge.label": "Gesponsord", "admin/editor.productSummary.title": "Productoverzicht", "admin/editor.productSummary.description": "Het productoverzicht met de belangrijkste productinformatie", "admin/editor.productSummary.isOneClickBuy.title": "Moet doorverwijzen naar kassa na klikken op kopen", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Aanwijzen afbeeldingslabel", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Zoekcriteria voor afbeeldingslabel zweven (exact: vindt de afbeelding die exact overeenkomt met de naam die is ingevuld in het veld 'Afbeeldingslabel zweven' | bevat: vindt de eerste afbeelding die de tekst bevat die is ingevuld in het veld 'Afbeeldingslabel zweven')", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Aanwijzen afbeeldingsindex", + "admin/editor.productSummaryName.sponsoredBadge.title": "Tekst van de gesponsorde producttag, indien van toepassing", "admin/editor.productSummaryBuyButton.title": "Productoverzicht koopknop", "admin/editor.productSummaryName.title": "Productoverzicht naam", "admin/editor.product-summary-specification-badges.title": "Productoverzicht specificatiebadges", diff --git a/messages/nn-NO.json b/messages/nn-NO.json index dfcfd2b4..0c13e4c3 100644 --- a/messages/nn-NO.json +++ b/messages/nn-NO.json @@ -2,6 +2,7 @@ "store/pricing.from": "Fra", "store/pricing.to": "Til", "store/button-label": "Kjøp", + "store/sponsored-badge.label": "Sponset", "admin/editor.productSummary.title": "Produktsammendrag", "admin/editor.productSummary.description": "Produktsammendraget viser hovedproduktinformasjonen", "admin/editor.productSummary.isOneClickBuy.title": "Bør omdirigere til kassen etter klikk på kjøp", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Pek med musepekeren på bildeetikett", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Søkekriterier for pek med musepekeren på bildeetikett (nøyaktig: finner bildet som samsvarer nøyaktig med navnet fylt ut i feltet \"Pek med musepekeren på bildeetikett\" | inneholder: finner det første bildet som inneholder teksten fylt ut i \"Pek med musepekeren på bildeetikett\" -feltet)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Indeks for Pek med musepekeren på bildet", + "admin/editor.productSummaryName.sponsoredBadge.title": "Tekst til den sponsede produktetiketten, hvis aktuelt", "admin/editor.productSummaryBuyButton.title": "Kjøpsknapp for produktsammendrag", "admin/editor.productSummaryName.title": "Navn på produktsammendrag", "admin/editor.product-summary-specification-badges.title": "Spesifikasjonsmerker for produktsammendrag", diff --git a/messages/no-NO.json b/messages/no-NO.json index dfcfd2b4..0c13e4c3 100644 --- a/messages/no-NO.json +++ b/messages/no-NO.json @@ -2,6 +2,7 @@ "store/pricing.from": "Fra", "store/pricing.to": "Til", "store/button-label": "Kjøp", + "store/sponsored-badge.label": "Sponset", "admin/editor.productSummary.title": "Produktsammendrag", "admin/editor.productSummary.description": "Produktsammendraget viser hovedproduktinformasjonen", "admin/editor.productSummary.isOneClickBuy.title": "Bør omdirigere til kassen etter klikk på kjøp", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Pek med musepekeren på bildeetikett", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Søkekriterier for pek med musepekeren på bildeetikett (nøyaktig: finner bildet som samsvarer nøyaktig med navnet fylt ut i feltet \"Pek med musepekeren på bildeetikett\" | inneholder: finner det første bildet som inneholder teksten fylt ut i \"Pek med musepekeren på bildeetikett\" -feltet)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Indeks for Pek med musepekeren på bildet", + "admin/editor.productSummaryName.sponsoredBadge.title": "Tekst til den sponsede produktetiketten, hvis aktuelt", "admin/editor.productSummaryBuyButton.title": "Kjøpsknapp for produktsammendrag", "admin/editor.productSummaryName.title": "Navn på produktsammendrag", "admin/editor.product-summary-specification-badges.title": "Spesifikasjonsmerker for produktsammendrag", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index 1792c90b..92b34e71 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -2,6 +2,7 @@ "store/pricing.from": "De", "store/pricing.to": "Para", "store/button-label": "Comprar", + "store/sponsored-badge.label": "Patrocinado", "admin/editor.productSummary.title": "Resumo do produto", "admin/editor.productSummary.description": "O resumo do produto mostrando as principais informações do produto", "admin/editor.productSummary.isOneClickBuy.title": "Redireciona para o checkout depois de clicar em comprar", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Etiqueta da imagem secundária", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Critério de busca da etiqueta da imagem secundária (exato: busca pelo nome exato definido em \"Etiqueta da imagem secundária\" | contém: busca a primeira imagem que contém o texto definido em \"Etiqueta da imagem secundária\")", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Número da imagem secundária", + "admin/editor.productSummaryName.sponsoredBadge.title": "Texto da tag indicativa de produto patrocinado, se aplicável", "admin/editor.productSummaryBuyButton.title": "Botão de compra do resumo do produto", "admin/editor.productSummaryName.title": "Nome do resumo do produto", "admin/editor.product-summary-specification-badges.title": "Selos de especificação do resumo do produto", diff --git a/messages/pt.json b/messages/pt.json index 1792c90b..d34f86ba 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -2,6 +2,7 @@ "store/pricing.from": "De", "store/pricing.to": "Para", "store/button-label": "Comprar", + "store/sponsored-badge.label": "Patrocinado", "admin/editor.productSummary.title": "Resumo do produto", "admin/editor.productSummary.description": "O resumo do produto mostrando as principais informações do produto", "admin/editor.productSummary.isOneClickBuy.title": "Redireciona para o checkout depois de clicar em comprar", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Etiqueta da imagem secundária", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Critério de busca da etiqueta da imagem secundária (exato: busca pelo nome exato definido em \"Etiqueta da imagem secundária\" | contém: busca a primeira imagem que contém o texto definido em \"Etiqueta da imagem secundária\")", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Número da imagem secundária", + "admin/editor.productSummaryName.sponsoredBadge.title": "Texto do selo indicativo de produto patrocinado, se aplicável", "admin/editor.productSummaryBuyButton.title": "Botão de compra do resumo do produto", "admin/editor.productSummaryName.title": "Nome do resumo do produto", "admin/editor.product-summary-specification-badges.title": "Selos de especificação do resumo do produto", diff --git a/messages/ro-RO.json b/messages/ro-RO.json index cc8fbabe..7756fbf9 100644 --- a/messages/ro-RO.json +++ b/messages/ro-RO.json @@ -2,6 +2,7 @@ "store/pricing.from": "De la", "store/pricing.to": "Către", "store/button-label": "Cumpără", + "store/sponsored-badge.label": "Sponsorizat", "admin/editor.productSummary.title": "Rezumat produs", "admin/editor.productSummary.description": "Rezumatul produsului care arată informațiile principale ale produsului", "admin/editor.productSummary.isOneClickBuy.title": "Trebuie redirecționat către finalizarea comenzii după apăsarea butonului de cumpărare", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "Eticheta imaginii secundare", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "Criteriu de căutare al etichetei imaginii secundare (exact: găsește imaginea care se potrivește perfect cu denumirea completată în câmpul „Etichetă imagine secundară” | contains: găsește prima imagine care conține textul complet în câmpul „Etichetă imagine secundară”)", "admin/editor.productSummaryImage.hoverImage.criteria.index": "Indexul imaginii secundare", + "admin/editor.productSummaryName.sponsoredBadge.title": "Textul etichetei produsului sponsorizat, dacă este cazul", "admin/editor.productSummaryBuyButton.title": "Rezumat produs Buton cumpărare", "admin/editor.productSummaryName.title": "Denumire rezumat produs", "admin/editor.product-summary-specification-badges.title": "Rezumat produs Badge-uri specificații", diff --git a/messages/th-TH.json b/messages/th-TH.json index 1698d6c6..fd59c7b7 100644 --- a/messages/th-TH.json +++ b/messages/th-TH.json @@ -2,6 +2,7 @@ "store/pricing.from": "ตั้งแต่", "store/pricing.to": "ถึง", "store/button-label": "ซื้อ", + "store/sponsored-badge.label": "ได้รับการสนับสนุน", "admin/editor.productSummary.title": "ภาพรวมผลิตภัณฑ์", "admin/editor.productSummary.description": "ภาพรวมผลิตภัณฑ์แสดงข้อมูลผลิตภัณฑ์หลัก", "admin/editor.productSummary.isOneClickBuy.title": "ควรเปลี่ยนเส้นทางไปยังหน้าชำระเงินหลังคลิกที่ซื้อ", @@ -37,6 +38,7 @@ "admin/editor.productSummaryImage.hoverImage.criteria.label": "ป้ายข้อความภาพโฮเวอร์", "admin/editor.productSummaryImage.hoverImage.criteria.matchCriteria": "เกณฑ์การค้นหาป้ายข้อความภาพโฮเวอร์ (ทุกประการ: หารูปภาพที่มีค่าตรงกันทุกประการกับชื่อที่กรอกไว้ในฟิลด์ \"ป้ายข้อความภาพโฮเวอร์\" | มี: หารูปภาพแรกที่มีข้อความที่กรอกไว้ในฟิลด์ \"ป้ายข้อความภาพโฮเวอร์\")", "admin/editor.productSummaryImage.hoverImage.criteria.index": "ดัชนีภาพโฮเวอร์", + "admin/editor.productSummaryName.sponsoredBadge.title": "ข้อความของแท็กผลิตภัณฑ์ที่ได้รับการสนับสนุน หากมี", "admin/editor.productSummaryBuyButton.title": "ปุ่มซื้อภาพรวมผลิตภัณฑ์", "admin/editor.productSummaryName.title": "ชื่อภาพรวมผลิตภัณฑ์", "admin/editor.product-summary-specification-badges.title": "ป้ายข้อกำหนดคุณลักษณะภาพรวมผลิตภัณฑ์", diff --git a/react/ProductSummaryName.tsx b/react/ProductSummaryName.tsx index 58b6b586..d260aa03 100644 --- a/react/ProductSummaryName.tsx +++ b/react/ProductSummaryName.tsx @@ -36,11 +36,13 @@ interface Props { * @default "h3" */ tag?: 'div' | 'h1' | 'h2' | 'h3' + sponsoredBadgeLabel: string classes?: CssHandlesTypes.CustomClasses } function ProductSummaryName({ showFieldsProps = defaultShowFields, + sponsoredBadgeLabel, tag = 'h3', classes, }: Props) { @@ -51,6 +53,8 @@ function ProductSummaryName({ const skuName = product?.sku?.name const brandName = product?.brand + const isSponsored = !!product?.advertisement?.adId + const containerClasses = `${handles.nameContainer} flex items-start justify-center pv6` const wrapperClasses = `${handles.nameWrapper} overflow-hidden c-on-base f5` const brandNameClasses = `${handles.brandName} t-body` @@ -64,6 +68,8 @@ function ProductSummaryName({ brandNameClass={brandNameClasses} skuNameClass={skuNameClasses} loaderClass={loaderClasses} + showSponsoredBadge={isSponsored} + sponsoredBadgeLabel={sponsoredBadgeLabel} productReferenceClass={handles.productReference} name={productName} skuName={skuName} diff --git a/react/package.json b/react/package.json index b1275c2e..9956fc2c 100644 --- a/react/package.json +++ b/react/package.json @@ -38,7 +38,7 @@ "vtex.render-runtime": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.132.4/public/@types/vtex.render-runtime", "vtex.responsive-values": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.responsive-values@0.4.2/public/@types/vtex.responsive-values", "vtex.search-page-context": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-page-context@0.2.0/public/@types/vtex.search-page-context", - "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.167.0/public/@types/vtex.store-components", + "vtex.store-components": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.170.0/public/@types/vtex.store-components", "vtex.store-resources": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.90.0/public/@types/vtex.store-resources", "vtex.structured-data": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.structured-data@0.11.0/public/@types/vtex.structured-data", "vtex.styleguide": "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.styleguide@9.146.4/public/@types/vtex.styleguide" diff --git a/react/yarn.lock b/react/yarn.lock index 593ded21..2d7df01b 100644 --- a/react/yarn.lock +++ b/react/yarn.lock @@ -5050,9 +5050,9 @@ verror@1.10.0: version "0.2.0" resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.search-page-context@0.2.0/public/@types/vtex.search-page-context#1b37f20648d8e4ff062ae9fffb0aa2718f172af7" -"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.167.0/public/@types/vtex.store-components": - version "3.167.0" - resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.167.0/public/@types/vtex.store-components#1abbb57f3a78dd19dbcd4a473012ac44e23fa7ff" +"vtex.store-components@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.170.0/public/@types/vtex.store-components": + version "3.170.0" + resolved "http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-components@3.170.0/public/@types/vtex.store-components#1f5673bc0b974862ed0a0c0e61cefefff1d472c6" "vtex.store-resources@http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store-resources@0.90.0/public/@types/vtex.store-resources": version "0.90.0" diff --git a/store/contentSchemas.json b/store/contentSchemas.json index 46c3bced..ee12e376 100644 --- a/store/contentSchemas.json +++ b/store/contentSchemas.json @@ -21,6 +21,11 @@ "$ref": "app:vtex.native-types#/definitions/text", "default": "store/pricing.from" }, + "sponsoredBadgeLabel": { + "title": "admin/editor.productSummaryName.sponsoredBadge.title", + "$ref": "app:vtex.native-types#/definitions/text", + "default": "store/sponsored-badge.label" + }, "trackListName": { "title": "admin/editor.productSummary.trackListName.title", "type": "boolean", diff --git a/store/interfaces.json b/store/interfaces.json index 98d30ab5..ab4fe1aa 100644 --- a/store/interfaces.json +++ b/store/interfaces.json @@ -52,7 +52,14 @@ } }, "product-summary-name": { - "component": "ProductSummaryName" + "component": "ProductSummaryName", + "content": { + "properties": { + "sponsoredBadgeLabel": { + "$ref": "app:vtex.product-summary#/definitions/ProductSummary/properties/sponsoredBadgeLabel" + } + } + } }, "product-summary-sku-name": { "component": "ProductSummarySKUName"