$product = {"id":7408395223139,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-12-mini-mod-nx-printable-pb100","description":null,"published_at":"2024-06-11T16:36:04+08:00","created_at":"2024-05-03T15:18:04+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 12 mini","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":41885002334307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31472148611171,"product_id":7408395223139,"position":1,"created_at":"2024-05-03T15:18:06+08:00","updated_at":"2024-05-03T15:18:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","variant_ids":[41885002334307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0118424-PB100","featured_media":{"alt":null,"id":23877064163427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33c059c24c97ef19dc98758d379c8136a9b8f204_f2fcd790-a736-4616-a080-2738750a3676.webp?v=1714720689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/296d0bbaf410a2936f0a4b81498eaf1c647691a8_ee886a4e-5bc3-4fce-99dc-276f2ee7fed2.webp?v=1714720691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425c0a0d44d87e1f926f03689b7806f3b845a325_18ee88e4-b468-4263-a396-0f62e25192e2.webp?v=1714720693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee570b1a90e65b10b89ac92cb5898b15793a9d20_0f3d1c07-afd0-404f-8780-f03fae29fa21.webp?v=1714720696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97af1a7fa852858aa6aa058f00ad888e4ba7f3da_9e85b94f-b491-49ba-943a-06a4c27dce36.webp?v=1714720698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d597bd86ed045db556396118339054cc5453ef6a_f08a8489-25c6-4238-9d54-199fb9195dd5.webp?v=1714720700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e4e686ac733bcb26fab7dcfde2aeb272d3c948_e891cd2b-c595-4b0f-9f57-fe2351a6b125.webp?v=1714720703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d925e5592c7ad9ce272cc9900128d1b3bde92e19_258702bd-e34a-4482-9d1d-55ef4dc13cb4.webp?v=1714720705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922c2c90f48597794a9bfcb430fca761525b79d3_46a49b51-2dbc-4b92-bfbb-c2ef355cab5f.webp?v=1714720707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fa9bf383e8d6cc70beba1e904a24463107a5c1_73835160-143e-4ed0-89e0-8d8c80216db8.webp?v=1714720709"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","options":["color"],"media":[{"alt":null,"id":23877064163427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","width":2000},{"alt":null,"id":23877064851555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33c059c24c97ef19dc98758d379c8136a9b8f204_f2fcd790-a736-4616-a080-2738750a3676.webp?v=1714720689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33c059c24c97ef19dc98758d379c8136a9b8f204_f2fcd790-a736-4616-a080-2738750a3676.webp?v=1714720689","width":2000},{"alt":null,"id":23877065179235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/296d0bbaf410a2936f0a4b81498eaf1c647691a8_ee886a4e-5bc3-4fce-99dc-276f2ee7fed2.webp?v=1714720691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/296d0bbaf410a2936f0a4b81498eaf1c647691a8_ee886a4e-5bc3-4fce-99dc-276f2ee7fed2.webp?v=1714720691","width":2000},{"alt":null,"id":23877065834595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425c0a0d44d87e1f926f03689b7806f3b845a325_18ee88e4-b468-4263-a396-0f62e25192e2.webp?v=1714720693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/425c0a0d44d87e1f926f03689b7806f3b845a325_18ee88e4-b468-4263-a396-0f62e25192e2.webp?v=1714720693","width":2000},{"alt":null,"id":23877066522723,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee570b1a90e65b10b89ac92cb5898b15793a9d20_0f3d1c07-afd0-404f-8780-f03fae29fa21.webp?v=1714720696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee570b1a90e65b10b89ac92cb5898b15793a9d20_0f3d1c07-afd0-404f-8780-f03fae29fa21.webp?v=1714720696","width":2000},{"alt":null,"id":23877067145315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97af1a7fa852858aa6aa058f00ad888e4ba7f3da_9e85b94f-b491-49ba-943a-06a4c27dce36.webp?v=1714720698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97af1a7fa852858aa6aa058f00ad888e4ba7f3da_9e85b94f-b491-49ba-943a-06a4c27dce36.webp?v=1714720698","width":2000},{"alt":null,"id":23877067571299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d597bd86ed045db556396118339054cc5453ef6a_f08a8489-25c6-4238-9d54-199fb9195dd5.webp?v=1714720700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d597bd86ed045db556396118339054cc5453ef6a_f08a8489-25c6-4238-9d54-199fb9195dd5.webp?v=1714720700","width":2000},{"alt":null,"id":23877068030051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e4e686ac733bcb26fab7dcfde2aeb272d3c948_e891cd2b-c595-4b0f-9f57-fe2351a6b125.webp?v=1714720703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76e4e686ac733bcb26fab7dcfde2aeb272d3c948_e891cd2b-c595-4b0f-9f57-fe2351a6b125.webp?v=1714720703","width":2000},{"alt":null,"id":23877068619875,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d925e5592c7ad9ce272cc9900128d1b3bde92e19_258702bd-e34a-4482-9d1d-55ef4dc13cb4.webp?v=1714720705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d925e5592c7ad9ce272cc9900128d1b3bde92e19_258702bd-e34a-4482-9d1d-55ef4dc13cb4.webp?v=1714720705","width":2000},{"alt":null,"id":23877069013091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922c2c90f48597794a9bfcb430fca761525b79d3_46a49b51-2dbc-4b92-bfbb-c2ef355cab5f.webp?v=1714720707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/922c2c90f48597794a9bfcb430fca761525b79d3_46a49b51-2dbc-4b92-bfbb-c2ef355cab5f.webp?v=1714720707","width":2000},{"alt":null,"id":23877069439075,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fa9bf383e8d6cc70beba1e904a24463107a5c1_73835160-143e-4ed0-89e0-8d8c80216db8.webp?v=1714720709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62fa9bf383e8d6cc70beba1e904a24463107a5c1_73835160-143e-4ed0-89e0-8d8c80216db8.webp?v=1714720709","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885002334307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31472148611171,"product_id":7408395223139,"position":1,"created_at":"2024-05-03T15:18:06+08:00","updated_at":"2024-05-03T15:18:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","variant_ids":[41885002334307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0118424-PB100","featured_media":{"alt":null,"id":23877064163427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885002334307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31472148611171,"product_id":7408395223139,"position":1,"created_at":"2024-05-03T15:18:06+08:00","updated_at":"2024-05-03T15:18:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686","variant_ids":[41885002334307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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":"NPB0118424-PB100","featured_media":{"alt":null,"id":23877064163427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95233c72f36a62049fa1e6847a7c76fe9aa1f5c6_4e5c38e6-3d99-441b-a506-f966f6385f04.webp?v=1714720686"}},"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: "停產" }