$product = {"id":7416332124259,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 漫畫風格","handle":"iphone-8-mod-nx-printable-sb02","description":null,"published_at":"2024-06-11T16:56:07+08:00","created_at":"2024-05-06T14:36:03+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":41918583472227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491862134883,"product_id":7416332124259,"position":3,"created_at":"2024-05-06T14:36:10+08:00","updated_at":"2024-05-06T14:36:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371","variant_ids":[41918583472227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB02","featured_media":{"alt":null,"id":23897274941539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c56d37b29ab287dda5d31d5beab563244c379a_aa7c82bf-e03a-4652-b669-848d50d8fc16.webp?v=1714977366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12211e6c3b133c9bb47d0613aa00b1b262294611_c3560c77-5fb2-4b5d-90e5-1673387b6a35.webp?v=1714977368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe4ee12dc5723569a937fb7791ee2040a673158_ef3f8fc8-b5e9-441c-b151-8cd90c64867e.webp?v=1714977373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3e564c82677a6e325d4509ea7d2fba0768bccf_b38b674f-67e2-48ae-8d6b-8d28bf9766ba.webp?v=1714977375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed746ad9424f3f7641ab1540a744d53466be9c3f_96970ba7-34ff-48c2-9777-4c71d9a9c40d.webp?v=1714977378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153a30e2e37b39cd3ed56e8d1fbac3354c8f9d84_71836b1b-8336-4e65-ae2d-185be70049df.webp?v=1714977380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44048657eecc44afaae5bf079c78a540124ae576_6bfac8f4-bfac-48ce-8305-cefda00906e7.webp?v=1714977383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c57426ea8dcd982df21bec22382c2a02e0fac6dd_27668bc6-3122-41cf-8d75-2beb284cb4b1.webp?v=1714977385","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499b5626f5743507cb72532c08ede0d4e0f8c709_b4d54a70-5ec4-4d01-b6ce-80d704ad845c.webp?v=1714977388"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c56d37b29ab287dda5d31d5beab563244c379a_aa7c82bf-e03a-4652-b669-848d50d8fc16.webp?v=1714977366","options":["color"],"media":[{"alt":null,"id":23897273925731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c56d37b29ab287dda5d31d5beab563244c379a_aa7c82bf-e03a-4652-b669-848d50d8fc16.webp?v=1714977366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3c56d37b29ab287dda5d31d5beab563244c379a_aa7c82bf-e03a-4652-b669-848d50d8fc16.webp?v=1714977366","width":2000},{"alt":null,"id":23897274515555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12211e6c3b133c9bb47d0613aa00b1b262294611_c3560c77-5fb2-4b5d-90e5-1673387b6a35.webp?v=1714977368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12211e6c3b133c9bb47d0613aa00b1b262294611_c3560c77-5fb2-4b5d-90e5-1673387b6a35.webp?v=1714977368","width":2000},{"alt":null,"id":23897274941539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371","width":2000},{"alt":null,"id":23897275629667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe4ee12dc5723569a937fb7791ee2040a673158_ef3f8fc8-b5e9-441c-b151-8cd90c64867e.webp?v=1714977373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe4ee12dc5723569a937fb7791ee2040a673158_ef3f8fc8-b5e9-441c-b151-8cd90c64867e.webp?v=1714977373","width":2000},{"alt":null,"id":23897276088419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3e564c82677a6e325d4509ea7d2fba0768bccf_b38b674f-67e2-48ae-8d6b-8d28bf9766ba.webp?v=1714977375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3e564c82677a6e325d4509ea7d2fba0768bccf_b38b674f-67e2-48ae-8d6b-8d28bf9766ba.webp?v=1714977375","width":2000},{"alt":null,"id":23897276973155,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed746ad9424f3f7641ab1540a744d53466be9c3f_96970ba7-34ff-48c2-9777-4c71d9a9c40d.webp?v=1714977378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed746ad9424f3f7641ab1540a744d53466be9c3f_96970ba7-34ff-48c2-9777-4c71d9a9c40d.webp?v=1714977378","width":2000},{"alt":null,"id":23897277464675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153a30e2e37b39cd3ed56e8d1fbac3354c8f9d84_71836b1b-8336-4e65-ae2d-185be70049df.webp?v=1714977380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/153a30e2e37b39cd3ed56e8d1fbac3354c8f9d84_71836b1b-8336-4e65-ae2d-185be70049df.webp?v=1714977380","width":2000},{"alt":null,"id":23897277956195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44048657eecc44afaae5bf079c78a540124ae576_6bfac8f4-bfac-48ce-8305-cefda00906e7.webp?v=1714977383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44048657eecc44afaae5bf079c78a540124ae576_6bfac8f4-bfac-48ce-8305-cefda00906e7.webp?v=1714977383","width":2000},{"alt":null,"id":23897278513251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c57426ea8dcd982df21bec22382c2a02e0fac6dd_27668bc6-3122-41cf-8d75-2beb284cb4b1.webp?v=1714977385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c57426ea8dcd982df21bec22382c2a02e0fac6dd_27668bc6-3122-41cf-8d75-2beb284cb4b1.webp?v=1714977385","width":2000},{"alt":null,"id":23897279135843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499b5626f5743507cb72532c08ede0d4e0f8c709_b4d54a70-5ec4-4d01-b6ce-80d704ad845c.webp?v=1714977388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/499b5626f5743507cb72532c08ede0d4e0f8c709_b4d54a70-5ec4-4d01-b6ce-80d704ad845c.webp?v=1714977388","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918583472227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491862134883,"product_id":7416332124259,"position":3,"created_at":"2024-05-06T14:36:10+08:00","updated_at":"2024-05-06T14:36:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371","variant_ids":[41918583472227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB02","featured_media":{"alt":null,"id":23897274941539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918583472227,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491862134883,"product_id":7416332124259,"position":3,"created_at":"2024-05-06T14:36:10+08:00","updated_at":"2024-05-06T14:36:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371","variant_ids":[41918583472227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB02","featured_media":{"alt":null,"id":23897274941539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32a618635194195dd0bb41b720b6dde0867ee16c_2f537b91-0c74-4c80-9ad7-2bf1f6513d21.webp?v=1714977371"}},"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: "停產" }