$product = {"id":7411087016035,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb24","description":null,"published_at":"2024-06-11T17:35:57+08:00","created_at":"2024-05-04T22:40:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41894833127523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476846691,"product_id":7411087016035,"position":3,"created_at":"2024-05-04T22:40:30+08:00","updated_at":"2024-05-04T22:40:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630","variant_ids":[41894833127523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB24","featured_media":{"alt":null,"id":23884724437091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894833258595,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479478091875,"product_id":7411087016035,"position":5,"created_at":"2024-05-04T22:40:35+08:00","updated_at":"2024-05-04T22:40:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635","variant_ids":[41894833258595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-PB24","featured_media":{"alt":null,"id":23884725715043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52c6c7d642e20e175cc2bb9a0cbda72bb5501a36_46d8f3ef-8309-48e8-8ef1-4a5ea238fc40.webp?v=1714833626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083b70f8cc0c2a3219f444994f91e49d7f17d499_92999ebf-f870-46ce-95d6-0992431732cf.webp?v=1714833628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d4c0a1edbb52b52edaee5ada051127c90a354cd_664e8d98-8d8a-4a55-88e2-b93505f6c9e4.webp?v=1714833633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e329ccddc5d9875796dccdd1123bb0bfe1e30d53_5fc00084-8198-4baf-8968-3a35dffc0673.webp?v=1714833640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d900193f7abd913a3c2d9c8aa1d4fa8fc1ee7f_62d6d8b3-186a-4e2e-9846-79104343edae.webp?v=1714833642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abce72a836db39d8694cd297b6296fe6af1e3b6_2931e6a3-10a9-42d5-8de7-aa9d72247919.webp?v=1714833644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a05d286af9780be93553e4bcae27f6a52a4e08_d227e379-e7c0-4bf3-bf42-0eb7cbba4800.webp?v=1714833647"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52c6c7d642e20e175cc2bb9a0cbda72bb5501a36_46d8f3ef-8309-48e8-8ef1-4a5ea238fc40.webp?v=1714833626","options":["color"],"media":[{"alt":null,"id":23884723421283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52c6c7d642e20e175cc2bb9a0cbda72bb5501a36_46d8f3ef-8309-48e8-8ef1-4a5ea238fc40.webp?v=1714833626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52c6c7d642e20e175cc2bb9a0cbda72bb5501a36_46d8f3ef-8309-48e8-8ef1-4a5ea238fc40.webp?v=1714833626","width":2000},{"alt":null,"id":23884724109411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083b70f8cc0c2a3219f444994f91e49d7f17d499_92999ebf-f870-46ce-95d6-0992431732cf.webp?v=1714833628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/083b70f8cc0c2a3219f444994f91e49d7f17d499_92999ebf-f870-46ce-95d6-0992431732cf.webp?v=1714833628","width":2000},{"alt":null,"id":23884724437091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630","width":2000},{"alt":null,"id":23884725092451,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d4c0a1edbb52b52edaee5ada051127c90a354cd_664e8d98-8d8a-4a55-88e2-b93505f6c9e4.webp?v=1714833633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d4c0a1edbb52b52edaee5ada051127c90a354cd_664e8d98-8d8a-4a55-88e2-b93505f6c9e4.webp?v=1714833633","width":2000},{"alt":null,"id":23884725715043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635","width":2000},{"alt":null,"id":23884726730851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e329ccddc5d9875796dccdd1123bb0bfe1e30d53_5fc00084-8198-4baf-8968-3a35dffc0673.webp?v=1714833640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e329ccddc5d9875796dccdd1123bb0bfe1e30d53_5fc00084-8198-4baf-8968-3a35dffc0673.webp?v=1714833640","width":2000},{"alt":null,"id":23884727287907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d900193f7abd913a3c2d9c8aa1d4fa8fc1ee7f_62d6d8b3-186a-4e2e-9846-79104343edae.webp?v=1714833642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52d900193f7abd913a3c2d9c8aa1d4fa8fc1ee7f_62d6d8b3-186a-4e2e-9846-79104343edae.webp?v=1714833642","width":2000},{"alt":null,"id":23884727746659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abce72a836db39d8694cd297b6296fe6af1e3b6_2931e6a3-10a9-42d5-8de7-aa9d72247919.webp?v=1714833644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8abce72a836db39d8694cd297b6296fe6af1e3b6_2931e6a3-10a9-42d5-8de7-aa9d72247919.webp?v=1714833644","width":2000},{"alt":null,"id":23884728238179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a05d286af9780be93553e4bcae27f6a52a4e08_d227e379-e7c0-4bf3-bf42-0eb7cbba4800.webp?v=1714833647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a05d286af9780be93553e4bcae27f6a52a4e08_d227e379-e7c0-4bf3-bf42-0eb7cbba4800.webp?v=1714833647","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894833127523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476846691,"product_id":7411087016035,"position":3,"created_at":"2024-05-04T22:40:30+08:00","updated_at":"2024-05-04T22:40:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630","variant_ids":[41894833127523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB24","featured_media":{"alt":null,"id":23884724437091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894833258595,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479478091875,"product_id":7411087016035,"position":5,"created_at":"2024-05-04T22:40:35+08:00","updated_at":"2024-05-04T22:40:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635","variant_ids":[41894833258595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-PB24","featured_media":{"alt":null,"id":23884725715043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32d3e2c281360c176fe807ad8fdfa26b94c29181_7e82e66e-e459-47ef-8309-3f54149de78b.webp?v=1714833635"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894833127523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479476846691,"product_id":7411087016035,"position":3,"created_at":"2024-05-04T22:40:30+08:00","updated_at":"2024-05-04T22:40:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630","variant_ids":[41894833127523]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-PB24","featured_media":{"alt":null,"id":23884724437091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5f3545c45280f4edcba1fe5efaf8f9105612c3c_d333b932-3796-422e-b89a-d4f8d68daa41.webp?v=1714833630"}},"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: "停產" }