$product = {"id":7411080134755,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(大堡礁)","handle":"iphone-15-plus-mod-nx-magsafe-printable-af11","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":41894768148579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479462690915,"product_id":7411080134755,"position":9,"created_at":"2024-05-04T22:39:29+08:00","updated_at":"2024-05-04T22:39:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569","variant_ids":[41894768148579]},"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-AF11","featured_media":{"alt":null,"id":23884710215779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894768312419,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479459938403,"product_id":7411080134755,"position":5,"created_at":"2024-05-04T22:39:18+08:00","updated_at":"2024-05-04T22:39:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558","variant_ids":[41894768312419]},"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-AF11","featured_media":{"alt":null,"id":23884707528803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/531908fab5944f68fa2c9bc3a8a1a26b7ac7c29d_25b32038-01d8-4e8a-9977-54f672d03b22.webp?v=1714833548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35fbe4ac26e954845784756948a49bdef531393_cb490cb8-64ec-4c76-a09a-7bf5c624c38f.webp?v=1714833550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d0ecd0cf33df7ea721631effa49a0ff443bcd37_7195cb9a-84d6-4587-94da-7f4bfda8bf76.webp?v=1714833553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7852af2ce8570771b89581eec423542a6a9e3d5_d30b0045-aa17-48dd-aac6-301cbe794da3.webp?v=1714833555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1525e319454f3719f94a0476a96b04c18eeacd5a_e3e38d4c-da7a-4ec8-a944-4c544f0e9bb8.webp?v=1714833562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3123c7d3f6dfcec1647f234fb28674b3c7cd9338_29446bf6-1947-4571-b618-11e5280978dc.webp?v=1714833565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51092cdaaab57e23f750193b2299ae527668466_1d100407-bdec-4c18-a583-f1e006243ca0.webp?v=1714833567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/531908fab5944f68fa2c9bc3a8a1a26b7ac7c29d_25b32038-01d8-4e8a-9977-54f672d03b22.webp?v=1714833548","options":["color"],"media":[{"alt":null,"id":23884705366115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/531908fab5944f68fa2c9bc3a8a1a26b7ac7c29d_25b32038-01d8-4e8a-9977-54f672d03b22.webp?v=1714833548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/531908fab5944f68fa2c9bc3a8a1a26b7ac7c29d_25b32038-01d8-4e8a-9977-54f672d03b22.webp?v=1714833548","width":2000},{"alt":null,"id":23884705824867,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35fbe4ac26e954845784756948a49bdef531393_cb490cb8-64ec-4c76-a09a-7bf5c624c38f.webp?v=1714833550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35fbe4ac26e954845784756948a49bdef531393_cb490cb8-64ec-4c76-a09a-7bf5c624c38f.webp?v=1714833550","width":2000},{"alt":null,"id":23884706250851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d0ecd0cf33df7ea721631effa49a0ff443bcd37_7195cb9a-84d6-4587-94da-7f4bfda8bf76.webp?v=1714833553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d0ecd0cf33df7ea721631effa49a0ff443bcd37_7195cb9a-84d6-4587-94da-7f4bfda8bf76.webp?v=1714833553","width":2000},{"alt":null,"id":23884706807907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7852af2ce8570771b89581eec423542a6a9e3d5_d30b0045-aa17-48dd-aac6-301cbe794da3.webp?v=1714833555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7852af2ce8570771b89581eec423542a6a9e3d5_d30b0045-aa17-48dd-aac6-301cbe794da3.webp?v=1714833555","width":2000},{"alt":null,"id":23884707528803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558","width":2000},{"alt":null,"id":23884708479075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1525e319454f3719f94a0476a96b04c18eeacd5a_e3e38d4c-da7a-4ec8-a944-4c544f0e9bb8.webp?v=1714833562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1525e319454f3719f94a0476a96b04c18eeacd5a_e3e38d4c-da7a-4ec8-a944-4c544f0e9bb8.webp?v=1714833562","width":2000},{"alt":null,"id":23884709068899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3123c7d3f6dfcec1647f234fb28674b3c7cd9338_29446bf6-1947-4571-b618-11e5280978dc.webp?v=1714833565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3123c7d3f6dfcec1647f234fb28674b3c7cd9338_29446bf6-1947-4571-b618-11e5280978dc.webp?v=1714833565","width":2000},{"alt":null,"id":23884709593187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51092cdaaab57e23f750193b2299ae527668466_1d100407-bdec-4c18-a583-f1e006243ca0.webp?v=1714833567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e51092cdaaab57e23f750193b2299ae527668466_1d100407-bdec-4c18-a583-f1e006243ca0.webp?v=1714833567","width":2000},{"alt":null,"id":23884710215779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894768148579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479462690915,"product_id":7411080134755,"position":9,"created_at":"2024-05-04T22:39:29+08:00","updated_at":"2024-05-04T22:39:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569","variant_ids":[41894768148579]},"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-AF11","featured_media":{"alt":null,"id":23884710215779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894768312419,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479459938403,"product_id":7411080134755,"position":5,"created_at":"2024-05-04T22:39:18+08:00","updated_at":"2024-05-04T22:39:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558","variant_ids":[41894768312419]},"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-AF11","featured_media":{"alt":null,"id":23884707528803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59c1173393805e8df18ce1e0e1031c8b69429d17_600c5289-807f-4f70-8c9d-f0e10a053286.webp?v=1714833558"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894768148579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479462690915,"product_id":7411080134755,"position":9,"created_at":"2024-05-04T22:39:29+08:00","updated_at":"2024-05-04T22:39:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569","variant_ids":[41894768148579]},"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-AF11","featured_media":{"alt":null,"id":23884710215779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1566eef56609d04ea06f963b80ac7af75213fcd_2ebe1f95-7222-405f-a1fb-2f82c2f49930.webp?v=1714833569"}},"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: "停產" }