$product = {"id":7408552935523,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-12-mini-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:40:31+08:00","created_at":"2024-05-03T15:49:18+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":41886792056931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472574300259,"product_id":7408552935523,"position":7,"created_at":"2024-05-03T15:49:33+08:00","updated_at":"2024-05-03T15:49:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573","variant_ids":[41886792056931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB77","featured_media":{"alt":null,"id":23877491654755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1f98588109b5f5ea9dd7b87cd9c8711c7593b2_dcd30160-be84-4613-95d0-b0aa2b541909.webp?v=1714722560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101f2fb94c4862a288af57f9ad987fc6d62865f8_84ad386b-4564-4f77-b471-206310b5a23a.webp?v=1714722563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/979720ee44d2a17b8298f4c1ac58624a6a8a5a08_8c79a067-1649-4157-8eaf-574a50e657e0.webp?v=1714722565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464896d4f1ddaf337224383ec6493a9e656a907f_53560444-45ae-453b-b3bc-4299f4e62490.webp?v=1714722567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42144b8488564219e2b352762ccc3919b25fc912_1255c2e1-cc2a-4618-9755-23749b3ff1f4.webp?v=1714722569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4f1a042bb0e69545d95a7ae28b4d8bf79eacb4_efa83960-bc8f-4886-b1c1-b988f84600ac.webp?v=1714722571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78b6c88ae9bc1e93aba9995956f2922b3a8bef_99784760-d199-457f-bebc-4dc16bc0fa32.webp?v=1714722576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc00f87fce58812fd8d79a7a96b17a70dc2ce3f_7f020529-da1d-4f3e-b42c-09539f6be7f5.webp?v=1714722578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80286adeae36194945f5f56e7b80bc8262971d2a_99973966-0570-4fb5-bc40-c5aadc638e4f.webp?v=1714722580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43750cfae9c551ad48065045c9c714daf1a422b_56de914b-a45c-42a6-9bf6-82fea35e3383.webp?v=1714722582"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1f98588109b5f5ea9dd7b87cd9c8711c7593b2_dcd30160-be84-4613-95d0-b0aa2b541909.webp?v=1714722560","options":["color"],"media":[{"alt":null,"id":23877488640099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1f98588109b5f5ea9dd7b87cd9c8711c7593b2_dcd30160-be84-4613-95d0-b0aa2b541909.webp?v=1714722560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b1f98588109b5f5ea9dd7b87cd9c8711c7593b2_dcd30160-be84-4613-95d0-b0aa2b541909.webp?v=1714722560","width":2000},{"alt":null,"id":23877489098851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101f2fb94c4862a288af57f9ad987fc6d62865f8_84ad386b-4564-4f77-b471-206310b5a23a.webp?v=1714722563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101f2fb94c4862a288af57f9ad987fc6d62865f8_84ad386b-4564-4f77-b471-206310b5a23a.webp?v=1714722563","width":2000},{"alt":null,"id":23877489557603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/979720ee44d2a17b8298f4c1ac58624a6a8a5a08_8c79a067-1649-4157-8eaf-574a50e657e0.webp?v=1714722565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/979720ee44d2a17b8298f4c1ac58624a6a8a5a08_8c79a067-1649-4157-8eaf-574a50e657e0.webp?v=1714722565","width":2000},{"alt":null,"id":23877490049123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464896d4f1ddaf337224383ec6493a9e656a907f_53560444-45ae-453b-b3bc-4299f4e62490.webp?v=1714722567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/464896d4f1ddaf337224383ec6493a9e656a907f_53560444-45ae-453b-b3bc-4299f4e62490.webp?v=1714722567","width":2000},{"alt":null,"id":23877490606179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42144b8488564219e2b352762ccc3919b25fc912_1255c2e1-cc2a-4618-9755-23749b3ff1f4.webp?v=1714722569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42144b8488564219e2b352762ccc3919b25fc912_1255c2e1-cc2a-4618-9755-23749b3ff1f4.webp?v=1714722569","width":2000},{"alt":null,"id":23877491130467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4f1a042bb0e69545d95a7ae28b4d8bf79eacb4_efa83960-bc8f-4886-b1c1-b988f84600ac.webp?v=1714722571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4f1a042bb0e69545d95a7ae28b4d8bf79eacb4_efa83960-bc8f-4886-b1c1-b988f84600ac.webp?v=1714722571","width":2000},{"alt":null,"id":23877491654755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573","width":2000},{"alt":null,"id":23877492244579,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78b6c88ae9bc1e93aba9995956f2922b3a8bef_99784760-d199-457f-bebc-4dc16bc0fa32.webp?v=1714722576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae78b6c88ae9bc1e93aba9995956f2922b3a8bef_99784760-d199-457f-bebc-4dc16bc0fa32.webp?v=1714722576","width":2000},{"alt":null,"id":23877492572259,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc00f87fce58812fd8d79a7a96b17a70dc2ce3f_7f020529-da1d-4f3e-b42c-09539f6be7f5.webp?v=1714722578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc00f87fce58812fd8d79a7a96b17a70dc2ce3f_7f020529-da1d-4f3e-b42c-09539f6be7f5.webp?v=1714722578","width":2000},{"alt":null,"id":23877492932707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80286adeae36194945f5f56e7b80bc8262971d2a_99973966-0570-4fb5-bc40-c5aadc638e4f.webp?v=1714722580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80286adeae36194945f5f56e7b80bc8262971d2a_99973966-0570-4fb5-bc40-c5aadc638e4f.webp?v=1714722580","width":2000},{"alt":null,"id":23877493424227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43750cfae9c551ad48065045c9c714daf1a422b_56de914b-a45c-42a6-9bf6-82fea35e3383.webp?v=1714722582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43750cfae9c551ad48065045c9c714daf1a422b_56de914b-a45c-42a6-9bf6-82fea35e3383.webp?v=1714722582","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886792056931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472574300259,"product_id":7408552935523,"position":7,"created_at":"2024-05-03T15:49:33+08:00","updated_at":"2024-05-03T15:49:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573","variant_ids":[41886792056931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB77","featured_media":{"alt":null,"id":23877491654755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886792056931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472574300259,"product_id":7408552935523,"position":7,"created_at":"2024-05-03T15:49:33+08:00","updated_at":"2024-05-03T15:49:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573","variant_ids":[41886792056931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PB77","featured_media":{"alt":null,"id":23877491654755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb006ec5babd082943d64254765b4316e26c3511_86580afc-efe2-4343-bdf0-34b6f8106148.webp?v=1714722573"}},"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: "停產" }