bevang1999

featured-product.liquid

Nov 1st, 2021
190
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {%- assign product = all_products[section.settings.featured_product] -%}
  2. {%- assign current_variant = product.selected_or_first_available_variant -%}
  3. {%- assign featured_image = current_variant.featured_image | default: product.featured_image -%}
  4.  
  5. {%- if product == empty -%}
  6. {%- assign section_onboarding = true -%}
  7. {%- assign vendor = 'homepage.onboarding.product_vendor' | t -%}
  8. {%- assign title = 'homepage.onboarding.product_title' | t -%}
  9. {%- assign compare_at_price = 2999 -%}
  10. {%- assign price = 1999 -%}
  11. {%- else -%}
  12. {%- assign section_onboarding = false -%}
  13. {%- assign vendor = product.vendor -%}
  14. {%- assign title = product.title -%}
  15. {%- assign compare_at_price = current_variant.compare_at_price -%}
  16. {%- assign price = current_variant.price -%}
  17. {%- endif -%}
  18.  
  19. <div itemscope itemtype="http://schema.org/Product" id="ProductSection-{{ section.id }}" data-section-id="{{ section.id }}" data-section-type="product-template" data-image-zoom-type="" data-show-extra-tab="false" data-extra-tab-content="false" data-cart-enable-ajax="{{ settings.cart_enable_ajax }}" data-enable-history-state="false">
  20.  
  21. <meta itemprop="name" content="{{ title }}">
  22. <meta itemprop="url" content="{{ shop.url }}{{ product.url }}">
  23. <meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}">
  24.  
  25. <div class="grid product-single">
  26.  
  27. <div class="grid__item medium-up--one-half">
  28. {% unless section_onboarding %}
  29. {% for image in product.images %}
  30. {% capture img_id %}ProductImage-{{ image.id }}{% endcapture %}
  31. {% capture wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}
  32. {%- assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
  33.  
  34. {% include 'image-style' with image: image, width: 720, height: 600, small_style: true, wrapper_id: wrapper_id, img_id: img_id %}
  35.  
  36. <div id="{{ wrapper_id }}" class="product-single__featured-image-wrapper supports-js{% unless featured_image == image %} hidden{% endunless %}" data-image-id="{{ image.id }}">
  37. <div class="product-single__photos" data-image-id="{{ image.id }}" style="padding-top:{{ 1 | divided_by: image.aspect_ratio | times: 100}}%;">
  38. <img id="{{ img_id }}"
  39. class="product-single__photo lazyload{% unless featured_image == image %} lazypreload{% endunless %}"
  40. src="{{ image | img_url: '200x200' }}"
  41. data-src="{{ img_url }}"
  42. data-widths="[180, 360, 470, 600, 750, 940, 1080, 1296, 1512, 1728, 2048]"
  43. data-aspectratio="{{ image.aspect_ratio }}"
  44. data-sizes="auto"
  45. alt="{{ image.alt | escape }}">
  46. </div>
  47. {% if compare_at_price > price %}
  48. <span class="badge badge--sale"><span>{{ 'products.product.on_sale' | t }}</span></span>
  49. {% endif %}
  50. </div>
  51. {% endfor %}
  52.  
  53. <noscript>
  54. <img src="{{ featured_image | img_url: 'grande' }}" alt="{{ featured_image.alt | escape }}">
  55. </noscript>
  56. {% else %}
  57. {{ 'product-1' | placeholder_svg_tag: 'placeholder-svg' }}
  58. {% endunless %}
  59. </div>
  60.  
  61. <div class="grid__item medium-up--one-half{% if product.images.size == 0 and section_onboarding == false %} medium-up--push-one-half{% endif %}">
  62. <div class="product-single__meta small--text-center">
  63. <h1 class="product-single__title" itemprop="name">{{ title }}</h1>
  64.  
  65. {% if section.settings.vendor_show %}
  66. <p class="product-single__vendor" itemprop="brand">{{ vendor }}</p>
  67. {% endif %}
  68.  
  69. <p class="product-single__prices">
  70. {% if compare_at_price > price %}
  71. <span id="ComparePriceA11y" class="visually-hidden">{{ 'products.product.sale_price' | t }}</span>
  72. {% else %}
  73. <span class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
  74. {% endif %}
  75. <span id="ProductPrice" class="product-single__price" itemprop="price" content="{{ price | divided_by: 100.00 }}">
  76. {{ price | money }}
  77. </span>
  78.  
  79. {% if compare_at_price > price %}
  80. <span id="PriceA11y" class="visually-hidden">{{ 'products.product.regular_price' | t }}</span>
  81. <s class="product-single__price--compare" id="ComparePrice">
  82. {{ compare_at_price | money }}
  83. </s>
  84. {% endif %}
  85.  
  86. {% include 'product-unit-price', variant: current_variant, available: true %}
  87. </p>
  88.  
  89. {%- if cart.taxes_included or shop.shipping_policy.body != blank -%}
  90. <div class="product-single__policies rte">
  91. {%- if cart.taxes_included -%}
  92. {{ 'products.product.include_taxes' | t }}
  93. {%- endif -%}
  94. {%- if shop.shipping_policy.body != blank -%}
  95. {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
  96. {%- endif -%}
  97. </div>
  98. {%- endif -%}
  99.  
  100. <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
  101. <meta itemprop="priceCurrency" content="{{ cart.currency.iso_code }}">
  102.  
  103. <link itemprop="availability" href="http://schema.org/{% if current_variant.available %}InStock{% else %}OutOfStock{% endif %}">
  104.  
  105. {% unless product == empty %}
  106. {%- assign productClasses = 'product-form' -%}
  107. {%- if product.has_only_default_variant -%}
  108. {%- assign productClasses = productClasses | append: ' product-form--default-variant-only' -%}
  109. {%- endif -%}
  110.  
  111. {% form 'product', product, class: productClasses %}
  112. {{ form | payment_terms }}
  113. <select name="id" id="ProductSelect-{{ section.id }}" class="product-single__variants">
  114. {% for variant in product.variants %}
  115. {% if variant.available %}
  116. <option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} data-sku="{{ variant.sku }}" value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money_with_currency }}</option>
  117. {% else %}
  118. <option disabled="disabled">
  119. {{ variant.title }} - {{ 'products.product.sold_out' | t }}
  120. </option>
  121. {% endif %}
  122. {% endfor %}
  123. </select>
  124.  
  125. {% if section.settings.product_quantity_enable %}
  126. <div class="product-single__quantity">
  127. <label for="Quantity">{{ 'products.product.quantity' | t }}</label>
  128. <input type="number" id="Quantity" name="quantity" value="1" min="1">
  129. </div>
  130. {% endif %}
  131.  
  132. <div class="product-single__cart-submit-wrapper{% if section.settings.enable_payment_button %} product-single__shopify-payment-btn{% endif %}{% if section.settings.add_to_cart_width == 'full_width' %} product-form--full{% endif %}">
  133. <button type="submit" name="add" id="AddToCart" class="btn product-single__cart-submit{% if section.settings.add_to_cart_width == 'full_width' %} btn--full{% endif %}{% if section.settings.enable_payment_button %} shopify-payment-btn btn--secondary{% endif %}"
  134. {% unless current_variant.available %} disabled="disabled"{% endunless %} data-cart-url="{{ routes.cart_url }}">
  135. <span id="AddToCartText">
  136. {% if current_variant.available %}
  137. {{ 'products.product.add_to_cart' | t }}
  138. {% else %}
  139. {{ 'products.product.sold_out' | t }}
  140. {% endif %}
  141. </span>
  142. </button>
  143. {% if section.settings.enable_payment_button %}
  144. {{ form | payment_button }}
  145. {% endif %}
  146. </div>
  147.  
  148. {% endform %}
  149. {% else %}
  150. <div class="product-single__cart-submit-wrapper product-single__cart-submit-wrapper--onboarding">
  151. <button type="submit" name="add" id="AddToCart" class="btn product-single__cart-submit" disabled="disabled">
  152. <span id="AddToCartText">
  153. {{ 'products.product.sold_out' | t }}
  154. </span>
  155. </button>
  156. </div>
  157. {% endunless %}
  158.  
  159. </div>
  160.  
  161. <a class="product-single__full-details text-link"{% unless section_onboarding %} href="{{ product.url }}?variant={{ current_variant.id }}"{% endunless %}>
  162. {{ 'products.product.full_details' | t }} &#x2192;
  163. </a>
  164.  
  165. {% if section.settings.social_sharing_products %}
  166. {% include 'social-sharing', share_title: title, share_permalink: product.url, share_image: product %}
  167. {% endif %}
  168. </div>
  169. </div>
  170.  
  171. </div>
  172. </div>
  173.  
  174. {% unless product == empty %}
  175. <script type="application/json" id="ProductJson-{{ section.id }}">
  176. {{ product | json }}
  177. </script>
  178. {% endunless %}
  179.  
  180. <script>
  181. // Override default values of shop.strings for each template.
  182. // Alternate product templates can change values of
  183. // add to cart button, sold out, and unavailable states here.
  184. window.productStrings = {
  185. addToCart: {{ 'products.product.add_to_cart' | t | json }},
  186. soldOut: {{ 'products.product.sold_out' | t | json }},
  187. unavailable: {{ 'products.product.unavailable' | t | json }}
  188. }
  189. </script>
  190.  
  191.  
  192.  
  193. {% schema %}
  194. {
  195. "name": {
  196. "cs": "Propagovaný produkt",
  197. "da": "Fremhævet produkt",
  198. "de": "Vorgestelltes Produkt",
  199. "en": "Featured product",
  200. "es": "Producto destacado",
  201. "fi": "Esittelyssä oleva tuote",
  202. "fr": "Produit en vedette",
  203. "it": "Prodotto in primo piano",
  204. "ja": "おすすめ商品",
  205. "ko": "특별 상품",
  206. "nb": "Utvalgt produkt",
  207. "nl": "Uitgelicht product",
  208. "pl": "Polecany produkt",
  209. "pt-BR": "Produto em destaque",
  210. "pt-PT": "Produto em destaque",
  211. "sv": "Utvald produkt",
  212. "th": "สินค้าที่แนะนำ",
  213. "tr": "Öne çıkan ürün",
  214. "vi": "Sản phẩm nổi bật",
  215. "zh-CN": "特色产品",
  216. "zh-TW": "精選產品"
  217. },
  218. "settings": [
  219. {
  220. "type": "product",
  221. "id": "featured_product",
  222. "label": {
  223. "cs": "Produkt",
  224. "da": "Produkt",
  225. "de": "Produkte",
  226. "en": "Product",
  227. "es": "Producto",
  228. "fi": "Tuote",
  229. "fr": "Produit",
  230. "it": "Prodotto",
  231. "ja": "商品",
  232. "ko": "제품",
  233. "nb": "Produkt",
  234. "nl": "Product",
  235. "pl": "Produkt",
  236. "pt-BR": "Produto",
  237. "pt-PT": "Produto",
  238. "sv": "Produkt",
  239. "th": "สินค้า",
  240. "tr": "Ürün",
  241. "vi": "Sản phẩm",
  242. "zh-CN": "产品",
  243. "zh-TW": "產品"
  244. }
  245. },
  246. {
  247. "type": "checkbox",
  248. "id": "product_quantity_enable",
  249. "label": {
  250. "cs": "Zobrazit výběr množství",
  251. "da": "Vis antalsvælger",
  252. "de": "Mengenauswahl anzeigen",
  253. "en": "Show quantity selector",
  254. "es": "Mostrar selector de cantidad",
  255. "fi": "Näytä määrän valitsin",
  256. "fr": "Afficher le sélecteur de quantité",
  257. "it": "Mostra selettore quantità",
  258. "ja": "数量セレクターを表示する",
  259. "ko": "수량 선택기 표시",
  260. "nb": "Vis mengdevelger",
  261. "nl": "Hoeveelheidskiezer weergeven",
  262. "pl": "Pokaż selektor ilości",
  263. "pt-BR": "Exiba um seletor de quantidade",
  264. "pt-PT": "Mostrar um seletor de quantidade",
  265. "sv": "Visa kvantitetsväljare",
  266. "th": "แสดงตัวเลือกจำนวน",
  267. "tr": "Adet seçiciyi göster",
  268. "vi": "Hiển thị hộp chọn số lượng",
  269. "zh-CN": "显示数量选择器",
  270. "zh-TW": "顯示數量選擇器"
  271. }
  272. },
  273. {
  274. "type": "checkbox",
  275. "id": "vendor_show",
  276. "label": {
  277. "cs": "Zobrazit dodavatele",
  278. "da": "Vis leverandør",
  279. "de": "Anbieter anzeigen",
  280. "en": "Show vendor",
  281. "es": "Mostrar proveedor",
  282. "fi": "Näytä myyjä",
  283. "fr": "Afficher le distributeur",
  284. "it": "Mostra fornitore",
  285. "ja": "販売元を表示する",
  286. "ko": "공급업체 표시",
  287. "nb": "Vis leverandør",
  288. "nl": "Leverancier weergeven",
  289. "pl": "Pokaż dostawcę",
  290. "pt-BR": "Exibir fabricante",
  291. "pt-PT": "Mostrar fornecedor",
  292. "sv": "Visa säljare",
  293. "th": "แสดงผู้ขาย",
  294. "tr": "Satıcıyı göster",
  295. "vi": "Hiển thị nhà cung cấp",
  296. "zh-CN": "显示厂商",
  297. "zh-TW": "顯示廠商"
  298. }
  299. },
  300. {
  301. "type": "checkbox",
  302. "id": "social_sharing_products",
  303. "label": {
  304. "cs": "Zobrazit tlačítka pro sdílení na sociálních sítích",
  305. "da": "Vis knapper til deling på sociale medier",
  306. "de": "Buttons für Social Media anzeigen",
  307. "en": "Show social sharing buttons",
  308. "es": "Mostrar botones para compartir en redes sociales",
  309. "fi": "Näytä sosiaalisen median jakamispainikkeet",
  310. "fr": "Afficher les boutons de partage sur les médias sociaux",
  311. "it": "Mostra i pulsanti per la condivisione sui social",
  312. "ja": "ソーシャルメディアでの共有ボタンを表示する",
  313. "ko": "소셜 공유 버튼 표시",
  314. "nb": "Vis knapper for deling på sosiale medier",
  315. "nl": "Knoppen voor sociaal delen weergeven",
  316. "pl": "Pokaż przyciski udostępniania w mediach społecznościowych",
  317. "pt-BR": "Exibir botões de compartilhamento em redes sociais",
  318. "pt-PT": "Mostrar botões de partilha nas redes sociais",
  319. "sv": "Visa knappar för delning i sociala medier",
  320. "th": "แสดงปุ่มสำหรับแชร์ลงโซเชียล",
  321. "tr": "Sosyal medya paylaşım düğmelerini göster",
  322. "vi": "Hiển thị nút chia sẻ qua mạng xã hội",
  323. "zh-CN": "显示社交分享按钮",
  324. "zh-TW": "顯示社群分享按鈕"
  325. },
  326. "default": true,
  327. "info": {
  328. "cs": "Upravit účty na sociálních sítích v obecném nastavení",
  329. "da": "Rediger SoMe-konti i Generelle indstillinger",
  330. "de": "Bearbeite Social-Media-Konten in den allgemeinen Einstellungen",
  331. "en": "Edit social accounts in General settings",
  332. "es": "Editar cuentas de las redes sociales en la configuración General",
  333. "fi": "Muokkaa sosiaalisen median tilejä kohdassa Yleiset asetukset",
  334. "fr": "Modifier les comptes sociaux dans les paramètres généraux",
  335. "it": "Modifica gli account social nelle Impostazioni generali",
  336. "ja": "一般設定でSNSアカウントを編集する",
  337. "ko": "일반 설정에서 소셜 계정 수정",
  338. "nb": "Rediger sosiale kontoer i Generelle innstillinger",
  339. "nl": "Socialmedia-accounts in Algemene instellingen bewerken",
  340. "pl": "Edytuj konta społecznościowe w ustawieniach ogólnych",
  341. "pt-BR": "Edite as contas de redes sociais nas configurações gerais",
  342. "pt-PT": "Editar as contas de redes sociais nas definições gerais",
  343. "sv": "Redigera sociala konton i Allmänna inställningar",
  344. "th": "แก้ไขบัญชีผู้ใช้โซเชียลมีเดียในการตั้งค่าทั่วไป",
  345. "tr": "Genel ayarlardan sosyal medya hesaplarını düzenleyin",
  346. "vi": "Chỉnh sửa tài khoản mạng xã hội trong Cài đặt chung",
  347. "zh-CN": "在“通用”设置中编辑社交媒体账户",
  348. "zh-TW": "前往「一般」設定編輯社群帳戶"
  349. }
  350. },
  351. {
  352. "type": "header",
  353. "content": {
  354. "cs": "Tlačítko Přidat do košíku",
  355. "da": "Knappen Læg i indkøbskurven",
  356. "de": "Schaltfläche In den Warenkorb",
  357. "en": "Add to cart button",
  358. "es": "Añadir al carrito",
  359. "fi": "Lisää ostoskoriin -painike",
  360. "fr": "Bouton d'ajout au panier",
  361. "it": "Pulsante \"Aggiungi al carrello\"",
  362. "ja": "カートボタンに追加する",
  363. "ko": "카트 버튼에 추가",
  364. "nb": "Legg i handlekurv-knapp",
  365. "nl": "Knop aan winkelwagen toevoegen",
  366. "pl": "Przycisk Dodaj do koszyka",
  367. "pt-BR": "Botão Adicionar ao carrinho",
  368. "pt-PT": "Botão Adicionar ao carrinho",
  369. "sv": "Lägg i varukorgen-knappen",
  370. "th": "ปุ่มเพิ่มลงในตะกร้าสินค้า",
  371. "tr": "Sepete ekle düğmesi",
  372. "vi": "Thêm vào nút giỏ hàng",
  373. "zh-CN": "“添加到购物车”按钮",
  374. "zh-TW": "加入購物車按鈕"
  375. }
  376. },
  377. {
  378. "type": "checkbox",
  379. "id": "enable_payment_button",
  380. "label": {
  381. "cs": "Zobrazit dynamické tlačítko pokladny",
  382. "da": "Vis dynamisk betalingsknap",
  383. "de": "Dynamischen Checkout Button anzeigen",
  384. "en": "Show dynamic checkout button",
  385. "es": "Mostrar botón de pago dinámico",
  386. "fi": "Näytä dynaaminen kassapainike",
  387. "fr": "Afficher le bouton de paiement dynamique",
  388. "it": "Mostra pulsante di check-out dinamico",
  389. "ja": "動的チェックアウトボタンを表示する",
  390. "ko": "동적 결제 버튼 표시",
  391. "nb": "Vis dynamisk knapp for å gå til kassen",
  392. "nl": "Dynamische checkoutknop weergeven",
  393. "pl": "Pokaż dynamiczny przycisk realizacji zakupu",
  394. "pt-BR": "Exibir botão de checkout dinâmico",
  395. "pt-PT": "Mostrar o botão dinâmico de finalização da compra",
  396. "sv": "Visa dynamiska utcheckningsknappar",
  397. "th": "แสดงปุ่มชำระเงินแบบไดนามิก",
  398. "tr": "Dinamik ödeme düğmesini göster",
  399. "vi": "Hiển thị nút thanh toán nhanh",
  400. "zh-CN": "显示动态结账按钮",
  401. "zh-TW": "顯示動態結帳按鈕"
  402. },
  403. "info": {
  404. "cs": "Každý zákazník uvidí platební metodu, kterou ze všech metod dostupných v obchodě (například PayPal nebo Apple Pay) nejvíce preferuje. [Další informace](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  405. "da": "Den enkelte kunde vil se sin foretrukne betalingsmetode blandt dem, der er tilgængelige i din butik, f.eks. PayPal eller Apple Pay. [Få mere at vide](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  406. "de": "Jeder Kunde sieht seine bevorzugte Zahlungsmethode aus den in deinem Shop verfügbaren Zahlungsmethoden wie PayPal oder Apple Pay. [Mehr Informationen](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  407. "en": "Each customer will see their preferred payment method from those available on your store, such as PayPal or Apple Pay. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  408. "es": "Cada cliente verá su forma de pago preferida entre las disponibles en tu tienda, como PayPal o Apple Pay. [Más información](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  409. "fi": "Kukin asiakas näkee ensisijaisen valintansa kauppasi tarjoamista maksutavoista, esim. PayPal tai Apple Pay. [Lisätietoja](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  410. "fr": "Chaque client verra son moyen de paiement préféré parmi ceux qui sont proposés sur votre boutique, tels que PayPal ou Apple Pay. [En savoir plus](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  411. "it": "Ogni cliente vedrà il suo metodo di pagamento preferito tra quelli disponibili nel tuo negozio, come PayPal o Apple Pay. [Maggiori informazioni](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  412. "ja": "PayPalやApple Payなど、ストアで利用可能なお好みの決済方法がお客様に表示されます。[詳しくはこちら](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  413. "ko": "각 고객은 PayPal 또는 Apple Pay와 같이 스토어에서 사용 가능한 기본 결제 방법을 확인할 수 있습니다. [자세히 알아보기](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  414. "nb": "Hver enkelt kunde vil se sin foretrukne betalingsmåte blant de som er tilgjengelig i butikken din, som PayPal eller Apple Pay. [Finn ut mer](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  415. "nl": "Elke klant ziet zijn of haar beschikbare voorkeursmethode om af te rekenen, zoals PayPal of Apple Pay. [Meer informatie](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  416. "pl": "Każdy klient zobaczy swoją preferowaną metodę płatności wśród metod dostępnych w Twoim sklepie, np. PayPal lub Apple Pay. [Dowiedz się więcej](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  417. "pt-BR": "Cada cliente verá a forma de pagamento preferencial dentre as disponíveis na loja, como PayPal ou Apple Pay. [Saiba mais](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  418. "pt-PT": "Cada cliente irá ver o seu método de pagamento preferido entre os disponíveis na loja, como o PayPal ou Apple Pay. [Saiba mais](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  419. "sv": "Varje kund kommer att se den föredragna betalningsmetoden från de som finns tillgängliga i din butik, till exempel PayPal eller Apple Pay. [Läs mer](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  420. "th": "ลูกค้าแต่ละรายจะเห็นวิธีการชำระเงินที่ต้องการจากวิธีที่ใช้ได้ในร้านค้าของคุณ เช่น PayPal หรือ Apple Pay [ดูข้อมูลเพิ่มเติม](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  421. "tr": "Her müşteri, mağazanızda sunulanlar arasından tercih ettikleri ödeme yöntemini görür (ör. PayPal veya Apple Pay). [Daha fazla bilgi edinin](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  422. "vi": "Mỗi khách hàng sẽ thấy phương thức thanh toán ưu tiên trong những phương thức thanh toán được hỗ trợ tại cửa hàng như PayPal hoặc Apple Pay. [Tìm hiểu thêm](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  423. "zh-CN": "每位客户都可在您商店提供的付款方式中看到他们的首选付款方式,例如 PayPal 或 Apple Pay。[了解详细信息](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
  424. "zh-TW": "每位顧客都可以從您商店可用的付款方式中看到他們偏好的付款方式 (如 PayPal、Apple Pay 等)。[深入瞭解](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)"
  425. },
  426. "default": true
  427. },
  428. {
  429. "type": "select",
  430. "id": "add_to_cart_width",
  431. "label": {
  432. "cs": "Velikost tlačítka",
  433. "da": "Knapstørrelse",
  434. "de": "Schaltflächengröße",
  435. "en": "Button size",
  436. "es": "Tamaño del botón",
  437. "fi": "Painikkeen koko",
  438. "fr": "Taille du bouton",
  439. "it": "Dimensione pulsante",
  440. "ja": "ボタンのサイズ",
  441. "ko": "버튼 사이즈",
  442. "nb": "Knappestørrelse",
  443. "nl": "Afmeting knop",
  444. "pl": "Rozmiar przycisku",
  445. "pt-BR": "Tamanho do botão",
  446. "pt-PT": "Tamanho do botão",
  447. "sv": "Knappstorlek",
  448. "th": "ขนาดปุ่ม",
  449. "tr": "Düğme boyutu",
  450. "vi": "Cỡ nút",
  451. "zh-CN": "按钮大小",
  452. "zh-TW": "按鈕尺寸"
  453. },
  454. "options": [
  455. {
  456. "value": "regular",
  457. "label": {
  458. "cs": "Standardní",
  459. "da": "Almindelig",
  460. "de": "Regulär",
  461. "en": "Regular",
  462. "es": "Normal",
  463. "fi": "Normaali",
  464. "fr": "Normal",
  465. "it": "Regolare",
  466. "ja": "通常",
  467. "ko": "일반",
  468. "nb": "Vanlig",
  469. "nl": "Standaard",
  470. "pl": "Zwykły",
  471. "pt-BR": "Regular",
  472. "pt-PT": "Normal",
  473. "sv": "Regelbunden",
  474. "th": "ปกติ",
  475. "tr": "Normal",
  476. "vi": "Thông thường",
  477. "zh-CN": "一般设置",
  478. "zh-TW": "標準"
  479. }
  480. },
  481. {
  482. "value": "full_width",
  483. "label": {
  484. "cs": "Plná šířka",
  485. "da": "Fuld bredde",
  486. "de": "Volle Breite",
  487. "en": "Full width",
  488. "es": "Ancho completo",
  489. "fi": "Täysi leveys",
  490. "fr": "Pleine largeur",
  491. "it": "Intera larghezza",
  492. "ja": "全幅",
  493. "ko": "전체 폭",
  494. "nb": "Full bredde",
  495. "nl": "Volledige breedte",
  496. "pl": "Pełna szerokość",
  497. "pt-BR": "Largura completa",
  498. "pt-PT": "Largura total",
  499. "sv": "Full bredd",
  500. "th": "เต็มความกว้าง",
  501. "tr": "Tam genişlik",
  502. "vi": "Độ rộng đầy đủ",
  503. "zh-CN": "全宽",
  504. "zh-TW": "全寬度"
  505. }
  506. }
  507. ]
  508. }
  509. ],
  510. "presets": [
  511. {
  512. "name": {
  513. "cs": "Propagovaný produkt",
  514. "da": "Fremhævet produkt",
  515. "de": "Vorgestelltes Produkt",
  516. "en": "Featured product",
  517. "es": "Producto destacado",
  518. "fi": "Esittelyssä oleva tuote",
  519. "fr": "Produit en vedette",
  520. "it": "Prodotto in primo piano",
  521. "ja": "おすすめ商品",
  522. "ko": "특별 상품",
  523. "nb": "Utvalgt produkt",
  524. "nl": "Uitgelicht product",
  525. "pl": "Polecany produkt",
  526. "pt-BR": "Produto em destaque",
  527. "pt-PT": "Produto em destaque",
  528. "sv": "Utvald produkt",
  529. "th": "สินค้าที่แนะนำ",
  530. "tr": "Öne çıkan ürün",
  531. "vi": "Sản phẩm nổi bật",
  532. "zh-CN": "特色产品",
  533. "zh-TW": "精選產品"
  534. },
  535. "category": {
  536. "cs": "Produkt",
  537. "da": "Produkt",
  538. "de": "Produkte",
  539. "en": "Product",
  540. "es": "Producto",
  541. "fi": "Tuote",
  542. "fr": "Produit",
  543. "it": "Prodotto",
  544. "ja": "商品",
  545. "ko": "제품",
  546. "nb": "Produkt",
  547. "nl": "Product",
  548. "pl": "Produkt",
  549. "pt-BR": "Produto",
  550. "pt-PT": "Produto",
  551. "sv": "Produkt",
  552. "th": "สินค้า",
  553. "tr": "Ürün",
  554. "vi": "Sản phẩm",
  555. "zh-CN": "产品",
  556. "zh-TW": "產品"
  557. }
  558. }
  559. ],
  560. "blocks": []
  561. }
  562. {% endschema %}
  563.  
RAW Paste Data