$product = {"id":7411430555747,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日帽","handle":"iphone-14-plus-mod-nx-magsafe-printable-iv01","description":null,"published_at":"2024-06-11T17:44:48+08:00","created_at":"2024-05-05T00:28:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41898795303011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407294051,"product_id":7411430555747,"position":5,"created_at":"2024-05-05T00:28:37+08:00","updated_at":"2024-05-05T00:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117","variant_ids":[41898795303011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日帽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV01","featured_media":{"alt":null,"id":23885658980451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26aaf364c721e599783ab261bf791d622b56a184_959577c9-2829-411d-97e0-6d88c31882eb.webp?v=1714840107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e12ce6cb50edf722d04f99645933401543150b_72e7cffc-11a5-4275-8332-fe3a5dbc7e53.webp?v=1714840109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece453c757362a2367bbc0454215f8545768a48e_b157d912-34c4-4597-9912-d8fb157817c2.webp?v=1714840112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35d0c9c7cbf3789f17516693acc9e825488a78f_ed9e4683-08cf-4b8e-9c7a-84962f619533.webp?v=1714840114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffc26bd0fd6e528a60af15bde7334ecedf58ab8_9de98890-1ebc-4bbb-8447-be21fe43c89c.webp?v=1714840119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a3175eb5ecd7641962f268058b571b0140cc0a_74ff56e0-a99a-4ee5-a044-79927d2b3f5a.webp?v=1714840121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60755cb3dc896cb8d3e2f70c4fe0b8ab463921e2_bd7257fd-24d7-4f38-9465-78c9562b953a.webp?v=1714840124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7bb25e72aceb6ff20eb02e9a2da77453e8b359c_90f122c4-81e5-408a-83bb-9887066c5237.webp?v=1714840126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e39b09f1890f9844834f01a3c16100756bd03938_2db33f6e-f846-4af0-8c25-e33fb7764a84.webp?v=1714840128"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26aaf364c721e599783ab261bf791d622b56a184_959577c9-2829-411d-97e0-6d88c31882eb.webp?v=1714840107","options":["color"],"media":[{"alt":null,"id":23885656981603,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26aaf364c721e599783ab261bf791d622b56a184_959577c9-2829-411d-97e0-6d88c31882eb.webp?v=1714840107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26aaf364c721e599783ab261bf791d622b56a184_959577c9-2829-411d-97e0-6d88c31882eb.webp?v=1714840107","width":2000},{"alt":null,"id":23885657473123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e12ce6cb50edf722d04f99645933401543150b_72e7cffc-11a5-4275-8332-fe3a5dbc7e53.webp?v=1714840109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e12ce6cb50edf722d04f99645933401543150b_72e7cffc-11a5-4275-8332-fe3a5dbc7e53.webp?v=1714840109","width":2000},{"alt":null,"id":23885657833571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece453c757362a2367bbc0454215f8545768a48e_b157d912-34c4-4597-9912-d8fb157817c2.webp?v=1714840112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ece453c757362a2367bbc0454215f8545768a48e_b157d912-34c4-4597-9912-d8fb157817c2.webp?v=1714840112","width":2000},{"alt":null,"id":23885658423395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35d0c9c7cbf3789f17516693acc9e825488a78f_ed9e4683-08cf-4b8e-9c7a-84962f619533.webp?v=1714840114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35d0c9c7cbf3789f17516693acc9e825488a78f_ed9e4683-08cf-4b8e-9c7a-84962f619533.webp?v=1714840114","width":2000},{"alt":null,"id":23885658980451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117","width":2000},{"alt":null,"id":23885659373667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffc26bd0fd6e528a60af15bde7334ecedf58ab8_9de98890-1ebc-4bbb-8447-be21fe43c89c.webp?v=1714840119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffc26bd0fd6e528a60af15bde7334ecedf58ab8_9de98890-1ebc-4bbb-8447-be21fe43c89c.webp?v=1714840119","width":2000},{"alt":null,"id":23885660061795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a3175eb5ecd7641962f268058b571b0140cc0a_74ff56e0-a99a-4ee5-a044-79927d2b3f5a.webp?v=1714840121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67a3175eb5ecd7641962f268058b571b0140cc0a_74ff56e0-a99a-4ee5-a044-79927d2b3f5a.webp?v=1714840121","width":2000},{"alt":null,"id":23885660684387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60755cb3dc896cb8d3e2f70c4fe0b8ab463921e2_bd7257fd-24d7-4f38-9465-78c9562b953a.webp?v=1714840124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60755cb3dc896cb8d3e2f70c4fe0b8ab463921e2_bd7257fd-24d7-4f38-9465-78c9562b953a.webp?v=1714840124","width":2000},{"alt":null,"id":23885661175907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7bb25e72aceb6ff20eb02e9a2da77453e8b359c_90f122c4-81e5-408a-83bb-9887066c5237.webp?v=1714840126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7bb25e72aceb6ff20eb02e9a2da77453e8b359c_90f122c4-81e5-408a-83bb-9887066c5237.webp?v=1714840126","width":2000},{"alt":null,"id":23885661667427,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e39b09f1890f9844834f01a3c16100756bd03938_2db33f6e-f846-4af0-8c25-e33fb7764a84.webp?v=1714840128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e39b09f1890f9844834f01a3c16100756bd03938_2db33f6e-f846-4af0-8c25-e33fb7764a84.webp?v=1714840128","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898795303011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407294051,"product_id":7411430555747,"position":5,"created_at":"2024-05-05T00:28:37+08:00","updated_at":"2024-05-05T00:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117","variant_ids":[41898795303011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日帽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV01","featured_media":{"alt":null,"id":23885658980451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898795303011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407294051,"product_id":7411430555747,"position":5,"created_at":"2024-05-05T00:28:37+08:00","updated_at":"2024-05-05T00:28:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117","variant_ids":[41898795303011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日帽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV01","featured_media":{"alt":null,"id":23885658980451,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f29882e413f45b082a9261bad8906ce2fb001bf9_ffd56fea-5e8d-4760-a27d-03bda012deb1.webp?v=1714840117"}},"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: "停產" }