$product = {"id":7416066998371,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-xs-max-mod-nx-printable-hq01","description":null,"published_at":"2024-06-11T16:51:51+08:00","created_at":"2024-05-06T12:52:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41917087154275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491129016419,"product_id":7416066998371,"position":2,"created_at":"2024-05-06T12:52:05+08:00","updated_at":"2024-05-06T12:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125","variant_ids":[41917087154275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ01","featured_media":{"alt":null,"id":23896536449123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e37f5f041b8f88d324219a88572a71a022684_d0b1fc98-b543-4414-924b-cec3c5e044c3.webp?v=1714971123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/100ca245c53550fe847d74d1eb9462fdd770bb40_47a00a90-7fb8-4d5a-9b1d-8405499ab308.webp?v=1714971127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c87ebe0da9b1ba46132d7d3114de7f4df16590e_80808132-75b2-453a-b06b-53e632b4ec82.webp?v=1714971129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f70a6cc8bdfb520eb8e2d6608c9b993ec87a13_2475db2c-2faa-454a-9b73-001514380d8e.webp?v=1714971132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7c4a6896fce536977a6afef73cb7b1019448b20_d552960f-7464-4194-b96f-5c6ff99eb8a0.webp?v=1714971134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0185e3bb72d35caee53927d701e7afe8e15deb_bac729db-0fe9-447b-86a0-f597cd34f5cc.webp?v=1714971136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385db2bac3185eec2e319507af3716e88ed8b207_77dc71c0-ca59-42ba-a9c6-f5a3c3f3a131.webp?v=1714971138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4492ea8fa6b0af73d914279f9428f5f9dc933aaf_b9254dc1-9552-4b70-a948-477c6a40643a.webp?v=1714971141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86970f086cec5ea0f51e8b243515c539c12399eb_04df5cc9-34bc-453f-80da-4a36e5a3541e.webp?v=1714971143"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e37f5f041b8f88d324219a88572a71a022684_d0b1fc98-b543-4414-924b-cec3c5e044c3.webp?v=1714971123","options":["color"],"media":[{"alt":null,"id":23896535728227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e37f5f041b8f88d324219a88572a71a022684_d0b1fc98-b543-4414-924b-cec3c5e044c3.webp?v=1714971123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e37f5f041b8f88d324219a88572a71a022684_d0b1fc98-b543-4414-924b-cec3c5e044c3.webp?v=1714971123","width":2000},{"alt":null,"id":23896536449123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125","width":2000},{"alt":null,"id":23896537006179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/100ca245c53550fe847d74d1eb9462fdd770bb40_47a00a90-7fb8-4d5a-9b1d-8405499ab308.webp?v=1714971127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/100ca245c53550fe847d74d1eb9462fdd770bb40_47a00a90-7fb8-4d5a-9b1d-8405499ab308.webp?v=1714971127","width":2000},{"alt":null,"id":23896537530467,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c87ebe0da9b1ba46132d7d3114de7f4df16590e_80808132-75b2-453a-b06b-53e632b4ec82.webp?v=1714971129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c87ebe0da9b1ba46132d7d3114de7f4df16590e_80808132-75b2-453a-b06b-53e632b4ec82.webp?v=1714971129","width":2000},{"alt":null,"id":23896538054755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f70a6cc8bdfb520eb8e2d6608c9b993ec87a13_2475db2c-2faa-454a-9b73-001514380d8e.webp?v=1714971132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30f70a6cc8bdfb520eb8e2d6608c9b993ec87a13_2475db2c-2faa-454a-9b73-001514380d8e.webp?v=1714971132","width":2000},{"alt":null,"id":23896538579043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7c4a6896fce536977a6afef73cb7b1019448b20_d552960f-7464-4194-b96f-5c6ff99eb8a0.webp?v=1714971134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7c4a6896fce536977a6afef73cb7b1019448b20_d552960f-7464-4194-b96f-5c6ff99eb8a0.webp?v=1714971134","width":2000},{"alt":null,"id":23896539103331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0185e3bb72d35caee53927d701e7afe8e15deb_bac729db-0fe9-447b-86a0-f597cd34f5cc.webp?v=1714971136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0185e3bb72d35caee53927d701e7afe8e15deb_bac729db-0fe9-447b-86a0-f597cd34f5cc.webp?v=1714971136","width":2000},{"alt":null,"id":23896539824227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385db2bac3185eec2e319507af3716e88ed8b207_77dc71c0-ca59-42ba-a9c6-f5a3c3f3a131.webp?v=1714971138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385db2bac3185eec2e319507af3716e88ed8b207_77dc71c0-ca59-42ba-a9c6-f5a3c3f3a131.webp?v=1714971138","width":2000},{"alt":null,"id":23896540315747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4492ea8fa6b0af73d914279f9428f5f9dc933aaf_b9254dc1-9552-4b70-a948-477c6a40643a.webp?v=1714971141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4492ea8fa6b0af73d914279f9428f5f9dc933aaf_b9254dc1-9552-4b70-a948-477c6a40643a.webp?v=1714971141","width":2000},{"alt":null,"id":23896541266019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86970f086cec5ea0f51e8b243515c539c12399eb_04df5cc9-34bc-453f-80da-4a36e5a3541e.webp?v=1714971143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86970f086cec5ea0f51e8b243515c539c12399eb_04df5cc9-34bc-453f-80da-4a36e5a3541e.webp?v=1714971143","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917087154275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491129016419,"product_id":7416066998371,"position":2,"created_at":"2024-05-06T12:52:05+08:00","updated_at":"2024-05-06T12:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125","variant_ids":[41917087154275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ01","featured_media":{"alt":null,"id":23896536449123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917087154275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491129016419,"product_id":7416066998371,"position":2,"created_at":"2024-05-06T12:52:05+08:00","updated_at":"2024-05-06T12:52:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125","variant_ids":[41917087154275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-HQ01","featured_media":{"alt":null,"id":23896536449123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997204ba9576cf4f6f06082ee455803fd6d7126a_70b7fe67-26cd-4f86-acc6-05f13f04b779.webp?v=1714971125"}},"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: "停產" }