$product = {"id":7407779577955,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-14-plus-mod-nx-printable-yf05","description":null,"published_at":"2024-06-11T16:23:05+08:00","created_at":"2024-05-03T10:50:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41878744137827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470374125667,"product_id":7407779577955,"position":9,"created_at":"2024-05-03T10:51:14+08:00","updated_at":"2024-05-03T10:51:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674","variant_ids":[41878744137827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF05","featured_media":{"alt":null,"id":23875277357155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038d36c667dd79073cce0ab85a214f2c57d7810_a3488964-4df8-479d-8d16-e57f2fd0ca9c.webp?v=1714704653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3973547e98217a53c02289bd9a08764f024f945b_75d928df-2076-4dd2-a193-820005b63518.webp?v=1714704656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa335e465c146358e4c66c84dcbeab20fa3db2d6_cd4fbbc6-b17a-4716-b098-e8d59c27dec0.webp?v=1714704659","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf721698563df06539dbf15e8e66e2225d57235_7a03e388-9ead-4a78-9cb2-64708f286e25.webp?v=1714704661","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df67a87d489ee2a9631e96bc74ebc044a545fff2_2870dd30-be33-4fbe-8599-34c531feb565.webp?v=1714704664","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2064aaacc770d9c85af74665800da0235bd147_f9b5985f-cf89-4536-b315-bbd93c399f37.webp?v=1714704666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9865805138d8c90447fc547d4f724e6a0460ed73_80436e24-2cd3-4460-adf8-02e806e4448b.webp?v=1714704668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea1a0a441a31c868cbb1bb7e9bb5d1029825e5_76edfc0b-ddb6-4c33-ab30-b5fff03210b3.webp?v=1714704671","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa93ed93bd8d7a965605981277b5b38832657969_aa524343-52a5-401e-bfc1-31d479d97ea8.webp?v=1714704676"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038d36c667dd79073cce0ab85a214f2c57d7810_a3488964-4df8-479d-8d16-e57f2fd0ca9c.webp?v=1714704653","options":["color"],"media":[{"alt":null,"id":23875272573027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038d36c667dd79073cce0ab85a214f2c57d7810_a3488964-4df8-479d-8d16-e57f2fd0ca9c.webp?v=1714704653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4038d36c667dd79073cce0ab85a214f2c57d7810_a3488964-4df8-479d-8d16-e57f2fd0ca9c.webp?v=1714704653","width":2000},{"alt":null,"id":23875273130083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3973547e98217a53c02289bd9a08764f024f945b_75d928df-2076-4dd2-a193-820005b63518.webp?v=1714704656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3973547e98217a53c02289bd9a08764f024f945b_75d928df-2076-4dd2-a193-820005b63518.webp?v=1714704656","width":2000},{"alt":null,"id":23875273654371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa335e465c146358e4c66c84dcbeab20fa3db2d6_cd4fbbc6-b17a-4716-b098-e8d59c27dec0.webp?v=1714704659"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa335e465c146358e4c66c84dcbeab20fa3db2d6_cd4fbbc6-b17a-4716-b098-e8d59c27dec0.webp?v=1714704659","width":2000},{"alt":null,"id":23875274539107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf721698563df06539dbf15e8e66e2225d57235_7a03e388-9ead-4a78-9cb2-64708f286e25.webp?v=1714704661"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bf721698563df06539dbf15e8e66e2225d57235_7a03e388-9ead-4a78-9cb2-64708f286e25.webp?v=1714704661","width":2000},{"alt":null,"id":23875274997859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df67a87d489ee2a9631e96bc74ebc044a545fff2_2870dd30-be33-4fbe-8599-34c531feb565.webp?v=1714704664"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df67a87d489ee2a9631e96bc74ebc044a545fff2_2870dd30-be33-4fbe-8599-34c531feb565.webp?v=1714704664","width":2000},{"alt":null,"id":23875275456611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2064aaacc770d9c85af74665800da0235bd147_f9b5985f-cf89-4536-b315-bbd93c399f37.webp?v=1714704666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2064aaacc770d9c85af74665800da0235bd147_f9b5985f-cf89-4536-b315-bbd93c399f37.webp?v=1714704666","width":2000},{"alt":null,"id":23875276046435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9865805138d8c90447fc547d4f724e6a0460ed73_80436e24-2cd3-4460-adf8-02e806e4448b.webp?v=1714704668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9865805138d8c90447fc547d4f724e6a0460ed73_80436e24-2cd3-4460-adf8-02e806e4448b.webp?v=1714704668","width":2000},{"alt":null,"id":23875276898403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea1a0a441a31c868cbb1bb7e9bb5d1029825e5_76edfc0b-ddb6-4c33-ab30-b5fff03210b3.webp?v=1714704671"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deea1a0a441a31c868cbb1bb7e9bb5d1029825e5_76edfc0b-ddb6-4c33-ab30-b5fff03210b3.webp?v=1714704671","width":2000},{"alt":null,"id":23875277357155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674","width":2000},{"alt":null,"id":23875277946979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa93ed93bd8d7a965605981277b5b38832657969_aa524343-52a5-401e-bfc1-31d479d97ea8.webp?v=1714704676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa93ed93bd8d7a965605981277b5b38832657969_aa524343-52a5-401e-bfc1-31d479d97ea8.webp?v=1714704676","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878744137827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470374125667,"product_id":7407779577955,"position":9,"created_at":"2024-05-03T10:51:14+08:00","updated_at":"2024-05-03T10:51:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674","variant_ids":[41878744137827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF05","featured_media":{"alt":null,"id":23875277357155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878744137827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470374125667,"product_id":7407779577955,"position":9,"created_at":"2024-05-03T10:51:14+08:00","updated_at":"2024-05-03T10:51:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674","variant_ids":[41878744137827]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-YF05","featured_media":{"alt":null,"id":23875277357155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4d8e513a4afe62a66b99e24c0994b5ce8c5883e_44e18864-6040-48ba-9f9d-2b781ae4f72e.webp?v=1714704674"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }