From 064373025d321346ac977b3b393f1fe80f70ed70 Mon Sep 17 00:00:00 2001 From: Eugene Kasimov <105315663+eugenekasimov@users.noreply.github.com> Date: Tue, 25 Oct 2022 09:03:05 -0700 Subject: [PATCH] [PDP] Add SKU block (#1987) Add SKU block to PDP --- assets/global.js | 10 +++++++ assets/section-main-product.css | 7 +++++ locales/bg-BG.json | 3 +- locales/cs.json | 3 +- locales/cs.schema.json | 34 ++++++++++++++++++++++ locales/da.json | 3 +- locales/da.schema.json | 34 ++++++++++++++++++++++ locales/de.json | 3 +- locales/de.schema.json | 34 ++++++++++++++++++++++ locales/el.json | 3 +- locales/en.default.json | 1 + locales/en.default.schema.json | 34 ++++++++++++++++++++++ locales/es.json | 3 +- locales/es.schema.json | 34 ++++++++++++++++++++++ locales/fi.json | 3 +- locales/fi.schema.json | 34 ++++++++++++++++++++++ locales/fr.json | 3 +- locales/fr.schema.json | 34 ++++++++++++++++++++++ locales/hr-HR.json | 3 +- locales/hu.json | 3 +- locales/id.json | 3 +- locales/it.json | 3 +- locales/it.schema.json | 34 ++++++++++++++++++++++ locales/ja.json | 3 +- locales/ja.schema.json | 34 ++++++++++++++++++++++ locales/ko.json | 3 +- locales/ko.schema.json | 34 ++++++++++++++++++++++ locales/lt-LT.json | 3 +- locales/nb.json | 3 +- locales/nb.schema.json | 34 ++++++++++++++++++++++ locales/nl.json | 3 +- locales/nl.schema.json | 34 ++++++++++++++++++++++ locales/pl.json | 3 +- locales/pl.schema.json | 34 ++++++++++++++++++++++ locales/pt-BR.json | 3 +- locales/pt-BR.schema.json | 34 ++++++++++++++++++++++ locales/pt-PT.json | 3 +- locales/pt-PT.schema.json | 34 ++++++++++++++++++++++ locales/ro-RO.json | 3 +- locales/ru.json | 3 +- locales/sk-SK.json | 3 +- locales/sl-SI.json | 3 +- locales/sv.json | 3 +- locales/sv.schema.json | 34 ++++++++++++++++++++++ locales/th.json | 3 +- locales/th.schema.json | 34 ++++++++++++++++++++++ locales/tr.json | 3 +- locales/tr.schema.json | 34 ++++++++++++++++++++++ locales/vi.json | 3 +- locales/vi.schema.json | 34 ++++++++++++++++++++++ locales/zh-CN.json | 3 +- locales/zh-CN.schema.json | 34 ++++++++++++++++++++++ locales/zh-TW.json | 3 +- locales/zh-TW.schema.json | 34 ++++++++++++++++++++++ sections/featured-product.liquid | 48 +++++++++++++++++++++++++------- sections/main-product.liquid | 36 ++++++++++++++++++++++++ 56 files changed, 866 insertions(+), 40 deletions(-) diff --git a/assets/global.js b/assets/global.js index 90ce804286f..dc1a790da6d 100644 --- a/assets/global.js +++ b/assets/global.js @@ -855,15 +855,22 @@ class VariantSelects extends HTMLElement { const html = new DOMParser().parseFromString(responseText, 'text/html') const destination = document.getElementById(`price-${this.dataset.section}`); const source = html.getElementById(`price-${this.dataset.originalSection ? this.dataset.originalSection : this.dataset.section}`); + const skuSource = html.getElementById(`Sku-${this.dataset.originalSection ? this.dataset.originalSection : this.dataset.section}`); + const skuDestination = document.getElementById(`Sku-${this.dataset.section}`); const variantPickerDestination = document.getElementById(`variant-radios-${this.dataset.section}`) || document.getElementById(`variant-selects-${this.dataset.section}`); const variantPickerSource = html.getElementById(`variant-radios-${this.dataset.originalSection ? this.dataset.originalSection : this.dataset.section}`) || html.getElementById(`variant-selects-${this.dataset.originalSection ? this.dataset.originalSection : this.dataset.section}`); if (source && destination) destination.innerHTML = source.innerHTML; if (variantPickerSource && variantPickerDestination) variantPickerDestination.innerHTML = variantPickerSource.innerHTML; + if (skuSource && skuDestination) { + skuDestination.innerHTML = skuSource.innerHTML; + skuDestination.classList.toggle('visibility-hidden', skuSource.classList.contains('visibility-hidden')); + } const price = document.getElementById(`price-${this.dataset.section}`); if (price) price.classList.remove('visibility-hidden'); + this.toggleAddButton(!this.currentVariant.available, window.variantStrings.soldOut); document.querySelector('variant-radios') ? this.querySelector(`[for="${activeElementId}"]`).focus() : this.querySelector(`#${activeElementId}`).focus(); @@ -893,9 +900,12 @@ class VariantSelects extends HTMLElement { const addButton = button.querySelector('[name="add"]'); const addButtonText = button.querySelector('[name="add"] > span'); const price = document.getElementById(`price-${this.dataset.section}`); + const sku = document.getElementById(`Sku-${this.dataset.section}`); + if (!addButton) return; addButtonText.textContent = window.variantStrings.unavailable; if (price) price.classList.add('visibility-hidden'); + if (sku) sku.classList.add('visibility-hidden'); } getVariantData() { diff --git a/assets/section-main-product.css b/assets/section-main-product.css index 743937bb19e..941c88398f2 100644 --- a/assets/section-main-product.css +++ b/assets/section-main-product.css @@ -406,6 +406,7 @@ a.product__text { .product--no-media .product__text, .product--no-media noscript .product-form__input, .product--no-media .product__tax, +.product--no-media .product__sku, .product--no-media shopify-payment-terms { text-align: center; } @@ -1322,6 +1323,12 @@ a.product__text { margin-bottom: var(--icon-size); } +/* SKU block */ + +.product__sku.visibility-hidden::after { + content: "#"; +} + /* Product-thumbnail snippet */ .product-media-container { diff --git a/locales/bg-BG.json b/locales/bg-BG.json index a9086119be0..b3a94d6f056 100644 --- a/locales/bg-BG.json +++ b/locales/bg-BG.json @@ -152,7 +152,8 @@ "choose_options": "Изберете опции", "choose_product_options": "Изберете опции за {{ product_name }}", "value_unavailable": "{{ option_value }} [Неналично]", - "variant_sold_out_or_unavailable": "Вариантът е изчерпан или неналичен." + "variant_sold_out_or_unavailable": "Вариантът е изчерпан или неналичен.", + "sku": "SKU" }, "modal": { "label": "Мултимедийна галерия" diff --git a/locales/cs.json b/locales/cs.json index ba4291d3374..3bc9005216b 100644 --- a/locales/cs.json +++ b/locales/cs.json @@ -154,7 +154,8 @@ "choose_options": "Výběr možností", "choose_product_options": "Zvolte možnosti pro: {{ product_name }}", "value_unavailable": "{{ option_value }} [nedostupné]", - "variant_sold_out_or_unavailable": "Vyprodaná nebo nedostupná varianta" + "variant_sold_out_or_unavailable": "Vyprodaná nebo nedostupná varianta", + "sku": "SKU" }, "modal": { "label": "Galerie multimédií" diff --git a/locales/cs.schema.json b/locales/cs.schema.json index d1d2f247d5f..ee9109e4880 100644 --- a/locales/cs.schema.json +++ b/locales/cs.schema.json @@ -1813,6 +1813,23 @@ "label": "Třetí nadpis" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Textový styl", + "options__1": { + "label": "Hlavní část" + }, + "options__2": { + "label": "Podtitul" + }, + "options__3": { + "label": "Velká písmena" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Pokud chcete zobrazovat hodnocení, přidejte si aplikaci pro hodnocení produktů. [Zjistit více](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Textový styl", + "options__1": { + "label": "Hlavní část" + }, + "options__2": { + "label": "Podtitul" + }, + "options__3": { + "label": "Velká písmena" + } + } + } } }, "settings": { diff --git a/locales/da.json b/locales/da.json index d17d41a279e..bdef1529ed1 100644 --- a/locales/da.json +++ b/locales/da.json @@ -152,7 +152,8 @@ "choose_options": "Vælg muligheder", "choose_product_options": "Vælg muligheder for {{ product_name }}", "value_unavailable": "{{ option_value }} [Utilgængelig]", - "variant_sold_out_or_unavailable": "Varianten er udsolgt eller utilgængelig" + "variant_sold_out_or_unavailable": "Varianten er udsolgt eller utilgængelig", + "sku": "SKU" }, "modal": { "label": "Mediegalleri" diff --git a/locales/da.schema.json b/locales/da.schema.json index 85955798443..2ccb3c00416 100644 --- a/locales/da.schema.json +++ b/locales/da.schema.json @@ -1813,6 +1813,23 @@ "label": "Tredje overskrift" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Teksttypografi", + "options__1": { + "label": "Brødtekst" + }, + "options__2": { + "label": "Underoverskrift" + }, + "options__3": { + "label": "Store bogstaver" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Hvis du vil vise bedømmelser, skal du tilføje en app til produktbedømmelse. [Få mere at vide](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Teksttypografi", + "options__1": { + "label": "Brødtekst" + }, + "options__2": { + "label": "Underoverskrift" + }, + "options__3": { + "label": "Store bogstaver" + } + } + } } }, "settings": { diff --git a/locales/de.json b/locales/de.json index 54c1a750949..a4a15eeb26a 100644 --- a/locales/de.json +++ b/locales/de.json @@ -152,7 +152,8 @@ "choose_options": "Optionen auswählen", "choose_product_options": "Optionen für {{ product_name }} auswählen", "value_unavailable": "{{ option_value }} [Nicht verfügbar]", - "variant_sold_out_or_unavailable": "Variante ausverkauft oder nicht verfügbar" + "variant_sold_out_or_unavailable": "Variante ausverkauft oder nicht verfügbar", + "sku": "SKU" }, "modal": { "label": "Medien-Galerie" diff --git a/locales/de.schema.json b/locales/de.schema.json index 07a52b5e061..50a20fe27b9 100644 --- a/locales/de.schema.json +++ b/locales/de.schema.json @@ -1812,6 +1812,23 @@ "label": "Dritte Überschrift" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Textstil", + "options__1": { + "label": "Nachricht" + }, + "options__2": { + "label": "Untertitel" + }, + "options__3": { + "label": "Großbuchstaben" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Um eine Bewertung anzuzeigen, musst du eine Produktbewertungs-App hinzufügen. [Mehr Informationen](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Textstil", + "options__1": { + "label": "Nachricht" + }, + "options__2": { + "label": "Untertitel" + }, + "options__3": { + "label": "Großbuchstaben" + } + } + } } }, "settings": { diff --git a/locales/el.json b/locales/el.json index 807f15e4109..fd4be896cb5 100644 --- a/locales/el.json +++ b/locales/el.json @@ -152,7 +152,8 @@ "choose_options": "Ορίστε επιλογές", "choose_product_options": "Ορίστε επιλογές για {{ product_name }}", "value_unavailable": "{{ option_value }} [Μη διαθέσιμο]", - "variant_sold_out_or_unavailable": "Η παραλλαγή εξαντλήθηκε ή δεν είναι διαθέσιμη" + "variant_sold_out_or_unavailable": "Η παραλλαγή εξαντλήθηκε ή δεν είναι διαθέσιμη", + "sku": "SKU" }, "modal": { "label": "Συλλογή μέσων" diff --git a/locales/en.default.json b/locales/en.default.json index 76e7997ba18..6a52a83a9df 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -108,6 +108,7 @@ "choose_options": "Choose options", "choose_product_options": "Choose options for {{ product_name }}", "description": "Description", + "sku": "SKU", "on_sale": "Sale", "product_variants": "Product variants", "media": { diff --git a/locales/en.default.schema.json b/locales/en.default.schema.json index 6d0e5397817..0c5d6463962 100644 --- a/locales/en.default.schema.json +++ b/locales/en.default.schema.json @@ -799,6 +799,23 @@ } } }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Text style", + "options__1": { + "label": "Body" + }, + "options__2": { + "label": "Subtitle" + }, + "options__3": { + "label": "Uppercase" + } + } + } + }, "description": { "name": "Description" }, @@ -1677,6 +1694,23 @@ "description": { "name": "Description" }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Text style", + "options__1": { + "label": "Body" + }, + "options__2": { + "label": "Subtitle" + }, + "options__3": { + "label": "Uppercase" + } + } + } + }, "share": { "name": "Share", "settings": { diff --git a/locales/es.json b/locales/es.json index 76cace7c491..b554ddcb9a8 100644 --- a/locales/es.json +++ b/locales/es.json @@ -153,7 +153,8 @@ "choose_options": "Seleccionar opciones", "choose_product_options": "Elegir opciones para {{ product_name }}", "value_unavailable": "{{ option_value }} (no disponible)", - "variant_sold_out_or_unavailable": "Variante agotada o no disponible" + "variant_sold_out_or_unavailable": "Variante agotada o no disponible", + "sku": "SKU" }, "modal": { "label": "Galería multimedia" diff --git a/locales/es.schema.json b/locales/es.schema.json index 0286a1af238..5ec004d287b 100644 --- a/locales/es.schema.json +++ b/locales/es.schema.json @@ -1813,6 +1813,23 @@ "label": "Tercer encabezado" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Cuerpo" + }, + "options__2": { + "label": "Subtítulo" + }, + "options__3": { + "label": "Mayúscula" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Agrega una aplicación para mostrar las calificaciones de los productos. [Más información](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Cuerpo" + }, + "options__2": { + "label": "Subtítulo" + }, + "options__3": { + "label": "Mayúscula" + } + } + } } }, "settings": { diff --git a/locales/fi.json b/locales/fi.json index e072146721c..fd77bffc1e8 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -152,7 +152,8 @@ "choose_options": "Valitse vaihtoehdot", "choose_product_options": "Valitse vaihtoehtoja tuotteelle {{ product_name }}", "value_unavailable": "{{ option_value }} [ei saatavilla]", - "variant_sold_out_or_unavailable": "Versio on loppuunmyyty tai ei saatavilla" + "variant_sold_out_or_unavailable": "Versio on loppuunmyyty tai ei saatavilla", + "sku": "SKU-koodi" }, "modal": { "label": "Mediagalleria" diff --git a/locales/fi.schema.json b/locales/fi.schema.json index ced6a5c76fc..b4cc8787ba0 100644 --- a/locales/fi.schema.json +++ b/locales/fi.schema.json @@ -1812,6 +1812,23 @@ "label": "Kolmas otsikko" } } + }, + "sku": { + "name": "SKU-koodi", + "settings": { + "text_style": { + "label": "Tekstityyli", + "options__1": { + "label": "Leipäteksti" + }, + "options__2": { + "label": "Alaotsikko" + }, + "options__3": { + "label": "Isot kirjaimet" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Näytä luokitus lisäämällä tuotearviointisovellus. [Lisätietoja](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU-koodi", + "settings": { + "text_style": { + "label": "Tekstityyli", + "options__1": { + "label": "Leipäteksti" + }, + "options__2": { + "label": "Alaotsikko" + }, + "options__3": { + "label": "Isot kirjaimet" + } + } + } } }, "settings": { diff --git a/locales/fr.json b/locales/fr.json index 351378a354d..7ce451a18f3 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -153,7 +153,8 @@ "choose_options": "Choisir des options", "choose_product_options": "Choisir des options pour {{ product_name }}", "value_unavailable": "{{ option_value }} [Indisponible]", - "variant_sold_out_or_unavailable": "Variante épuisée ou indisponible" + "variant_sold_out_or_unavailable": "Variante épuisée ou indisponible", + "sku": "SKU" }, "modal": { "label": "Galerie de supports multimédias" diff --git a/locales/fr.schema.json b/locales/fr.schema.json index 4fb55d4d591..26700fa991a 100644 --- a/locales/fr.schema.json +++ b/locales/fr.schema.json @@ -1812,6 +1812,23 @@ "label": "Troisième titre" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Style de texte", + "options__1": { + "label": "Corps" + }, + "options__2": { + "label": "Sous‑titre" + }, + "options__3": { + "label": "Majuscule" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Pour afficher une évaluation, ajoutez une application d'évaluation de produits. [En savoir plus](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Style de texte", + "options__1": { + "label": "Corps" + }, + "options__2": { + "label": "Sous‑titre" + }, + "options__3": { + "label": "Majuscule" + } + } + } } }, "settings": { diff --git a/locales/hr-HR.json b/locales/hr-HR.json index 3d8ca2d6e7f..8f65da1d3be 100644 --- a/locales/hr-HR.json +++ b/locales/hr-HR.json @@ -153,7 +153,8 @@ "choose_options": "Odaberite opcije", "choose_product_options": "Odaberite željene opcije za {{ product_name }}", "value_unavailable": "{{ option_value }} [Nedostupno]", - "variant_sold_out_or_unavailable": "Model je prodan ili nedostupan" + "variant_sold_out_or_unavailable": "Model je prodan ili nedostupan", + "sku": "Inventarna šifra proizvoda (SKU)" }, "modal": { "label": "Galerija medijskih zapisa" diff --git a/locales/hu.json b/locales/hu.json index 64e8866f7f7..cffdbd9faee 100644 --- a/locales/hu.json +++ b/locales/hu.json @@ -152,7 +152,8 @@ "choose_options": "Válassz a lehetőségek közül", "choose_product_options": "Termékváltozatok – {{ product_name }}", "value_unavailable": "{{ option_value }} [nincs készleten]", - "variant_sold_out_or_unavailable": "A változat elfogyott vagy nincs készleten" + "variant_sold_out_or_unavailable": "A változat elfogyott vagy nincs készleten", + "sku": "Termékváltozat" }, "modal": { "label": "Médiatár" diff --git a/locales/id.json b/locales/id.json index c6ce130bb6c..db32f207ced 100644 --- a/locales/id.json +++ b/locales/id.json @@ -152,7 +152,8 @@ "choose_options": "Pilih opsi", "choose_product_options": "Pilih opsi untuk {{ product_name }}", "value_unavailable": "{{ option_value }} [Tidak Tersedia]", - "variant_sold_out_or_unavailable": "Varian terjual habis atau tidak tersedia" + "variant_sold_out_or_unavailable": "Varian terjual habis atau tidak tersedia", + "sku": "SKU" }, "modal": { "label": "Galeri media" diff --git a/locales/it.json b/locales/it.json index 477a90038a9..302471b3f01 100644 --- a/locales/it.json +++ b/locales/it.json @@ -153,7 +153,8 @@ "choose_options": "Scegli opzioni", "choose_product_options": "Scegli opzioni per {{ product_name }}", "value_unavailable": "{{ option_value }} [non disponibile]", - "variant_sold_out_or_unavailable": "Variante esaurita o non disponibile" + "variant_sold_out_or_unavailable": "Variante esaurita o non disponibile", + "sku": "SKU" }, "modal": { "label": "Galleria contenuti multimediali" diff --git a/locales/it.schema.json b/locales/it.schema.json index 1e672966024..32dae973704 100644 --- a/locales/it.schema.json +++ b/locales/it.schema.json @@ -1813,6 +1813,23 @@ "label": "Terzo titolo" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Stile testo", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Sottotitolo" + }, + "options__3": { + "label": "Maiuscolo" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Per mostrare una valutazione, aggiungi un'app di valutazione del prodotto. [Maggiori informazioni](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Stile testo", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Sottotitolo" + }, + "options__3": { + "label": "Maiuscolo" + } + } + } } }, "settings": { diff --git a/locales/ja.json b/locales/ja.json index c103cea5ff8..00184780321 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -152,7 +152,8 @@ "choose_options": "オプションを選択", "choose_product_options": "{{ product_name }}のオプションを選択する", "value_unavailable": "{{ option_value }}は販売できません", - "variant_sold_out_or_unavailable": "バリエーションは売り切れているか販売できません" + "variant_sold_out_or_unavailable": "バリエーションは売り切れているか販売できません", + "sku": "SKU" }, "modal": { "label": "メディアギャラリー" diff --git a/locales/ja.schema.json b/locales/ja.schema.json index 78820b28653..f8d14a24c49 100644 --- a/locales/ja.schema.json +++ b/locales/ja.schema.json @@ -1813,6 +1813,23 @@ "label": "3番目の見出し" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "テキストスタイル", + "options__1": { + "label": "本文" + }, + "options__2": { + "label": "サブタイトル" + }, + "options__3": { + "label": "大文字" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "評価を表示するには、商品評価アプリを追加します。[詳しくはこちら](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "テキストスタイル", + "options__1": { + "label": "本文" + }, + "options__2": { + "label": "サブタイトル" + }, + "options__3": { + "label": "大文字" + } + } + } } }, "settings": { diff --git a/locales/ko.json b/locales/ko.json index dba66d130f1..3f7d70c3b34 100644 --- a/locales/ko.json +++ b/locales/ko.json @@ -152,7 +152,8 @@ "choose_options": "옵션 선택하기", "choose_product_options": "{{ product_name }}의 옵션 선택", "value_unavailable": "{{ option_value }}[구매할 수 없음]", - "variant_sold_out_or_unavailable": "품절이거나 구매할 수 없는 이형 상품" + "variant_sold_out_or_unavailable": "품절이거나 구매할 수 없는 이형 상품", + "sku": "SKU(재고 관리 코드)" }, "modal": { "label": "미디어 갤러리" diff --git a/locales/ko.schema.json b/locales/ko.schema.json index fc368e4a756..e93a23798e7 100644 --- a/locales/ko.schema.json +++ b/locales/ko.schema.json @@ -1813,6 +1813,23 @@ "label": "세 번째 제목" } } + }, + "sku": { + "name": "SKU(재고 관리 코드)", + "settings": { + "text_style": { + "label": "텍스트 스타일", + "options__1": { + "label": "본문" + }, + "options__2": { + "label": "부제목" + }, + "options__3": { + "label": "대문자" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "평점을 표시하려면 제품 평점 앱을 추가하십시오. [자세히 알아보기](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU(재고 관리 코드)", + "settings": { + "text_style": { + "label": "텍스트 스타일", + "options__1": { + "label": "본문" + }, + "options__2": { + "label": "부제목" + }, + "options__3": { + "label": "대문자" + } + } + } } }, "settings": { diff --git a/locales/lt-LT.json b/locales/lt-LT.json index b46d7b40aa7..6213ec4414d 100644 --- a/locales/lt-LT.json +++ b/locales/lt-LT.json @@ -154,7 +154,8 @@ "choose_options": "Rinktis variantus", "choose_product_options": "Rinktis {{ product_name }} variantus", "value_unavailable": "{{ option_value }} [Neturime]", - "variant_sold_out_or_unavailable": "Prekė išparduota arba jos neturime" + "variant_sold_out_or_unavailable": "Prekė išparduota arba jos neturime", + "sku": "SKU kodas" }, "modal": { "label": "Medijų galerija" diff --git a/locales/nb.json b/locales/nb.json index 2ac84ef1f3e..bb8a593b8ed 100644 --- a/locales/nb.json +++ b/locales/nb.json @@ -152,7 +152,8 @@ "choose_options": "Velg alternativer", "choose_product_options": "Velg alternativer for {{ product_name }}", "value_unavailable": "{{ option_value }} [Utilgjengelig]", - "variant_sold_out_or_unavailable": "Varianten er utsolgt eller utilgjengelig" + "variant_sold_out_or_unavailable": "Varianten er utsolgt eller utilgjengelig", + "sku": "SKU" }, "modal": { "label": "Mediegalleri" diff --git a/locales/nb.schema.json b/locales/nb.schema.json index 403c81ed3d3..98dc3c4e454 100644 --- a/locales/nb.schema.json +++ b/locales/nb.schema.json @@ -1812,6 +1812,23 @@ "label": "Tredje overskrift" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Tekststil", + "options__1": { + "label": "Brødtekst" + }, + "options__2": { + "label": "Undertekst" + }, + "options__3": { + "label": "Store bokstaver" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Legg til en produktvurderingsapp for å vise en vurdering. [Finn ut mer](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Tekststil", + "options__1": { + "label": "Brødtekst" + }, + "options__2": { + "label": "Undertekst" + }, + "options__3": { + "label": "Store bokstaver" + } + } + } } }, "settings": { diff --git a/locales/nl.json b/locales/nl.json index 672ebfccb57..6b1998135cb 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -152,7 +152,8 @@ "choose_options": "Opties kiezen", "choose_product_options": "Opties kiezen voor {{ product_name }}", "value_unavailable": "{{ option_value }} [Niet beschikbaar]", - "variant_sold_out_or_unavailable": "Variant uitverkocht of niet beschikbaar" + "variant_sold_out_or_unavailable": "Variant uitverkocht of niet beschikbaar", + "sku": "SKU" }, "modal": { "label": "Mediagalerij" diff --git a/locales/nl.schema.json b/locales/nl.schema.json index 19d3ac0a3e0..30df31b3a00 100644 --- a/locales/nl.schema.json +++ b/locales/nl.schema.json @@ -1813,6 +1813,23 @@ "label": "Derde opschrift" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Tekststijl", + "options__1": { + "label": "Hoofdtekst" + }, + "options__2": { + "label": "Ondertitel" + }, + "options__3": { + "label": "Hoofdletters" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Voeg een app toe voor productbeoordelingen om deze weer te geven. [Meer informatie](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Tekststijl", + "options__1": { + "label": "Hoofdtekst" + }, + "options__2": { + "label": "Ondertitel" + }, + "options__3": { + "label": "Hoofdletters" + } + } + } } }, "settings": { diff --git a/locales/pl.json b/locales/pl.json index f859aac6540..55072ca2b96 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -154,7 +154,8 @@ "choose_options": "Wybierz opcje", "choose_product_options": "Wybierz opcje dla {{ product_name }}", "value_unavailable": "{{ option_value }} [niedostępne]", - "variant_sold_out_or_unavailable": "Wariant wyprzedany lub niedostępny" + "variant_sold_out_or_unavailable": "Wariant wyprzedany lub niedostępny", + "sku": "SKU" }, "modal": { "label": "Galeria multimediów" diff --git a/locales/pl.schema.json b/locales/pl.schema.json index 5e9f50d3cb8..5eacfc2619e 100644 --- a/locales/pl.schema.json +++ b/locales/pl.schema.json @@ -1813,6 +1813,23 @@ "label": "Trzeci nagłówek" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Styl tekstu", + "options__1": { + "label": "Tekst podstawowy" + }, + "options__2": { + "label": "Podtytuł" + }, + "options__3": { + "label": "Duże litery" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Aby wyświetlić ocenę, dodaj aplikację do oceny produktów. [Dowiedz się więcej](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Styl tekstu", + "options__1": { + "label": "Tekst podstawowy" + }, + "options__2": { + "label": "Podtytuł" + }, + "options__3": { + "label": "Duże litery" + } + } + } } }, "settings": { diff --git a/locales/pt-BR.json b/locales/pt-BR.json index 970e413ab52..745803193b0 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -153,7 +153,8 @@ "choose_options": "Escolher opções", "choose_product_options": "Escolha opções para {{ product_name }}", "value_unavailable": "{{ option_value }} (indisponível)", - "variant_sold_out_or_unavailable": "Variante esgotada ou indisponível" + "variant_sold_out_or_unavailable": "Variante esgotada ou indisponível", + "sku": "SKU" }, "modal": { "label": "Galeria de mídia" diff --git a/locales/pt-BR.schema.json b/locales/pt-BR.schema.json index ed774ece39f..7ce07804184 100644 --- a/locales/pt-BR.schema.json +++ b/locales/pt-BR.schema.json @@ -1812,6 +1812,23 @@ "label": "Terceiro título" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Subtítulo" + }, + "options__3": { + "label": "Letras maiúsculas" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Para exibir uma avaliação, adicione um app com essa funcionalidade específica. [Saiba mais](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Subtítulo" + }, + "options__3": { + "label": "Letras maiúsculas" + } + } + } } }, "settings": { diff --git a/locales/pt-PT.json b/locales/pt-PT.json index 271c5800b97..6e05d5a0ea6 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -153,7 +153,8 @@ "choose_options": "Escolher opções", "choose_product_options": "Escolha opções para {{ product_name }}", "value_unavailable": "{{ option_value }} [Indisponível]", - "variant_sold_out_or_unavailable": "Variante esgotada ou indisponível" + "variant_sold_out_or_unavailable": "Variante esgotada ou indisponível", + "sku": "SKU" }, "modal": { "label": "Galeria de conteúdo multimédia" diff --git a/locales/pt-PT.schema.json b/locales/pt-PT.schema.json index b0d9db52052..328c162df9a 100644 --- a/locales/pt-PT.schema.json +++ b/locales/pt-PT.schema.json @@ -1813,6 +1813,23 @@ "label": "Terceiro título" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Legenda" + }, + "options__3": { + "label": "Maiúsculas" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Para mostrar uma classificação, adicione uma aplicação de classificação de produto. [Saber mais](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Estilo de texto", + "options__1": { + "label": "Corpo" + }, + "options__2": { + "label": "Legenda" + }, + "options__3": { + "label": "Maiúsculas" + } + } + } } }, "settings": { diff --git a/locales/ro-RO.json b/locales/ro-RO.json index 98f7c35fc7e..6c8eae4d2eb 100644 --- a/locales/ro-RO.json +++ b/locales/ro-RO.json @@ -153,7 +153,8 @@ "choose_options": "Alege opțiunile", "choose_product_options": "Alege opțiunile pentru {{ product_name }}", "value_unavailable": "{{ option_value }} [indisponibil]", - "variant_sold_out_or_unavailable": "Varianta are stocul epuizat sau este indisponibilă" + "variant_sold_out_or_unavailable": "Varianta are stocul epuizat sau este indisponibilă", + "sku": "SKU" }, "modal": { "label": "Galerie media" diff --git a/locales/ru.json b/locales/ru.json index 8fa4bf2093b..4a5489e2a5a 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -154,7 +154,8 @@ "choose_options": "Выберите варианты", "choose_product_options": "Выберите варианты для {{ product_name }}", "value_unavailable": "{{ option_value }} [Недоступно]", - "variant_sold_out_or_unavailable": "Вариант распродан или недоступен" + "variant_sold_out_or_unavailable": "Вариант распродан или недоступен", + "sku": "Артикул" }, "modal": { "label": "Галерея мультимедиа" diff --git a/locales/sk-SK.json b/locales/sk-SK.json index f470a1e800e..1a869a9ce29 100644 --- a/locales/sk-SK.json +++ b/locales/sk-SK.json @@ -154,7 +154,8 @@ "choose_options": "Vybrať možnosti", "choose_product_options": "Vyberte možnosti pre: {{ product_name }}", "value_unavailable": "{{ option_value }} [nedostupné]", - "variant_sold_out_or_unavailable": "Variant je vypredaný alebo nedostupný" + "variant_sold_out_or_unavailable": "Variant je vypredaný alebo nedostupný", + "sku": "Jednotka SKU" }, "modal": { "label": "Galéria médií" diff --git a/locales/sl-SI.json b/locales/sl-SI.json index 36204452516..0bf96fbbb7c 100644 --- a/locales/sl-SI.json +++ b/locales/sl-SI.json @@ -154,7 +154,8 @@ "choose_options": "Izberite možnosti", "choose_product_options": "Izberite možnosti za izdelek {{ product_name }}", "value_unavailable": "{{ option_value }} [ni na voljo]", - "variant_sold_out_or_unavailable": "Različica je razprodana ali ni na voljo" + "variant_sold_out_or_unavailable": "Različica je razprodana ali ni na voljo", + "sku": "Inventarna številka" }, "modal": { "label": "Galerija predstavnostnih vsebin" diff --git a/locales/sv.json b/locales/sv.json index f97a99e2dba..6c221f2e305 100644 --- a/locales/sv.json +++ b/locales/sv.json @@ -152,7 +152,8 @@ "choose_options": "Välj alternativ", "choose_product_options": "Välj alternativ för {{ product_name }}", "value_unavailable": "{{ option_value }} [Inte tillgänglig]", - "variant_sold_out_or_unavailable": "Varianten är slutsåld eller inte tillgänglig" + "variant_sold_out_or_unavailable": "Varianten är slutsåld eller inte tillgänglig", + "sku": "Lagerhållningsenhet" }, "modal": { "label": "Mediagalleri" diff --git a/locales/sv.schema.json b/locales/sv.schema.json index 9620e44b5a2..db52c7e1897 100644 --- a/locales/sv.schema.json +++ b/locales/sv.schema.json @@ -1813,6 +1813,23 @@ "label": "Tredje rubrik" } } + }, + "sku": { + "name": "Lagerhållningsenhet", + "settings": { + "text_style": { + "label": "Textstil", + "options__1": { + "label": "Brödtext" + }, + "options__2": { + "label": "Underrubrik" + }, + "options__3": { + "label": "Stora bokstäver" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Lägg till en produktbedömningsapp för att visa ett betyg. [Mer information](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "Lagerhållningsenhet", + "settings": { + "text_style": { + "label": "Textstil", + "options__1": { + "label": "Brödtext" + }, + "options__2": { + "label": "Underrubrik" + }, + "options__3": { + "label": "Stora bokstäver" + } + } + } } }, "settings": { diff --git a/locales/th.json b/locales/th.json index 428444d12ab..cf618a4c0e9 100644 --- a/locales/th.json +++ b/locales/th.json @@ -152,7 +152,8 @@ "choose_options": "เลือกตัวเลือก", "choose_product_options": "เลือกตัวเลือกสำหรับ {{ product_name }}", "value_unavailable": "{{ option_value }} [ไม่พร้อมใช้งาน]", - "variant_sold_out_or_unavailable": "ตัวเลือกสินค้าขายหมดแล้วหรือไม่พร้อมจำหน่าย" + "variant_sold_out_or_unavailable": "ตัวเลือกสินค้าขายหมดแล้วหรือไม่พร้อมจำหน่าย", + "sku": "SKU" }, "modal": { "label": "แกลเลอรีสื่อ" diff --git a/locales/th.schema.json b/locales/th.schema.json index 7a549e9c900..dd790e9f517 100644 --- a/locales/th.schema.json +++ b/locales/th.schema.json @@ -1813,6 +1813,23 @@ "label": "ส่วนหัวที่สาม" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "รูปแบบข้อความ", + "options__1": { + "label": "เนื้อหา" + }, + "options__2": { + "label": "หัวเรื่องย่อย" + }, + "options__3": { + "label": "ตัวพิมพ์ใหญ่" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "หากต้องการแสดงคะแนน ให้เพิ่มแอปการให้คะแนนสินค้า [ดูข้อมูลเพิ่มเติม](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "รูปแบบข้อความ", + "options__1": { + "label": "เนื้อหา" + }, + "options__2": { + "label": "หัวเรื่องย่อย" + }, + "options__3": { + "label": "ตัวพิมพ์ใหญ่" + } + } + } } }, "settings": { diff --git a/locales/tr.json b/locales/tr.json index f3d597d74ff..e462e8066fa 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -152,7 +152,8 @@ "choose_options": "Seçenekleri belirle", "choose_product_options": "{{ product_name }} için seçenekleri belirle", "value_unavailable": "{{ option_value }} [Kullanılamıyor]", - "variant_sold_out_or_unavailable": "Varyasyon tükendi veya kullanılamıyor" + "variant_sold_out_or_unavailable": "Varyasyon tükendi veya kullanılamıyor", + "sku": "SKU" }, "modal": { "label": "Medya galerisi" diff --git a/locales/tr.schema.json b/locales/tr.schema.json index 054728277fe..254f82f5411 100644 --- a/locales/tr.schema.json +++ b/locales/tr.schema.json @@ -1812,6 +1812,23 @@ "label": "Üçüncü başlık" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Metin stili", + "options__1": { + "label": "Gövde" + }, + "options__2": { + "label": "Alt yazı" + }, + "options__3": { + "label": "Büyük harf" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Puan göstermek için bir ürün puanlandırma uygulaması ekleyin. [Daha fazla bilgi edinin](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Metin stili", + "options__1": { + "label": "Gövde" + }, + "options__2": { + "label": "Alt yazı" + }, + "options__3": { + "label": "Büyük harf" + } + } + } } }, "settings": { diff --git a/locales/vi.json b/locales/vi.json index 87d6c4f8452..0c229b0a0cf 100644 --- a/locales/vi.json +++ b/locales/vi.json @@ -152,7 +152,8 @@ "choose_options": "Chọn các tùy chọn", "choose_product_options": "Chọn tùy chọn cho {{ product_name }}", "value_unavailable": "{{ option_value }} [Không còn hàng]", - "variant_sold_out_or_unavailable": "Mẫu mã đã bán hết hoặc không còn hàng" + "variant_sold_out_or_unavailable": "Mẫu mã đã bán hết hoặc không còn hàng", + "sku": "SKU" }, "modal": { "label": "Thư viện phương tiện" diff --git a/locales/vi.schema.json b/locales/vi.schema.json index fd2a39fd698..fcc9fb9f4a3 100644 --- a/locales/vi.schema.json +++ b/locales/vi.schema.json @@ -1813,6 +1813,23 @@ "label": "Tiêu đề thứ ba" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Kiểu văn bản", + "options__1": { + "label": "Nội dung" + }, + "options__2": { + "label": "Tiêu đề phụ" + }, + "options__3": { + "label": "Chữ viết hoa" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "Nếu muốn hiển thị thứ hạng, hãy thêm ứng dụng xếp hạng sản phẩm. [Tìm hiểu thêm](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "Kiểu văn bản", + "options__1": { + "label": "Nội dung" + }, + "options__2": { + "label": "Tiêu đề phụ" + }, + "options__3": { + "label": "Chữ viết hoa" + } + } + } } }, "settings": { diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 4d629ac967a..a18bf8326fb 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -152,7 +152,8 @@ "choose_options": "选择选项", "choose_product_options": "选择用于 {{ product_name }} 的选项", "value_unavailable": "{{ option_value }} [不可用]", - "variant_sold_out_or_unavailable": "多属性已售罄或不可用" + "variant_sold_out_or_unavailable": "多属性已售罄或不可用", + "sku": "SKU" }, "modal": { "label": "媒体图库" diff --git a/locales/zh-CN.schema.json b/locales/zh-CN.schema.json index 0939694480c..66d8cbee03d 100644 --- a/locales/zh-CN.schema.json +++ b/locales/zh-CN.schema.json @@ -1813,6 +1813,23 @@ "label": "第三个标题" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "文本样式", + "options__1": { + "label": "正文" + }, + "options__2": { + "label": "副标题" + }, + "options__3": { + "label": "大写" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "若要显示评分,请添加产品评分应用。[了解详细信息](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "SKU", + "settings": { + "text_style": { + "label": "文本样式", + "options__1": { + "label": "正文" + }, + "options__2": { + "label": "副标题" + }, + "options__3": { + "label": "大写" + } + } + } } }, "settings": { diff --git a/locales/zh-TW.json b/locales/zh-TW.json index a2fc014e7cc..d5621f1610f 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -152,7 +152,8 @@ "choose_options": "選擇選項", "choose_product_options": "選擇 {{ product_name }} 的選項", "value_unavailable": "{{ option_value }} [無法供貨]", - "variant_sold_out_or_unavailable": "子類已售罄或無法供貨" + "variant_sold_out_or_unavailable": "子類已售罄或無法供貨", + "sku": "存貨單位 (SKU)" }, "modal": { "label": "媒體庫" diff --git a/locales/zh-TW.schema.json b/locales/zh-TW.schema.json index d864b0b2815..40bbdd050d8 100644 --- a/locales/zh-TW.schema.json +++ b/locales/zh-TW.schema.json @@ -1813,6 +1813,23 @@ "label": "第三個標題" } } + }, + "sku": { + "name": "存貨單位 (SKU)", + "settings": { + "text_style": { + "label": "文字樣式", + "options__1": { + "label": "內文" + }, + "options__2": { + "label": "副標題" + }, + "options__3": { + "label": "大寫" + } + } + } } }, "settings": { @@ -2374,6 +2391,23 @@ "content": "新增產品評等應用程式,即可顯示評等。[瞭解詳情](https://help.shopify.com/manual/online-store/themes/theme-structure/theme-features#featured-product-rating)" } } + }, + "sku": { + "name": "存貨單位 (SKU)", + "settings": { + "text_style": { + "label": "文字樣式", + "options__1": { + "label": "內文" + }, + "options__2": { + "label": "副標題" + }, + "options__3": { + "label": "大寫" + } + } + } } }, "settings": { diff --git a/sections/featured-product.liquid b/sections/featured-product.liquid index ffd286c242c..00a2bc3bbbf 100644 --- a/sections/featured-product.liquid +++ b/sections/featured-product.liquid @@ -155,6 +155,15 @@ {%- endform -%} {%- endif -%} + {%- when 'sku' -%} +

+ {{ 'products.product.sku' | t }}: {{- product.selected_or_first_available_variant.sku -}} +

{%- when 'quantity_selector' -%}
{{ option.name }} - {% render 'product-variant-options', - product: product, - option: option, - block: block - %} + {% render 'product-variant-options', product: product, option: option, block: block %} {%- endfor -%}