$product = {"id":7411366953059,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb64","description":null,"published_at":"2024-06-11T17:43:02+08:00","created_at":"2024-05-05T00:15:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41897990160483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31480243650659,"product_id":7411366953059,"position":5,"created_at":"2024-05-05T00:16:02+08:00","updated_at":"2024-05-05T00:16:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362","variant_ids":[41897990160483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB64","featured_media":{"alt":null,"id":23885495009379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcc82177083af1768339eee02f6d4c39d587dbe_3d359398-c013-48c6-abee-346b0eb0573a.webp?v=1714839353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6343dcf09910bcf5d7eaf0b2b747b50f2ac46603_89f54260-c98d-40ab-8794-e427043f2243.webp?v=1714839355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1e7c78a8bba3a745c493f350f181530b9c1165_0d7a4254-bbc2-4dd5-bf78-290e3af025e7.webp?v=1714839358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7952f6bcb1be3056deb6f8e5066b81f3a07e5f52_92c057ee-9bc8-41d8-8960-3007f8e193b9.webp?v=1714839360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf0cb508ec2a916efed8c746ccf91e9a02dbd65_ab03abb5-2dd5-4ecc-a159-691f983b23a5.webp?v=1714839365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178b3410c1a36cf6bdd58e5b7bf1c7bc128b7fec_cca5e801-c014-43cf-9842-569b40c34cd5.webp?v=1714839367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f2b0290fdebfd2473dfcd255cd788d9fb5ba3e_a4614d49-fae3-43d0-b776-c62b479efba0.webp?v=1714839369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfabb78a046e3c85770a627f377e9cbb6a353d7_e4677027-25a7-45fe-aced-ba6692ce4323.webp?v=1714839371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe049bfcd64d6c586391d7811b789f452d6a2b98_2d2c0f81-905c-4b7a-a82f-fe53f74fad84.webp?v=1714839374"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcc82177083af1768339eee02f6d4c39d587dbe_3d359398-c013-48c6-abee-346b0eb0573a.webp?v=1714839353","options":["color"],"media":[{"alt":null,"id":23885492650083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcc82177083af1768339eee02f6d4c39d587dbe_3d359398-c013-48c6-abee-346b0eb0573a.webp?v=1714839353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bcc82177083af1768339eee02f6d4c39d587dbe_3d359398-c013-48c6-abee-346b0eb0573a.webp?v=1714839353","width":2000},{"alt":null,"id":23885493207139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6343dcf09910bcf5d7eaf0b2b747b50f2ac46603_89f54260-c98d-40ab-8794-e427043f2243.webp?v=1714839355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6343dcf09910bcf5d7eaf0b2b747b50f2ac46603_89f54260-c98d-40ab-8794-e427043f2243.webp?v=1714839355","width":2000},{"alt":null,"id":23885493796963,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1e7c78a8bba3a745c493f350f181530b9c1165_0d7a4254-bbc2-4dd5-bf78-290e3af025e7.webp?v=1714839358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d1e7c78a8bba3a745c493f350f181530b9c1165_0d7a4254-bbc2-4dd5-bf78-290e3af025e7.webp?v=1714839358","width":2000},{"alt":null,"id":23885494157411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7952f6bcb1be3056deb6f8e5066b81f3a07e5f52_92c057ee-9bc8-41d8-8960-3007f8e193b9.webp?v=1714839360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7952f6bcb1be3056deb6f8e5066b81f3a07e5f52_92c057ee-9bc8-41d8-8960-3007f8e193b9.webp?v=1714839360","width":2000},{"alt":null,"id":23885495009379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362","width":2000},{"alt":null,"id":23885495599203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf0cb508ec2a916efed8c746ccf91e9a02dbd65_ab03abb5-2dd5-4ecc-a159-691f983b23a5.webp?v=1714839365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caf0cb508ec2a916efed8c746ccf91e9a02dbd65_ab03abb5-2dd5-4ecc-a159-691f983b23a5.webp?v=1714839365","width":2000},{"alt":null,"id":23885496057955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178b3410c1a36cf6bdd58e5b7bf1c7bc128b7fec_cca5e801-c014-43cf-9842-569b40c34cd5.webp?v=1714839367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/178b3410c1a36cf6bdd58e5b7bf1c7bc128b7fec_cca5e801-c014-43cf-9842-569b40c34cd5.webp?v=1714839367","width":2000},{"alt":null,"id":23885496647779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f2b0290fdebfd2473dfcd255cd788d9fb5ba3e_a4614d49-fae3-43d0-b776-c62b479efba0.webp?v=1714839369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f2b0290fdebfd2473dfcd255cd788d9fb5ba3e_a4614d49-fae3-43d0-b776-c62b479efba0.webp?v=1714839369","width":2000},{"alt":null,"id":23885497139299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfabb78a046e3c85770a627f377e9cbb6a353d7_e4677027-25a7-45fe-aced-ba6692ce4323.webp?v=1714839371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dfabb78a046e3c85770a627f377e9cbb6a353d7_e4677027-25a7-45fe-aced-ba6692ce4323.webp?v=1714839371","width":2000},{"alt":null,"id":23885497794659,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe049bfcd64d6c586391d7811b789f452d6a2b98_2d2c0f81-905c-4b7a-a82f-fe53f74fad84.webp?v=1714839374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe049bfcd64d6c586391d7811b789f452d6a2b98_2d2c0f81-905c-4b7a-a82f-fe53f74fad84.webp?v=1714839374","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897990160483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31480243650659,"product_id":7411366953059,"position":5,"created_at":"2024-05-05T00:16:02+08:00","updated_at":"2024-05-05T00:16:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362","variant_ids":[41897990160483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB64","featured_media":{"alt":null,"id":23885495009379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897990160483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31480243650659,"product_id":7411366953059,"position":5,"created_at":"2024-05-05T00:16:02+08:00","updated_at":"2024-05-05T00:16:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362","variant_ids":[41897990160483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB64","featured_media":{"alt":null,"id":23885495009379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c8c5933b58f28f75657dfce493b6c4e921e5001_f51debb0-b05c-4eb9-bc98-8c912e1e0699.webp?v=1714839362"}},"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: "停產" }