$product = {"id":7407625863267,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛","handle":"iphone-15-plus-mod-nx-printable-yf02","description":null,"published_at":"2024-06-11T16:20:56+08:00","created_at":"2024-05-03T10:22:44+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41876921679971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470065156195,"product_id":7407625863267,"position":1,"created_at":"2024-05-03T10:22:46+08:00","updated_at":"2024-05-03T10:22:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","variant_ids":[41876921679971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0129624-YF02","featured_media":{"alt":null,"id":23874967470179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876921811043,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470069383267,"product_id":7407625863267,"position":9,"created_at":"2024-05-03T10:23:09+08:00","updated_at":"2024-05-03T10:23:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989","variant_ids":[41876921811043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0129657-YF02","featured_media":{"alt":null,"id":23874971598947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30e2f3d8ce5291fcbdadab591eb012538be7c6f_a2c326d8-15ba-47d0-8405-34837ddf5eb3.webp?v=1714702969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9c28d39e4e291407e64ccd53905f0003ab041a_b1bdc79c-dd84-4ca9-a01c-e422bf9bf9ef.webp?v=1714702971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0052939a78b3e31d9d3db230ba645efe6681af6_0f3b9e52-0a59-4143-be25-f18e0cefd7f6.webp?v=1714702974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6cdcc0b7cedf7db46a03f77646d7be775c9b5d_47433fd2-9058-4358-bea4-1b5bec707903.webp?v=1714702976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bca7fc50f9f11616e33fbde96fa416bb21f9c549_1f455b65-7583-4838-8136-2711b4d570e3.webp?v=1714702982","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d022ab6a3862df65ec8bef32dae12da96995f2_0c18d08b-11cc-4642-b26f-8086cae68423.webp?v=1714702984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cadaf59b0ee5d8df2727ba4c9eb3e4cc65baa101_caaa384f-96f9-4b68-a702-301314540325.webp?v=1714702987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","options":["color"],"media":[{"alt":null,"id":23874967470179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","width":2000},{"alt":null,"id":23874967928931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30e2f3d8ce5291fcbdadab591eb012538be7c6f_a2c326d8-15ba-47d0-8405-34837ddf5eb3.webp?v=1714702969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c30e2f3d8ce5291fcbdadab591eb012538be7c6f_a2c326d8-15ba-47d0-8405-34837ddf5eb3.webp?v=1714702969","width":2000},{"alt":null,"id":23874968453219,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9c28d39e4e291407e64ccd53905f0003ab041a_b1bdc79c-dd84-4ca9-a01c-e422bf9bf9ef.webp?v=1714702971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9c28d39e4e291407e64ccd53905f0003ab041a_b1bdc79c-dd84-4ca9-a01c-e422bf9bf9ef.webp?v=1714702971","width":2000},{"alt":null,"id":23874969043043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0052939a78b3e31d9d3db230ba645efe6681af6_0f3b9e52-0a59-4143-be25-f18e0cefd7f6.webp?v=1714702974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0052939a78b3e31d9d3db230ba645efe6681af6_0f3b9e52-0a59-4143-be25-f18e0cefd7f6.webp?v=1714702974","width":2000},{"alt":null,"id":23874969469027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6cdcc0b7cedf7db46a03f77646d7be775c9b5d_47433fd2-9058-4358-bea4-1b5bec707903.webp?v=1714702976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6cdcc0b7cedf7db46a03f77646d7be775c9b5d_47433fd2-9058-4358-bea4-1b5bec707903.webp?v=1714702976","width":2000},{"alt":null,"id":23874970320995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bca7fc50f9f11616e33fbde96fa416bb21f9c549_1f455b65-7583-4838-8136-2711b4d570e3.webp?v=1714702982"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bca7fc50f9f11616e33fbde96fa416bb21f9c549_1f455b65-7583-4838-8136-2711b4d570e3.webp?v=1714702982","width":2000},{"alt":null,"id":23874970812515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d022ab6a3862df65ec8bef32dae12da96995f2_0c18d08b-11cc-4642-b26f-8086cae68423.webp?v=1714702984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8d022ab6a3862df65ec8bef32dae12da96995f2_0c18d08b-11cc-4642-b26f-8086cae68423.webp?v=1714702984","width":2000},{"alt":null,"id":23874971205731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cadaf59b0ee5d8df2727ba4c9eb3e4cc65baa101_caaa384f-96f9-4b68-a702-301314540325.webp?v=1714702987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cadaf59b0ee5d8df2727ba4c9eb3e4cc65baa101_caaa384f-96f9-4b68-a702-301314540325.webp?v=1714702987","width":2000},{"alt":null,"id":23874971598947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876921679971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470065156195,"product_id":7407625863267,"position":1,"created_at":"2024-05-03T10:22:46+08:00","updated_at":"2024-05-03T10:22:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","variant_ids":[41876921679971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0129624-YF02","featured_media":{"alt":null,"id":23874967470179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876921811043,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470069383267,"product_id":7407625863267,"position":9,"created_at":"2024-05-03T10:23:09+08:00","updated_at":"2024-05-03T10:23:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989","variant_ids":[41876921811043]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0129657-YF02","featured_media":{"alt":null,"id":23874971598947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf7e5fb6c73cd713eed6ef38047a929d7113cf52_25f088b9-850b-40e6-b46e-9039b0db5569.webp?v=1714702989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876921679971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470065156195,"product_id":7407625863267,"position":1,"created_at":"2024-05-03T10:22:46+08:00","updated_at":"2024-05-03T10:22:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966","variant_ids":[41876921679971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 搞怪系列-怪可愛 - 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":"NPB0129624-YF02","featured_media":{"alt":null,"id":23874967470179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaa6b6bf3f92a2184131af4a2bd77e32a264afe8_db9c0c6a-c860-42b6-824b-5881c76ab8cb.webp?v=1714702966"}},"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: "停產" }