$product = {"id":7407650963555,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠俠出任務","handle":"iphone-14-plus-mod-nx-printable-sb06","description":null,"published_at":"2024-06-11T16:21:33+08:00","created_at":"2024-05-03T10:37:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41877199454307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470151762019,"product_id":7407650963555,"position":1,"created_at":"2024-05-03T10:37:32+08:00","updated_at":"2024-05-03T10:37:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","variant_ids":[41877199454307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23875054633059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e381b748cd39cb54cf1944fd8e131358fb2b0e_b51c9d09-987d-4eaa-8eba-ca5134cadca7.webp?v=1714703854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9835072ed6bdd37c9687678b4cd18585e876cf_c07ccd91-3bca-480f-a967-31c501ebf28a.webp?v=1714703857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8428d496a68e5b57b1246bb3f6b8181d01d181e_ed933749-8bf7-4bf7-91a1-4eb92e275f4b.webp?v=1714703859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4def8bdb95573b9bc237e7a4e653659e83bf0315_5d92145f-2c35-4ff1-bd20-0c57ac60a7b8.webp?v=1714703862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dd8e1cfc5f02967ef3bd4281658976e4f32e27_19a1fbc2-7dff-4fb0-89da-a5249fe99a09.webp?v=1714703865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f8587a326822293a885624ded59ce97d8e366c_19caa3ef-389b-4ef9-881c-08da93185c98.webp?v=1714703867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffef83e07bb980a8dd0cc2605ec3912ab2c3731_acf8aa86-4aff-4048-9b4f-13987be52cc8.webp?v=1714703870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9748d54777e22d2794f57ec7560576a6b291642_1ad69f6e-8d11-471a-ab48-d94a77b53fbf.webp?v=1714703873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6436d9fad88450f9f36d4a5fe2e7aeb361e992_3d8a7523-57be-4f14-859a-a9bfe9c0df4f.webp?v=1714703875"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","options":["color"],"media":[{"alt":null,"id":23875054633059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","width":2000},{"alt":null,"id":23875055419491,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e381b748cd39cb54cf1944fd8e131358fb2b0e_b51c9d09-987d-4eaa-8eba-ca5134cadca7.webp?v=1714703854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e381b748cd39cb54cf1944fd8e131358fb2b0e_b51c9d09-987d-4eaa-8eba-ca5134cadca7.webp?v=1714703854","width":2000},{"alt":null,"id":23875056173155,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9835072ed6bdd37c9687678b4cd18585e876cf_c07ccd91-3bca-480f-a967-31c501ebf28a.webp?v=1714703857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c9835072ed6bdd37c9687678b4cd18585e876cf_c07ccd91-3bca-480f-a967-31c501ebf28a.webp?v=1714703857","width":2000},{"alt":null,"id":23875057025123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8428d496a68e5b57b1246bb3f6b8181d01d181e_ed933749-8bf7-4bf7-91a1-4eb92e275f4b.webp?v=1714703859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8428d496a68e5b57b1246bb3f6b8181d01d181e_ed933749-8bf7-4bf7-91a1-4eb92e275f4b.webp?v=1714703859","width":2000},{"alt":null,"id":23875057647715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4def8bdb95573b9bc237e7a4e653659e83bf0315_5d92145f-2c35-4ff1-bd20-0c57ac60a7b8.webp?v=1714703862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4def8bdb95573b9bc237e7a4e653659e83bf0315_5d92145f-2c35-4ff1-bd20-0c57ac60a7b8.webp?v=1714703862","width":2000},{"alt":null,"id":23875058303075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dd8e1cfc5f02967ef3bd4281658976e4f32e27_19a1fbc2-7dff-4fb0-89da-a5249fe99a09.webp?v=1714703865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01dd8e1cfc5f02967ef3bd4281658976e4f32e27_19a1fbc2-7dff-4fb0-89da-a5249fe99a09.webp?v=1714703865","width":2000},{"alt":null,"id":23875059220579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f8587a326822293a885624ded59ce97d8e366c_19caa3ef-389b-4ef9-881c-08da93185c98.webp?v=1714703867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80f8587a326822293a885624ded59ce97d8e366c_19caa3ef-389b-4ef9-881c-08da93185c98.webp?v=1714703867","width":2000},{"alt":null,"id":23875059941475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffef83e07bb980a8dd0cc2605ec3912ab2c3731_acf8aa86-4aff-4048-9b4f-13987be52cc8.webp?v=1714703870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cffef83e07bb980a8dd0cc2605ec3912ab2c3731_acf8aa86-4aff-4048-9b4f-13987be52cc8.webp?v=1714703870","width":2000},{"alt":null,"id":23875060596835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9748d54777e22d2794f57ec7560576a6b291642_1ad69f6e-8d11-471a-ab48-d94a77b53fbf.webp?v=1714703873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9748d54777e22d2794f57ec7560576a6b291642_1ad69f6e-8d11-471a-ab48-d94a77b53fbf.webp?v=1714703873","width":2000},{"alt":null,"id":23875061514339,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6436d9fad88450f9f36d4a5fe2e7aeb361e992_3d8a7523-57be-4f14-859a-a9bfe9c0df4f.webp?v=1714703875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6436d9fad88450f9f36d4a5fe2e7aeb361e992_3d8a7523-57be-4f14-859a-a9bfe9c0df4f.webp?v=1714703875","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877199454307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470151762019,"product_id":7407650963555,"position":1,"created_at":"2024-05-03T10:37:32+08:00","updated_at":"2024-05-03T10:37:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","variant_ids":[41877199454307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23875054633059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877199454307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470151762019,"product_id":7407650963555,"position":1,"created_at":"2024-05-03T10:37:32+08:00","updated_at":"2024-05-03T10:37:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852","variant_ids":[41877199454307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23875054633059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd80b0f926a683836a63a465f15fd99bad70b4af_90218cdb-93df-48e5-9add-b62c6480d497.webp?v=1714703852"}},"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: "停產" }