$product = {"id":7408539598947,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-12-pro-max-mod-nx-printable-pb79","description":null,"published_at":"2024-06-11T16:40:06+08:00","created_at":"2024-05-03T15:46:26+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 pro max","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":41886635065443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31472536453219,"product_id":7408539598947,"position":6,"created_at":"2024-05-03T15:46:40+08:00","updated_at":"2024-05-03T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400","variant_ids":[41886635065443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB79","featured_media":{"alt":null,"id":23877453742179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5170310e6a4e2d7af4da95fe8b6c092d8c927ac_2c18a9b7-5941-4a86-bb01-a583bed06607.webp?v=1714722389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904512aac055d6cf9158b256c86251df5ea72d54_019dc228-b1af-4cd6-a1be-4f7b59ddb76d.webp?v=1714722391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86472473209bae91092444b4f48cd8315b4df60_56d54f7d-03f0-43fe-b28f-d25710fc41b5.webp?v=1714722393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485c75a314eee1892167184c4e50f09c3e257dac_8024325b-a26c-4275-9638-effef4f6e186.webp?v=1714722395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf2a5ae205114ed7da8b1e2ceb1528eb0c64c_a6607479-55f4-4139-8528-1afb032ae117.webp?v=1714722398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a0bfbefb59396cbc0fc06d9a5f28aa200b7cd23_5c9d0b0d-e20c-46c1-9bd9-a1f9a2e9cfb9.webp?v=1714722402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5465058e3153116f9d492b5adcd151f4500d2_fbbc4b85-7473-48da-afd9-11db75211f36.webp?v=1714722405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a277709d71a0756c2b57089190a6e60d3ad4b0b_c114c2c2-a244-468b-8281-a718bdbd225d.webp?v=1714722407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de953fcaacaab1c60484526fb1c4088e7bcf6a_dd355256-9b9a-4f5c-b72e-6ae1acb14c5f.webp?v=1714722409"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5170310e6a4e2d7af4da95fe8b6c092d8c927ac_2c18a9b7-5941-4a86-bb01-a583bed06607.webp?v=1714722389","options":["color"],"media":[{"alt":null,"id":23877451382883,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5170310e6a4e2d7af4da95fe8b6c092d8c927ac_2c18a9b7-5941-4a86-bb01-a583bed06607.webp?v=1714722389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5170310e6a4e2d7af4da95fe8b6c092d8c927ac_2c18a9b7-5941-4a86-bb01-a583bed06607.webp?v=1714722389","width":2000},{"alt":null,"id":23877451939939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904512aac055d6cf9158b256c86251df5ea72d54_019dc228-b1af-4cd6-a1be-4f7b59ddb76d.webp?v=1714722391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904512aac055d6cf9158b256c86251df5ea72d54_019dc228-b1af-4cd6-a1be-4f7b59ddb76d.webp?v=1714722391","width":2000},{"alt":null,"id":23877452300387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86472473209bae91092444b4f48cd8315b4df60_56d54f7d-03f0-43fe-b28f-d25710fc41b5.webp?v=1714722393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a86472473209bae91092444b4f48cd8315b4df60_56d54f7d-03f0-43fe-b28f-d25710fc41b5.webp?v=1714722393","width":2000},{"alt":null,"id":23877452726371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485c75a314eee1892167184c4e50f09c3e257dac_8024325b-a26c-4275-9638-effef4f6e186.webp?v=1714722395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485c75a314eee1892167184c4e50f09c3e257dac_8024325b-a26c-4275-9638-effef4f6e186.webp?v=1714722395","width":2000},{"alt":null,"id":23877453283427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf2a5ae205114ed7da8b1e2ceb1528eb0c64c_a6607479-55f4-4139-8528-1afb032ae117.webp?v=1714722398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf2a5ae205114ed7da8b1e2ceb1528eb0c64c_a6607479-55f4-4139-8528-1afb032ae117.webp?v=1714722398","width":2000},{"alt":null,"id":23877453742179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400","width":2000},{"alt":null,"id":23877454266467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a0bfbefb59396cbc0fc06d9a5f28aa200b7cd23_5c9d0b0d-e20c-46c1-9bd9-a1f9a2e9cfb9.webp?v=1714722402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a0bfbefb59396cbc0fc06d9a5f28aa200b7cd23_5c9d0b0d-e20c-46c1-9bd9-a1f9a2e9cfb9.webp?v=1714722402","width":2000},{"alt":null,"id":23877454692451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5465058e3153116f9d492b5adcd151f4500d2_fbbc4b85-7473-48da-afd9-11db75211f36.webp?v=1714722405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8dc5465058e3153116f9d492b5adcd151f4500d2_fbbc4b85-7473-48da-afd9-11db75211f36.webp?v=1714722405","width":2000},{"alt":null,"id":23877455216739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a277709d71a0756c2b57089190a6e60d3ad4b0b_c114c2c2-a244-468b-8281-a718bdbd225d.webp?v=1714722407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a277709d71a0756c2b57089190a6e60d3ad4b0b_c114c2c2-a244-468b-8281-a718bdbd225d.webp?v=1714722407","width":2000},{"alt":null,"id":23877455806563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de953fcaacaab1c60484526fb1c4088e7bcf6a_dd355256-9b9a-4f5c-b72e-6ae1acb14c5f.webp?v=1714722409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13de953fcaacaab1c60484526fb1c4088e7bcf6a_dd355256-9b9a-4f5c-b72e-6ae1acb14c5f.webp?v=1714722409","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886635065443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31472536453219,"product_id":7408539598947,"position":6,"created_at":"2024-05-03T15:46:40+08:00","updated_at":"2024-05-03T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400","variant_ids":[41886635065443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB79","featured_media":{"alt":null,"id":23877453742179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886635065443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31472536453219,"product_id":7408539598947,"position":6,"created_at":"2024-05-03T15:46:40+08:00","updated_at":"2024-05-03T15:46:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400","variant_ids":[41886635065443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118724-PB79","featured_media":{"alt":null,"id":23877453742179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d316afb1f270503daea9d8297f830055bb879562_bb3e1275-2ade-48e1-b0a2-eec2b56e87a5.webp?v=1714722400"}},"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: "停產" }