$product = {"id":7416373543011,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 經典Logo","handle":"iphone-8-mod-nx-printable-sb11","description":null,"published_at":"2024-06-11T16:57:18+08:00","created_at":"2024-05-06T14:44:28+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 8","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":41919037276259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491972595811,"product_id":7416373543011,"position":9,"created_at":"2024-05-06T14:44:54+08:00","updated_at":"2024-05-06T14:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894","variant_ids":[41919037276259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 經典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":"NPB0105424-SB11","featured_media":{"alt":null,"id":23897385992291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ffc08ae1716422b3369825ca58c99ac2f1ee4e_9d5f55b0-9492-4f5c-9268-99947f53699a.webp?v=1714977871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f232cf9471dfb2e53c46fa5597c5b25802d574e1_82b56679-67fe-4cd8-b8f4-19a31c6838ab.webp?v=1714977873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd07d95116256ec2b31f317465e2f582c9786102_5b5cac50-7589-4d08-92ce-b94bc8da4a9f.webp?v=1714977875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22367f54acedb38e7de8692bd86a838ea7a971cf_4cb1e166-64c9-4433-abb4-a52bbd1e9380.webp?v=1714977882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2494fd850a30b238fb78aa74c14ba7e6d41044f9_436486d4-901d-4f2c-a23d-bbf65e357f65.webp?v=1714977884","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4dc67a6cd7f900b07b53ecff63bf00eef0d5e6_ccf1ca99-d5b4-4841-9ab6-cf351a730ce4.webp?v=1714977887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016b5b75e4875bc9f24de4700d4621ec174b77e4_db6d9aab-795e-4577-893d-e86fc7b01ce9.webp?v=1714977889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e50582e3e084c65eb99e49520755ffddf6b4a31_1ffd6085-fcf5-415b-930a-69597176df64.webp?v=1714977891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7919ed1c84933afd46862b56f1e51eef1735fd4_39858c06-e010-405c-a5e8-d7460c922a1a.webp?v=1714977896"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ffc08ae1716422b3369825ca58c99ac2f1ee4e_9d5f55b0-9492-4f5c-9268-99947f53699a.webp?v=1714977871","options":["color"],"media":[{"alt":null,"id":23897381208163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ffc08ae1716422b3369825ca58c99ac2f1ee4e_9d5f55b0-9492-4f5c-9268-99947f53699a.webp?v=1714977871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ffc08ae1716422b3369825ca58c99ac2f1ee4e_9d5f55b0-9492-4f5c-9268-99947f53699a.webp?v=1714977871","width":2000},{"alt":null,"id":23897381699683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f232cf9471dfb2e53c46fa5597c5b25802d574e1_82b56679-67fe-4cd8-b8f4-19a31c6838ab.webp?v=1714977873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f232cf9471dfb2e53c46fa5597c5b25802d574e1_82b56679-67fe-4cd8-b8f4-19a31c6838ab.webp?v=1714977873","width":2000},{"alt":null,"id":23897382027363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd07d95116256ec2b31f317465e2f582c9786102_5b5cac50-7589-4d08-92ce-b94bc8da4a9f.webp?v=1714977875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd07d95116256ec2b31f317465e2f582c9786102_5b5cac50-7589-4d08-92ce-b94bc8da4a9f.webp?v=1714977875","width":2000},{"alt":null,"id":23897383174243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22367f54acedb38e7de8692bd86a838ea7a971cf_4cb1e166-64c9-4433-abb4-a52bbd1e9380.webp?v=1714977882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22367f54acedb38e7de8692bd86a838ea7a971cf_4cb1e166-64c9-4433-abb4-a52bbd1e9380.webp?v=1714977882","width":2000},{"alt":null,"id":23897383862371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2494fd850a30b238fb78aa74c14ba7e6d41044f9_436486d4-901d-4f2c-a23d-bbf65e357f65.webp?v=1714977884"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2494fd850a30b238fb78aa74c14ba7e6d41044f9_436486d4-901d-4f2c-a23d-bbf65e357f65.webp?v=1714977884","width":2000},{"alt":null,"id":23897384353891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4dc67a6cd7f900b07b53ecff63bf00eef0d5e6_ccf1ca99-d5b4-4841-9ab6-cf351a730ce4.webp?v=1714977887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4dc67a6cd7f900b07b53ecff63bf00eef0d5e6_ccf1ca99-d5b4-4841-9ab6-cf351a730ce4.webp?v=1714977887","width":2000},{"alt":null,"id":23897384714339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016b5b75e4875bc9f24de4700d4621ec174b77e4_db6d9aab-795e-4577-893d-e86fc7b01ce9.webp?v=1714977889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016b5b75e4875bc9f24de4700d4621ec174b77e4_db6d9aab-795e-4577-893d-e86fc7b01ce9.webp?v=1714977889","width":2000},{"alt":null,"id":23897385402467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e50582e3e084c65eb99e49520755ffddf6b4a31_1ffd6085-fcf5-415b-930a-69597176df64.webp?v=1714977891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e50582e3e084c65eb99e49520755ffddf6b4a31_1ffd6085-fcf5-415b-930a-69597176df64.webp?v=1714977891","width":2000},{"alt":null,"id":23897385992291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894","width":2000},{"alt":null,"id":23897386614883,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7919ed1c84933afd46862b56f1e51eef1735fd4_39858c06-e010-405c-a5e8-d7460c922a1a.webp?v=1714977896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7919ed1c84933afd46862b56f1e51eef1735fd4_39858c06-e010-405c-a5e8-d7460c922a1a.webp?v=1714977896","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919037276259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491972595811,"product_id":7416373543011,"position":9,"created_at":"2024-05-06T14:44:54+08:00","updated_at":"2024-05-06T14:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894","variant_ids":[41919037276259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 經典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":"NPB0105424-SB11","featured_media":{"alt":null,"id":23897385992291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919037276259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31491972595811,"product_id":7416373543011,"position":9,"created_at":"2024-05-06T14:44:54+08:00","updated_at":"2024-05-06T14:44:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894","variant_ids":[41919037276259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 經典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":"NPB0105424-SB11","featured_media":{"alt":null,"id":23897385992291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71dbbb1d2f8969e0eac6d48290e842d2cb931437_b4d4a689-c3bd-41a2-8208-0b6b1313a16f.webp?v=1714977894"}},"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: "停產" }