$product = {"id":7408483106915,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 哥譚市","handle":"iphone-12-pro-max-mod-nx-printable-sb19","description":null,"published_at":"2024-06-11T16:38:29+08:00","created_at":"2024-05-03T15:35:29+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41885992222819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31472390307939,"product_id":7408483106915,"position":1,"created_at":"2024-05-03T15:35:32+08:00","updated_at":"2024-05-03T15:35:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","variant_ids":[41885992222819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 哥譚市 - 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-SB19","featured_media":{"alt":null,"id":23877307269219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecea2874bdf7e9a4f60042a63eb9457b83cf0c83_fd278c09-b56a-44bc-b8d4-6da81b181a7f.webp?v=1714721734","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ec58ee118e88b0e9d4db2d030cd834fca62b52_d5fb96dd-3a48-4aaf-83ec-68da8333f884.webp?v=1714721737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b2910b6fb2d7147ea96877bbe9bd806b8ca9f9_11c732dd-6e39-423d-8485-ef71d73237c0.webp?v=1714721739","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a907a46043b4a55d823110f0cc8b17896976fd_e1a26d83-4c5f-4cd7-b1c9-a24d4829435d.webp?v=1714721742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5acfc104b2e3da2b6928653a10e461d6e7f3120_c24f3c8c-d560-4927-b15f-dd2389298bc8.webp?v=1714721744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01a1c063273430291f9dd74d8a1cd1a26b64235_7e3dbd59-e83f-449f-9f00-f968c9986033.webp?v=1714721746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef97009a42cb41a604316f91b776742e3c8a15c6_9644c0f5-36ce-4420-af05-bb2851fec424.webp?v=1714721749","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1f7591ee09b9684c84c5033bfbcdbfeef0048c_a5458c3c-f8cf-44dc-952a-21e29a66b4c5.webp?v=1714721752","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ac57a92d8e0dbedf5488da2d5dc889bcaa489e8_7f07076c-b53e-42c1-9692-76c8444b6de8.webp?v=1714721754"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","options":["color"],"media":[{"alt":null,"id":23877307269219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","width":2000},{"alt":null,"id":23877307629667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecea2874bdf7e9a4f60042a63eb9457b83cf0c83_fd278c09-b56a-44bc-b8d4-6da81b181a7f.webp?v=1714721734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecea2874bdf7e9a4f60042a63eb9457b83cf0c83_fd278c09-b56a-44bc-b8d4-6da81b181a7f.webp?v=1714721734","width":2000},{"alt":null,"id":23877308153955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ec58ee118e88b0e9d4db2d030cd834fca62b52_d5fb96dd-3a48-4aaf-83ec-68da8333f884.webp?v=1714721737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76ec58ee118e88b0e9d4db2d030cd834fca62b52_d5fb96dd-3a48-4aaf-83ec-68da8333f884.webp?v=1714721737","width":2000},{"alt":null,"id":23877308612707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b2910b6fb2d7147ea96877bbe9bd806b8ca9f9_11c732dd-6e39-423d-8485-ef71d73237c0.webp?v=1714721739"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14b2910b6fb2d7147ea96877bbe9bd806b8ca9f9_11c732dd-6e39-423d-8485-ef71d73237c0.webp?v=1714721739","width":2000},{"alt":null,"id":23877309169763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a907a46043b4a55d823110f0cc8b17896976fd_e1a26d83-4c5f-4cd7-b1c9-a24d4829435d.webp?v=1714721742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a907a46043b4a55d823110f0cc8b17896976fd_e1a26d83-4c5f-4cd7-b1c9-a24d4829435d.webp?v=1714721742","width":2000},{"alt":null,"id":23877309661283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5acfc104b2e3da2b6928653a10e461d6e7f3120_c24f3c8c-d560-4927-b15f-dd2389298bc8.webp?v=1714721744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5acfc104b2e3da2b6928653a10e461d6e7f3120_c24f3c8c-d560-4927-b15f-dd2389298bc8.webp?v=1714721744","width":2000},{"alt":null,"id":23877310185571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01a1c063273430291f9dd74d8a1cd1a26b64235_7e3dbd59-e83f-449f-9f00-f968c9986033.webp?v=1714721746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c01a1c063273430291f9dd74d8a1cd1a26b64235_7e3dbd59-e83f-449f-9f00-f968c9986033.webp?v=1714721746","width":2000},{"alt":null,"id":23877310840931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef97009a42cb41a604316f91b776742e3c8a15c6_9644c0f5-36ce-4420-af05-bb2851fec424.webp?v=1714721749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef97009a42cb41a604316f91b776742e3c8a15c6_9644c0f5-36ce-4420-af05-bb2851fec424.webp?v=1714721749","width":2000},{"alt":null,"id":23877311397987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1f7591ee09b9684c84c5033bfbcdbfeef0048c_a5458c3c-f8cf-44dc-952a-21e29a66b4c5.webp?v=1714721752"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f1f7591ee09b9684c84c5033bfbcdbfeef0048c_a5458c3c-f8cf-44dc-952a-21e29a66b4c5.webp?v=1714721752","width":2000},{"alt":null,"id":23877311823971,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ac57a92d8e0dbedf5488da2d5dc889bcaa489e8_7f07076c-b53e-42c1-9692-76c8444b6de8.webp?v=1714721754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ac57a92d8e0dbedf5488da2d5dc889bcaa489e8_7f07076c-b53e-42c1-9692-76c8444b6de8.webp?v=1714721754","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885992222819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31472390307939,"product_id":7408483106915,"position":1,"created_at":"2024-05-03T15:35:32+08:00","updated_at":"2024-05-03T15:35:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","variant_ids":[41885992222819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 哥譚市 - 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-SB19","featured_media":{"alt":null,"id":23877307269219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885992222819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31472390307939,"product_id":7408483106915,"position":1,"created_at":"2024-05-03T15:35:32+08:00","updated_at":"2024-05-03T15:35:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732","variant_ids":[41885992222819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 哥譚市 - 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-SB19","featured_media":{"alt":null,"id":23877307269219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fabf070e354f968896d28961dfc04699cfa677c7_adb77be1-4696-4681-bc3b-63b02aca9269.webp?v=1714721732"}},"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: "停產" }