$product = {"id":7408396468323,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠俠出任務","handle":"iphone-12-pro-max-mod-nx-printable-sb06","description":null,"published_at":"2024-06-11T16:36:06+08:00","created_at":"2024-05-03T15:18:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41885020553315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472152969315,"product_id":7408396468323,"position":1,"created_at":"2024-05-03T15:18:25+08:00","updated_at":"2024-05-03T15:18:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","variant_ids":[41885020553315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23877068554339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bde010eb1637223c0660501c0e03afdc6a25ccc_68151a1f-ff71-4aaf-9c6b-cd8d5e97d621.webp?v=1714720707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ba33de2e652dc176959fe1fdaea4a9aaa92cc_c42bdf87-c02a-4b0c-9314-79f9c5df1cda.webp?v=1714720710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2068fef25b076ad5ea55c1646157bc107911191_0fc1b24b-206e-490f-bec9-87c1f2c4360a.webp?v=1714720712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750188868f1b46415fe47a848937f992315c0c6d_02f437f9-aa0b-4149-88b3-d788e8146bb1.webp?v=1714720715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d03266a6dcb986d14bb9b88af55072ead05ad0_d69edb0f-eb9b-47ce-904e-30a650ae7540.webp?v=1714720717","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e767bc6f8cecde1fb2ba4c6c9141429b09d6c5c5_559b64a4-bf37-422c-9b57-1e0b5890e1a5.webp?v=1714720720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7332b9fbd15883115412b53f4261a8925812079_d00da96c-3c80-4d0f-b2ce-338b0cc34269.webp?v=1714720722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af5a59338e770271f3c84b5380ae6b624439_9e2844de-ac46-41bc-9c2d-522116960273.webp?v=1714720725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf52737117e4cb34d0aa050a17f53a578cc099b_4f6fcec5-af53-4559-9f4d-28514fe2fd93.webp?v=1714720727"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","options":["color"],"media":[{"alt":null,"id":23877068554339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","width":2000},{"alt":null,"id":23877069045859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bde010eb1637223c0660501c0e03afdc6a25ccc_68151a1f-ff71-4aaf-9c6b-cd8d5e97d621.webp?v=1714720707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bde010eb1637223c0660501c0e03afdc6a25ccc_68151a1f-ff71-4aaf-9c6b-cd8d5e97d621.webp?v=1714720707","width":2000},{"alt":null,"id":23877069471843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ba33de2e652dc176959fe1fdaea4a9aaa92cc_c42bdf87-c02a-4b0c-9314-79f9c5df1cda.webp?v=1714720710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/117ba33de2e652dc176959fe1fdaea4a9aaa92cc_c42bdf87-c02a-4b0c-9314-79f9c5df1cda.webp?v=1714720710","width":2000},{"alt":null,"id":23877069963363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2068fef25b076ad5ea55c1646157bc107911191_0fc1b24b-206e-490f-bec9-87c1f2c4360a.webp?v=1714720712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2068fef25b076ad5ea55c1646157bc107911191_0fc1b24b-206e-490f-bec9-87c1f2c4360a.webp?v=1714720712","width":2000},{"alt":null,"id":23877070749795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750188868f1b46415fe47a848937f992315c0c6d_02f437f9-aa0b-4149-88b3-d788e8146bb1.webp?v=1714720715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/750188868f1b46415fe47a848937f992315c0c6d_02f437f9-aa0b-4149-88b3-d788e8146bb1.webp?v=1714720715","width":2000},{"alt":null,"id":23877071175779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d03266a6dcb986d14bb9b88af55072ead05ad0_d69edb0f-eb9b-47ce-904e-30a650ae7540.webp?v=1714720717"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d03266a6dcb986d14bb9b88af55072ead05ad0_d69edb0f-eb9b-47ce-904e-30a650ae7540.webp?v=1714720717","width":2000},{"alt":null,"id":23877071700067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e767bc6f8cecde1fb2ba4c6c9141429b09d6c5c5_559b64a4-bf37-422c-9b57-1e0b5890e1a5.webp?v=1714720720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e767bc6f8cecde1fb2ba4c6c9141429b09d6c5c5_559b64a4-bf37-422c-9b57-1e0b5890e1a5.webp?v=1714720720","width":2000},{"alt":null,"id":23877072126051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7332b9fbd15883115412b53f4261a8925812079_d00da96c-3c80-4d0f-b2ce-338b0cc34269.webp?v=1714720722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7332b9fbd15883115412b53f4261a8925812079_d00da96c-3c80-4d0f-b2ce-338b0cc34269.webp?v=1714720722","width":2000},{"alt":null,"id":23877072683107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af5a59338e770271f3c84b5380ae6b624439_9e2844de-ac46-41bc-9c2d-522116960273.webp?v=1714720725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af5a59338e770271f3c84b5380ae6b624439_9e2844de-ac46-41bc-9c2d-522116960273.webp?v=1714720725","width":2000},{"alt":null,"id":23877073174627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf52737117e4cb34d0aa050a17f53a578cc099b_4f6fcec5-af53-4559-9f4d-28514fe2fd93.webp?v=1714720727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aaf52737117e4cb34d0aa050a17f53a578cc099b_4f6fcec5-af53-4559-9f4d-28514fe2fd93.webp?v=1714720727","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885020553315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472152969315,"product_id":7408396468323,"position":1,"created_at":"2024-05-03T15:18:25+08:00","updated_at":"2024-05-03T15:18:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","variant_ids":[41885020553315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23877068554339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885020553315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31472152969315,"product_id":7408396468323,"position":1,"created_at":"2024-05-03T15:18:25+08:00","updated_at":"2024-05-03T15:18:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705","variant_ids":[41885020553315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠俠出任務 - 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-SB06","featured_media":{"alt":null,"id":23877068554339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227cf4214610be251600037d6493e54de52bdc61_a518004f-2c28-4be6-8a6a-38a1200ae651.webp?v=1714720705"}},"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: "停產" }