$product = {"id":7407392260195,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-15-plus-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:14:54+08:00","created_at":"2024-05-03T09:41:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41874719899747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31469450625123,"product_id":7407392260195,"position":8,"created_at":"2024-05-03T09:41:58+08:00","updated_at":"2024-05-03T09:41:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518","variant_ids":[41874719899747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報 - 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-PB101","featured_media":{"alt":null,"id":23874351693923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41874720194659,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31469450068067,"product_id":7407392260195,"position":7,"created_at":"2024-05-03T09:41:55+08:00","updated_at":"2024-05-03T09:41:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515","variant_ids":[41874720194659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報 - 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-PB101","featured_media":{"alt":null,"id":23874351169635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b405581daac06b48c0080c6849006330fad0090_1be4ea2c-2c0d-4b41-bd4f-464b51f74dcb.webp?v=1714700500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd99836a7ef321bae43d572bd18e12091b145eb1_7be0fdd3-2f5f-421b-96e1-9c125ee66275.webp?v=1714700503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e33ffb459a187c57b4c8cace28e70a4f9bf96fc_c670a099-78dc-40e1-bd7e-5b2a42311194.webp?v=1714700505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58342978e18fb1d9fedb96e070ce0c9e2aac2c53_b8fc1de5-3fa3-4fe7-b609-987d5a5cb730.webp?v=1714700508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5afa4bcc66fc9801d0d2cf1dcde7f9021197c68_8d1365e1-fe8e-4d07-a12e-a6cca909a9d7.webp?v=1714700510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158edd784772b44126df639cbd73165b1e168601_b25786dd-64da-4578-9c3d-d8341cbeb8d0.webp?v=1714700513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba86b0d196f5d11017fb2540b11a5b386ba4ba30_badab47f-e623-4ea8-be48-8c6a8f39f8bf.webp?v=1714700520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fc8b85f0cec793eb02ac62a6422d1dace745f1_74b257ff-cf3c-4ee7-a4d7-ff6ae52a1338.webp?v=1714700523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b405581daac06b48c0080c6849006330fad0090_1be4ea2c-2c0d-4b41-bd4f-464b51f74dcb.webp?v=1714700500","options":["color"],"media":[{"alt":null,"id":23874347827299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b405581daac06b48c0080c6849006330fad0090_1be4ea2c-2c0d-4b41-bd4f-464b51f74dcb.webp?v=1714700500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b405581daac06b48c0080c6849006330fad0090_1be4ea2c-2c0d-4b41-bd4f-464b51f74dcb.webp?v=1714700500","width":2000},{"alt":null,"id":23874348417123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd99836a7ef321bae43d572bd18e12091b145eb1_7be0fdd3-2f5f-421b-96e1-9c125ee66275.webp?v=1714700503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd99836a7ef321bae43d572bd18e12091b145eb1_7be0fdd3-2f5f-421b-96e1-9c125ee66275.webp?v=1714700503","width":2000},{"alt":null,"id":23874348974179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e33ffb459a187c57b4c8cace28e70a4f9bf96fc_c670a099-78dc-40e1-bd7e-5b2a42311194.webp?v=1714700505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e33ffb459a187c57b4c8cace28e70a4f9bf96fc_c670a099-78dc-40e1-bd7e-5b2a42311194.webp?v=1714700505","width":2000},{"alt":null,"id":23874349596771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58342978e18fb1d9fedb96e070ce0c9e2aac2c53_b8fc1de5-3fa3-4fe7-b609-987d5a5cb730.webp?v=1714700508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58342978e18fb1d9fedb96e070ce0c9e2aac2c53_b8fc1de5-3fa3-4fe7-b609-987d5a5cb730.webp?v=1714700508","width":2000},{"alt":null,"id":23874350153827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5afa4bcc66fc9801d0d2cf1dcde7f9021197c68_8d1365e1-fe8e-4d07-a12e-a6cca909a9d7.webp?v=1714700510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5afa4bcc66fc9801d0d2cf1dcde7f9021197c68_8d1365e1-fe8e-4d07-a12e-a6cca909a9d7.webp?v=1714700510","width":2000},{"alt":null,"id":23874350547043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158edd784772b44126df639cbd73165b1e168601_b25786dd-64da-4578-9c3d-d8341cbeb8d0.webp?v=1714700513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158edd784772b44126df639cbd73165b1e168601_b25786dd-64da-4578-9c3d-d8341cbeb8d0.webp?v=1714700513","width":2000},{"alt":null,"id":23874351169635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515","width":2000},{"alt":null,"id":23874351693923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518","width":2000},{"alt":null,"id":23874352218211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba86b0d196f5d11017fb2540b11a5b386ba4ba30_badab47f-e623-4ea8-be48-8c6a8f39f8bf.webp?v=1714700520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba86b0d196f5d11017fb2540b11a5b386ba4ba30_badab47f-e623-4ea8-be48-8c6a8f39f8bf.webp?v=1714700520","width":2000},{"alt":null,"id":23874352775267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fc8b85f0cec793eb02ac62a6422d1dace745f1_74b257ff-cf3c-4ee7-a4d7-ff6ae52a1338.webp?v=1714700523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2fc8b85f0cec793eb02ac62a6422d1dace745f1_74b257ff-cf3c-4ee7-a4d7-ff6ae52a1338.webp?v=1714700523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41874719899747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31469450625123,"product_id":7407392260195,"position":8,"created_at":"2024-05-03T09:41:58+08:00","updated_at":"2024-05-03T09:41:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518","variant_ids":[41874719899747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報 - 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-PB101","featured_media":{"alt":null,"id":23874351693923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41874720194659,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31469450068067,"product_id":7407392260195,"position":7,"created_at":"2024-05-03T09:41:55+08:00","updated_at":"2024-05-03T09:41:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515","variant_ids":[41874720194659]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報 - 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-PB101","featured_media":{"alt":null,"id":23874351169635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0d4d6974704d84de1b33832ac76c688796a16b1_0029d33e-21d4-4b4d-8af1-677a2686d011.webp?v=1714700515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41874719899747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31469450625123,"product_id":7407392260195,"position":8,"created_at":"2024-05-03T09:41:58+08:00","updated_at":"2024-05-03T09:41:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518","variant_ids":[41874719899747]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報 - 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-PB101","featured_media":{"alt":null,"id":23874351693923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6896c4e67684762e8b944d2dae079cf3a0ebfa80_64e71761-1d2e-4ff6-a13a-4dae4a9c105d.webp?v=1714700518"}},"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: "停產" }