$product = {"id":7411079970915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林)","handle":"iphone-15-plus-mod-nx-magsafe-printable-af01","description":null,"published_at":"2024-06-11T17:35:46+08:00","created_at":"2024-05-04T22:39:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41894767263843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479460331619,"product_id":7411079970915,"position":6,"created_at":"2024-05-04T22:39:19+08:00","updated_at":"2024-05-04T22:39:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559","variant_ids":[41894767263843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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":"MPB0129624-AF01","featured_media":{"alt":null,"id":23884707889251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894767394915,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479461806179,"product_id":7411079970915,"position":9,"created_at":"2024-05-04T22:39:26+08:00","updated_at":"2024-05-04T22:39:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567","variant_ids":[41894767394915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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":"MPB0129657-AF01","featured_media":{"alt":null,"id":23884709363811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88db389a840b43595c89bb59504a1225aa5ac00d_68e93a76-9ed9-405d-9520-71d324fc97dc.webp?v=1714833547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584d5bf26aea50cc37ba18226c3b85870efa29ba_88be2369-a77c-4315-a1d7-ed5cbc4849cf.webp?v=1714833549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748ead7d1e0b1f1d4dcac967c0fc5c63ad183478_f29848d7-a255-4bae-be5c-baf38623e3be.webp?v=1714833552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b02dc7a06e20eb6dc4ad45ecdcdc032078cc5a_22dd7c69-50c2-4f63-8c9a-b592d0d3de3b.webp?v=1714833554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5e11d1e4bcf01b803b4600fd930a232ad7600f_92f603fa-ffff-4b21-8ef1-4cfcf16e075d.webp?v=1714833557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2869144820eb852dfac7d9f694a3e11dc4903eb_4ad87f4f-4bd4-4f7e-9869-a45bc45acf3f.webp?v=1714833562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c0c7df4cff5d3c2c0bbadb1660e1e1a7746f24_edcc8290-4f3f-4016-8793-bdc92347aa65.webp?v=1714833564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73d6bed6eab240ac8e0b8d76215248885123e22a_3df93161-1d9d-4992-953d-8fc8c0f9d90e.webp?v=1714833569"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88db389a840b43595c89bb59504a1225aa5ac00d_68e93a76-9ed9-405d-9520-71d324fc97dc.webp?v=1714833547","options":["color"],"media":[{"alt":null,"id":23884705136739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88db389a840b43595c89bb59504a1225aa5ac00d_68e93a76-9ed9-405d-9520-71d324fc97dc.webp?v=1714833547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88db389a840b43595c89bb59504a1225aa5ac00d_68e93a76-9ed9-405d-9520-71d324fc97dc.webp?v=1714833547","width":2000},{"alt":null,"id":23884705628259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584d5bf26aea50cc37ba18226c3b85870efa29ba_88be2369-a77c-4315-a1d7-ed5cbc4849cf.webp?v=1714833549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/584d5bf26aea50cc37ba18226c3b85870efa29ba_88be2369-a77c-4315-a1d7-ed5cbc4849cf.webp?v=1714833549","width":2000},{"alt":null,"id":23884706152547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748ead7d1e0b1f1d4dcac967c0fc5c63ad183478_f29848d7-a255-4bae-be5c-baf38623e3be.webp?v=1714833552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/748ead7d1e0b1f1d4dcac967c0fc5c63ad183478_f29848d7-a255-4bae-be5c-baf38623e3be.webp?v=1714833552","width":2000},{"alt":null,"id":23884706709603,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b02dc7a06e20eb6dc4ad45ecdcdc032078cc5a_22dd7c69-50c2-4f63-8c9a-b592d0d3de3b.webp?v=1714833554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68b02dc7a06e20eb6dc4ad45ecdcdc032078cc5a_22dd7c69-50c2-4f63-8c9a-b592d0d3de3b.webp?v=1714833554","width":2000},{"alt":null,"id":23884707233891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5e11d1e4bcf01b803b4600fd930a232ad7600f_92f603fa-ffff-4b21-8ef1-4cfcf16e075d.webp?v=1714833557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b5e11d1e4bcf01b803b4600fd930a232ad7600f_92f603fa-ffff-4b21-8ef1-4cfcf16e075d.webp?v=1714833557","width":2000},{"alt":null,"id":23884707889251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559","width":2000},{"alt":null,"id":23884708282467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2869144820eb852dfac7d9f694a3e11dc4903eb_4ad87f4f-4bd4-4f7e-9869-a45bc45acf3f.webp?v=1714833562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2869144820eb852dfac7d9f694a3e11dc4903eb_4ad87f4f-4bd4-4f7e-9869-a45bc45acf3f.webp?v=1714833562","width":2000},{"alt":null,"id":23884708872291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c0c7df4cff5d3c2c0bbadb1660e1e1a7746f24_edcc8290-4f3f-4016-8793-bdc92347aa65.webp?v=1714833564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5c0c7df4cff5d3c2c0bbadb1660e1e1a7746f24_edcc8290-4f3f-4016-8793-bdc92347aa65.webp?v=1714833564","width":2000},{"alt":null,"id":23884709363811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567","width":2000},{"alt":null,"id":23884710117475,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73d6bed6eab240ac8e0b8d76215248885123e22a_3df93161-1d9d-4992-953d-8fc8c0f9d90e.webp?v=1714833569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73d6bed6eab240ac8e0b8d76215248885123e22a_3df93161-1d9d-4992-953d-8fc8c0f9d90e.webp?v=1714833569","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894767263843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479460331619,"product_id":7411079970915,"position":6,"created_at":"2024-05-04T22:39:19+08:00","updated_at":"2024-05-04T22:39:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559","variant_ids":[41894767263843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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":"MPB0129624-AF01","featured_media":{"alt":null,"id":23884707889251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894767394915,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479461806179,"product_id":7411079970915,"position":9,"created_at":"2024-05-04T22:39:26+08:00","updated_at":"2024-05-04T22:39:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567","variant_ids":[41894767394915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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":"MPB0129657-AF01","featured_media":{"alt":null,"id":23884709363811,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/875885c73b8783c190f268c2ea2a37bb48e6e467_7aaab09a-99db-467b-b1ce-ac9a74c382e2.webp?v=1714833567"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894767263843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479460331619,"product_id":7411079970915,"position":6,"created_at":"2024-05-04T22:39:19+08:00","updated_at":"2024-05-04T22:39:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559","variant_ids":[41894767263843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 願傷疤 有天開出花(亞馬遜雨林) - 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":"MPB0129624-AF01","featured_media":{"alt":null,"id":23884707889251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d789036babd0e47591ee57147e4d9bbb5d0cdc0_dcf9728e-4125-45e8-9bb2-31621ba7f5fc.webp?v=1714833559"}},"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: "停產" }