$product = {"id":7408536354915,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-12-pro-max-mod-nx-printable-yf03","description":null,"published_at":"2024-06-11T16:40:01+08:00","created_at":"2024-05-03T15:45:48+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 12 pro max","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":41886602657891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472530686051,"product_id":7408536354915,"position":10,"created_at":"2024-05-03T15:46:12+08:00","updated_at":"2024-05-03T15:46:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372","variant_ids":[41886602657891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"NPB0118724-YF03","featured_media":{"alt":null,"id":23877448007779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/981ecfb8b7729694b9d4f54fcacb72fe603aa83b_cc1bed08-e2af-4697-a0d4-d19700c880be.webp?v=1714722350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1242b21812a84d0d3597e30f01f0c8fb2f249e7d_c070a1ee-3df3-4ae3-b441-bda51ad8f9ec.webp?v=1714722353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd3c25d98cbaaca355a4f2db2c86b87b8c7dbdc_0d9894c8-5758-4fe7-ae7c-91ad1a6224c9.webp?v=1714722355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00888ce43a3d1ef2e3ae1316de44ec07fc004d9_af9053df-4824-4200-8248-714276f9d65f.webp?v=1714722357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8045712dba4252537667f77b4bdb72143d02e5_37a2269f-6a86-4a31-9766-271bc1eddf17.webp?v=1714722360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc8453c12f81cd8b5f045756e0c3a4c633fd0b4_10ebf1ea-51e5-42b3-930e-260c3fae800d.webp?v=1714722362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526af7b29a3ea9a337645a74f3df3734569c48ba_495d2da7-8931-4341-ab39-fd43ca280625.webp?v=1714722365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b96cbfa0a95bc600905f320ed54146fbf57dbfd_c2469cfe-ed4d-4941-b607-e3e12eda41a1.webp?v=1714722367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c65bc8d43a064ec13a12f3f10d543756a1bc08_5b89594a-4111-47d0-b0f4-f9d4091f863a.webp?v=1714722369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/981ecfb8b7729694b9d4f54fcacb72fe603aa83b_cc1bed08-e2af-4697-a0d4-d19700c880be.webp?v=1714722350","options":["color"],"media":[{"alt":null,"id":23877443158115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/981ecfb8b7729694b9d4f54fcacb72fe603aa83b_cc1bed08-e2af-4697-a0d4-d19700c880be.webp?v=1714722350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/981ecfb8b7729694b9d4f54fcacb72fe603aa83b_cc1bed08-e2af-4697-a0d4-d19700c880be.webp?v=1714722350","width":2000},{"alt":null,"id":23877443485795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1242b21812a84d0d3597e30f01f0c8fb2f249e7d_c070a1ee-3df3-4ae3-b441-bda51ad8f9ec.webp?v=1714722353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1242b21812a84d0d3597e30f01f0c8fb2f249e7d_c070a1ee-3df3-4ae3-b441-bda51ad8f9ec.webp?v=1714722353","width":2000},{"alt":null,"id":23877444075619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd3c25d98cbaaca355a4f2db2c86b87b8c7dbdc_0d9894c8-5758-4fe7-ae7c-91ad1a6224c9.webp?v=1714722355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcd3c25d98cbaaca355a4f2db2c86b87b8c7dbdc_0d9894c8-5758-4fe7-ae7c-91ad1a6224c9.webp?v=1714722355","width":2000},{"alt":null,"id":23877444501603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00888ce43a3d1ef2e3ae1316de44ec07fc004d9_af9053df-4824-4200-8248-714276f9d65f.webp?v=1714722357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a00888ce43a3d1ef2e3ae1316de44ec07fc004d9_af9053df-4824-4200-8248-714276f9d65f.webp?v=1714722357","width":2000},{"alt":null,"id":23877445288035,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8045712dba4252537667f77b4bdb72143d02e5_37a2269f-6a86-4a31-9766-271bc1eddf17.webp?v=1714722360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a8045712dba4252537667f77b4bdb72143d02e5_37a2269f-6a86-4a31-9766-271bc1eddf17.webp?v=1714722360","width":2000},{"alt":null,"id":23877445779555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc8453c12f81cd8b5f045756e0c3a4c633fd0b4_10ebf1ea-51e5-42b3-930e-260c3fae800d.webp?v=1714722362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbc8453c12f81cd8b5f045756e0c3a4c633fd0b4_10ebf1ea-51e5-42b3-930e-260c3fae800d.webp?v=1714722362","width":2000},{"alt":null,"id":23877446205539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526af7b29a3ea9a337645a74f3df3734569c48ba_495d2da7-8931-4341-ab39-fd43ca280625.webp?v=1714722365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/526af7b29a3ea9a337645a74f3df3734569c48ba_495d2da7-8931-4341-ab39-fd43ca280625.webp?v=1714722365","width":2000},{"alt":null,"id":23877446762595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b96cbfa0a95bc600905f320ed54146fbf57dbfd_c2469cfe-ed4d-4941-b607-e3e12eda41a1.webp?v=1714722367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b96cbfa0a95bc600905f320ed54146fbf57dbfd_c2469cfe-ed4d-4941-b607-e3e12eda41a1.webp?v=1714722367","width":2000},{"alt":null,"id":23877447155811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c65bc8d43a064ec13a12f3f10d543756a1bc08_5b89594a-4111-47d0-b0f4-f9d4091f863a.webp?v=1714722369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54c65bc8d43a064ec13a12f3f10d543756a1bc08_5b89594a-4111-47d0-b0f4-f9d4091f863a.webp?v=1714722369","width":2000},{"alt":null,"id":23877448007779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886602657891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472530686051,"product_id":7408536354915,"position":10,"created_at":"2024-05-03T15:46:12+08:00","updated_at":"2024-05-03T15:46:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372","variant_ids":[41886602657891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"NPB0118724-YF03","featured_media":{"alt":null,"id":23877448007779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886602657891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472530686051,"product_id":7408536354915,"position":10,"created_at":"2024-05-03T15:46:12+08:00","updated_at":"2024-05-03T15:46:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372","variant_ids":[41886602657891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"NPB0118724-YF03","featured_media":{"alt":null,"id":23877448007779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c6dbe6100563c6a1288722868f260aae17ef4e_1132914b-3b1c-4bd6-a921-88077c079035.webp?v=1714722372"}},"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: "停產" }