$product = {"id":7408158769251,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山","handle":"iphone-13-mini-mod-nx-printable-aa36","description":null,"published_at":"2024-06-11T16:32:58+08:00","created_at":"2024-05-03T12:11:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 mini","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx","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":41883338506339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471346810979,"product_id":7408158769251,"position":7,"created_at":"2024-05-03T12:11:46+08:00","updated_at":"2024-05-03T12:11:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506","variant_ids":[41883338506339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-AA36","featured_media":{"alt":null,"id":23876253057123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883338571875,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471345172579,"product_id":7408158769251,"position":4,"created_at":"2024-05-03T12:11:39+08:00","updated_at":"2024-05-03T12:11:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499","variant_ids":[41883338571875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-AA36","featured_media":{"alt":null,"id":23876251025507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883338801251,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471344648291,"product_id":7408158769251,"position":3,"created_at":"2024-05-03T12:11:36+08:00","updated_at":"2024-05-03T12:11:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496","variant_ids":[41883338801251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-AA36","featured_media":{"alt":null,"id":23876250533987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e8d81d314d265fc6e82e04b2aa22c6e779c17e1_79035905-541e-4bc7-b01f-998b27189abf.webp?v=1714709491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da477b269e83cc56817d559ffcebb7353989f96c_be2677f8-0900-40f4-85bb-faa05d807010.webp?v=1714709493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a48388932618542ef191c1f631a0ec47a22620_92beffb8-e184-4fdb-84e7-927c8b0549a5.webp?v=1714709501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/130e6b1151f0054b395478a07844399b427c7e06_44d5f092-fea6-4f77-a98d-38777e48ec35.webp?v=1714709503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8e0d3cffdd9e7d66982776c6c20806a6851e86_64682fd6-b182-418e-a871-a320405a0e9a.webp?v=1714709509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a368eb9934d2dd405a9fc5969441f7bd1cfdfc_a3201d33-ca33-4786-93cb-ed898967901c.webp?v=1714709511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2665cd42e754fe8f6fd520f380dff972a9fad86c_2fb7c1a8-eb52-4e39-ad3f-8b730268a29d.webp?v=1714709514"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e8d81d314d265fc6e82e04b2aa22c6e779c17e1_79035905-541e-4bc7-b01f-998b27189abf.webp?v=1714709491","options":["color"],"media":[{"alt":null,"id":23876249550947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e8d81d314d265fc6e82e04b2aa22c6e779c17e1_79035905-541e-4bc7-b01f-998b27189abf.webp?v=1714709491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e8d81d314d265fc6e82e04b2aa22c6e779c17e1_79035905-541e-4bc7-b01f-998b27189abf.webp?v=1714709491","width":2000},{"alt":null,"id":23876250075235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da477b269e83cc56817d559ffcebb7353989f96c_be2677f8-0900-40f4-85bb-faa05d807010.webp?v=1714709493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da477b269e83cc56817d559ffcebb7353989f96c_be2677f8-0900-40f4-85bb-faa05d807010.webp?v=1714709493","width":2000},{"alt":null,"id":23876250533987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496","width":2000},{"alt":null,"id":23876251025507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499","width":2000},{"alt":null,"id":23876251484259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a48388932618542ef191c1f631a0ec47a22620_92beffb8-e184-4fdb-84e7-927c8b0549a5.webp?v=1714709501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a48388932618542ef191c1f631a0ec47a22620_92beffb8-e184-4fdb-84e7-927c8b0549a5.webp?v=1714709501","width":2000},{"alt":null,"id":23876252139619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/130e6b1151f0054b395478a07844399b427c7e06_44d5f092-fea6-4f77-a98d-38777e48ec35.webp?v=1714709503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/130e6b1151f0054b395478a07844399b427c7e06_44d5f092-fea6-4f77-a98d-38777e48ec35.webp?v=1714709503","width":2000},{"alt":null,"id":23876253057123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506","width":2000},{"alt":null,"id":23876254072931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8e0d3cffdd9e7d66982776c6c20806a6851e86_64682fd6-b182-418e-a871-a320405a0e9a.webp?v=1714709509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e8e0d3cffdd9e7d66982776c6c20806a6851e86_64682fd6-b182-418e-a871-a320405a0e9a.webp?v=1714709509","width":2000},{"alt":null,"id":23876254662755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a368eb9934d2dd405a9fc5969441f7bd1cfdfc_a3201d33-ca33-4786-93cb-ed898967901c.webp?v=1714709511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a368eb9934d2dd405a9fc5969441f7bd1cfdfc_a3201d33-ca33-4786-93cb-ed898967901c.webp?v=1714709511","width":2000},{"alt":null,"id":23876255645795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2665cd42e754fe8f6fd520f380dff972a9fad86c_2fb7c1a8-eb52-4e39-ad3f-8b730268a29d.webp?v=1714709514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2665cd42e754fe8f6fd520f380dff972a9fad86c_2fb7c1a8-eb52-4e39-ad3f-8b730268a29d.webp?v=1714709514","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883338506339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471346810979,"product_id":7408158769251,"position":7,"created_at":"2024-05-03T12:11:46+08:00","updated_at":"2024-05-03T12:11:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506","variant_ids":[41883338506339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-AA36","featured_media":{"alt":null,"id":23876253057123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883338571875,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471345172579,"product_id":7408158769251,"position":4,"created_at":"2024-05-03T12:11:39+08:00","updated_at":"2024-05-03T12:11:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499","variant_ids":[41883338571875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122804-AA36","featured_media":{"alt":null,"id":23876251025507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f840e55c480cdf4a7d214dc7f79df17a86804684_f71e7866-b254-40d9-811d-c227cd60303c.webp?v=1714709499"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883338801251,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471344648291,"product_id":7408158769251,"position":3,"created_at":"2024-05-03T12:11:36+08:00","updated_at":"2024-05-03T12:11:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496","variant_ids":[41883338801251]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01228J5-AA36","featured_media":{"alt":null,"id":23876250533987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5e397921c486c5ae7bdf579c2a6f8cced93eeab_77565de4-9d73-4504-b512-710012ede1a2.webp?v=1714709496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883338506339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-AA36","requires_shipping":true,"taxable":true,"featured_image":{"id":31471346810979,"product_id":7408158769251,"position":7,"created_at":"2024-05-03T12:11:46+08:00","updated_at":"2024-05-03T12:11:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506","variant_ids":[41883338506339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【獨家設計款】 - 火炎山 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0122824-AA36","featured_media":{"alt":null,"id":23876253057123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d252406b5ab8f0b201f6c4f80dbc0527856f9b25_9915b579-3166-4132-ac48-cf4b656617de.webp?v=1714709506"}},"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: "停產" }