$product = {"id":7408450109539,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-12-pro-max-mod-nx-printable-pb06","description":null,"published_at":"2024-06-11T16:37:33+08:00","created_at":"2024-05-03T15:28:47+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":41885609033827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472308322403,"product_id":7408450109539,"position":4,"created_at":"2024-05-03T15:28:55+08:00","updated_at":"2024-05-03T15:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335","variant_ids":[41885609033827]},"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-PB06","featured_media":{"alt":null,"id":23877224693859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec6229c3ee8b6c5912d6da185d05f471d7fb97c_2cffddfb-224f-4d5e-bf16-06351707ff1b.webp?v=1714721329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2010a2e4b827c34d4fca85da6019bfa8cdff0ed_bd21eae7-2aa2-4d57-9827-b6e65a6ea8c0.webp?v=1714721331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bcbbadfcc37f9bd75acacb294973ef4231e3d2_5fdeb49f-6c6e-436b-b50e-f21e0a4dcb73.webp?v=1714721333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e6597695c4c6ff6bde116d5b2815dacca665e50_4b76f35f-140c-416b-a1d2-78e7461dcaf6.webp?v=1714721338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49c6de1a59bad9d1e9220c48a3a22af69cc38c8_282dc1e0-9797-45ea-814f-fe3530c9141a.webp?v=1714721340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87633246cc670c2d162655ddfe1960a4c6f3e37f_e80cac93-a45f-4d51-aaf8-b4fb2c57a5a1.webp?v=1714721342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d20c1da80be5dcf1c3eb316d524172f618b1a7_0eb01340-15cb-4148-b2d2-ebfd990b764a.webp?v=1714721344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af3afeca0dc8470a16132663c1d4c3278ae56495_43b2eaee-4d73-498a-bdac-000487e5a463.webp?v=1714721347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820dc901c2094d412691eda6c7e5b392a4178d89_c4bc7e4a-0043-405b-b610-e40a77094cf9.webp?v=1714721349"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec6229c3ee8b6c5912d6da185d05f471d7fb97c_2cffddfb-224f-4d5e-bf16-06351707ff1b.webp?v=1714721329","options":["color"],"media":[{"alt":null,"id":23877223481443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec6229c3ee8b6c5912d6da185d05f471d7fb97c_2cffddfb-224f-4d5e-bf16-06351707ff1b.webp?v=1714721329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec6229c3ee8b6c5912d6da185d05f471d7fb97c_2cffddfb-224f-4d5e-bf16-06351707ff1b.webp?v=1714721329","width":2000},{"alt":null,"id":23877223874659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2010a2e4b827c34d4fca85da6019bfa8cdff0ed_bd21eae7-2aa2-4d57-9827-b6e65a6ea8c0.webp?v=1714721331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2010a2e4b827c34d4fca85da6019bfa8cdff0ed_bd21eae7-2aa2-4d57-9827-b6e65a6ea8c0.webp?v=1714721331","width":2000},{"alt":null,"id":23877224366179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bcbbadfcc37f9bd75acacb294973ef4231e3d2_5fdeb49f-6c6e-436b-b50e-f21e0a4dcb73.webp?v=1714721333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1bcbbadfcc37f9bd75acacb294973ef4231e3d2_5fdeb49f-6c6e-436b-b50e-f21e0a4dcb73.webp?v=1714721333","width":2000},{"alt":null,"id":23877224693859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335","width":2000},{"alt":null,"id":23877225250915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e6597695c4c6ff6bde116d5b2815dacca665e50_4b76f35f-140c-416b-a1d2-78e7461dcaf6.webp?v=1714721338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e6597695c4c6ff6bde116d5b2815dacca665e50_4b76f35f-140c-416b-a1d2-78e7461dcaf6.webp?v=1714721338","width":2000},{"alt":null,"id":23877225578595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49c6de1a59bad9d1e9220c48a3a22af69cc38c8_282dc1e0-9797-45ea-814f-fe3530c9141a.webp?v=1714721340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49c6de1a59bad9d1e9220c48a3a22af69cc38c8_282dc1e0-9797-45ea-814f-fe3530c9141a.webp?v=1714721340","width":2000},{"alt":null,"id":23877226365027,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87633246cc670c2d162655ddfe1960a4c6f3e37f_e80cac93-a45f-4d51-aaf8-b4fb2c57a5a1.webp?v=1714721342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87633246cc670c2d162655ddfe1960a4c6f3e37f_e80cac93-a45f-4d51-aaf8-b4fb2c57a5a1.webp?v=1714721342","width":2000},{"alt":null,"id":23877226627171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d20c1da80be5dcf1c3eb316d524172f618b1a7_0eb01340-15cb-4148-b2d2-ebfd990b764a.webp?v=1714721344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d20c1da80be5dcf1c3eb316d524172f618b1a7_0eb01340-15cb-4148-b2d2-ebfd990b764a.webp?v=1714721344","width":2000},{"alt":null,"id":23877227249763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af3afeca0dc8470a16132663c1d4c3278ae56495_43b2eaee-4d73-498a-bdac-000487e5a463.webp?v=1714721347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af3afeca0dc8470a16132663c1d4c3278ae56495_43b2eaee-4d73-498a-bdac-000487e5a463.webp?v=1714721347","width":2000},{"alt":null,"id":23877227610211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820dc901c2094d412691eda6c7e5b392a4178d89_c4bc7e4a-0043-405b-b610-e40a77094cf9.webp?v=1714721349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/820dc901c2094d412691eda6c7e5b392a4178d89_c4bc7e4a-0043-405b-b610-e40a77094cf9.webp?v=1714721349","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885609033827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472308322403,"product_id":7408450109539,"position":4,"created_at":"2024-05-03T15:28:55+08:00","updated_at":"2024-05-03T15:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335","variant_ids":[41885609033827]},"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-PB06","featured_media":{"alt":null,"id":23877224693859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885609033827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472308322403,"product_id":7408450109539,"position":4,"created_at":"2024-05-03T15:28:55+08:00","updated_at":"2024-05-03T15:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335","variant_ids":[41885609033827]},"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-PB06","featured_media":{"alt":null,"id":23877224693859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36217a439b2576d94736a91386ef659e568fd3b3_12088725-1715-4aee-a579-bae68b76301e.webp?v=1714721335"}},"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: "停產" }