$product = {"id":7408448733283,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - Batman - 漫畫風格","handle":"iphone-12-mini-mod-nx-printable-sb02","description":null,"published_at":"2024-06-11T16:37:31+08:00","created_at":"2024-05-03T15:28:31+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 mini","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":41885600546915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472305930339,"product_id":7408448733283,"position":4,"created_at":"2024-05-03T15:28:42+08:00","updated_at":"2024-05-03T15:28:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322","variant_ids":[41885600546915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-SB02","featured_media":{"alt":null,"id":23877222301795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd796f81589f810ba0c907023eee3add17f78002_c952d908-3136-4a09-91df-109caead7a74.webp?v=1714721314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f7381f1d001e051a254e3561f1488337f7cf30_81ee5b59-665b-40d6-9ce4-b16349df63f4.webp?v=1714721317","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d826bc094e3f0ac5c2bf0e4f09a9b7b2029c3c89_e773c0af-3a4a-42e2-bfc6-fff4ca8cb8a7.webp?v=1714721320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd38d1dde2fbafa376b31d9f1771da7b70318a92_78fe4150-241b-47e8-b474-0d3a86944b5b.webp?v=1714721325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b786b7413520d62f00eaee18b996bd7fb9172e1_24161132-444e-454f-a73d-5c9d9374d8d3.webp?v=1714721327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d166d6ad257ac4015b953b1ae6f2b51efe1f982_3f2fd93c-d341-4736-849f-42dbdc02ca02.webp?v=1714721329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ebdc134c398d2a3881f3e24a2890f2530f3fa9_69c5e3b1-91db-4d0b-9707-eecc945b80f3.webp?v=1714721332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9d7c81f6251baf1e532b18ed6a3c781d0958ac_01fa43fc-4d4d-45b5-a904-c54a5c2b15d6.webp?v=1714721334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d7021a0e0d395c1839a4d5674a08922f632c4_b0b59a98-3b92-4058-986d-7b142816d845.webp?v=1714721337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f3e372c13d81d88ee44df811f125f21932f5da_1d7aaf2a-b80d-4575-891c-f3eda621db97.webp?v=1714721339"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd796f81589f810ba0c907023eee3add17f78002_c952d908-3136-4a09-91df-109caead7a74.webp?v=1714721314","options":["color"],"media":[{"alt":null,"id":23877220663395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd796f81589f810ba0c907023eee3add17f78002_c952d908-3136-4a09-91df-109caead7a74.webp?v=1714721314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd796f81589f810ba0c907023eee3add17f78002_c952d908-3136-4a09-91df-109caead7a74.webp?v=1714721314","width":2000},{"alt":null,"id":23877221220451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f7381f1d001e051a254e3561f1488337f7cf30_81ee5b59-665b-40d6-9ce4-b16349df63f4.webp?v=1714721317"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5f7381f1d001e051a254e3561f1488337f7cf30_81ee5b59-665b-40d6-9ce4-b16349df63f4.webp?v=1714721317","width":2000},{"alt":null,"id":23877221679203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d826bc094e3f0ac5c2bf0e4f09a9b7b2029c3c89_e773c0af-3a4a-42e2-bfc6-fff4ca8cb8a7.webp?v=1714721320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d826bc094e3f0ac5c2bf0e4f09a9b7b2029c3c89_e773c0af-3a4a-42e2-bfc6-fff4ca8cb8a7.webp?v=1714721320","width":2000},{"alt":null,"id":23877222301795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322","width":2000},{"alt":null,"id":23877222793315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd38d1dde2fbafa376b31d9f1771da7b70318a92_78fe4150-241b-47e8-b474-0d3a86944b5b.webp?v=1714721325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd38d1dde2fbafa376b31d9f1771da7b70318a92_78fe4150-241b-47e8-b474-0d3a86944b5b.webp?v=1714721325","width":2000},{"alt":null,"id":23877223186531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b786b7413520d62f00eaee18b996bd7fb9172e1_24161132-444e-454f-a73d-5c9d9374d8d3.webp?v=1714721327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b786b7413520d62f00eaee18b996bd7fb9172e1_24161132-444e-454f-a73d-5c9d9374d8d3.webp?v=1714721327","width":2000},{"alt":null,"id":23877223612515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d166d6ad257ac4015b953b1ae6f2b51efe1f982_3f2fd93c-d341-4736-849f-42dbdc02ca02.webp?v=1714721329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d166d6ad257ac4015b953b1ae6f2b51efe1f982_3f2fd93c-d341-4736-849f-42dbdc02ca02.webp?v=1714721329","width":2000},{"alt":null,"id":23877224104035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ebdc134c398d2a3881f3e24a2890f2530f3fa9_69c5e3b1-91db-4d0b-9707-eecc945b80f3.webp?v=1714721332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51ebdc134c398d2a3881f3e24a2890f2530f3fa9_69c5e3b1-91db-4d0b-9707-eecc945b80f3.webp?v=1714721332","width":2000},{"alt":null,"id":23877224497251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9d7c81f6251baf1e532b18ed6a3c781d0958ac_01fa43fc-4d4d-45b5-a904-c54a5c2b15d6.webp?v=1714721334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb9d7c81f6251baf1e532b18ed6a3c781d0958ac_01fa43fc-4d4d-45b5-a904-c54a5c2b15d6.webp?v=1714721334","width":2000},{"alt":null,"id":23877224988771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d7021a0e0d395c1839a4d5674a08922f632c4_b0b59a98-3b92-4058-986d-7b142816d845.webp?v=1714721337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d7021a0e0d395c1839a4d5674a08922f632c4_b0b59a98-3b92-4058-986d-7b142816d845.webp?v=1714721337","width":2000},{"alt":null,"id":23877225447523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f3e372c13d81d88ee44df811f125f21932f5da_1d7aaf2a-b80d-4575-891c-f3eda621db97.webp?v=1714721339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f3e372c13d81d88ee44df811f125f21932f5da_1d7aaf2a-b80d-4575-891c-f3eda621db97.webp?v=1714721339","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885600546915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472305930339,"product_id":7408448733283,"position":4,"created_at":"2024-05-03T15:28:42+08:00","updated_at":"2024-05-03T15:28:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322","variant_ids":[41885600546915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-SB02","featured_media":{"alt":null,"id":23877222301795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885600546915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-SB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472305930339,"product_id":7408448733283,"position":4,"created_at":"2024-05-03T15:28:42+08:00","updated_at":"2024-05-03T15:28:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322","variant_ids":[41885600546915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 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":"NPB0118424-SB02","featured_media":{"alt":null,"id":23877222301795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4358535c8b5ecccad58ff30a206e183073c35e9_4eb57068-fc64-4a84-a66d-86fc153128e7.webp?v=1714721322"}},"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: "停產" }