$product = {"id":7411341656163,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - J個好","handle":"iphone-14-plus-mod-nx-magsafe-printable-iv08","description":null,"published_at":"2024-06-11T17:42:20+08:00","created_at":"2024-05-05T00:10:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897675096163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480181850211,"product_id":7411341656163,"position":1,"created_at":"2024-05-05T00:10:59+08:00","updated_at":"2024-05-05T00:10:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","variant_ids":[41897675096163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - J個好 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV08","featured_media":{"alt":null,"id":23885432815715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/606b47ec68621b7dc197a68f74cb719873e8e265_84fd8900-efd4-4038-8863-e1c482755d5c.webp?v=1714839062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a6e446f98b9df6138efc4589bfe35cea24baaa_1f8069b6-58e4-4a21-b512-127d7a5dbee2.webp?v=1714839064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3961ee46768787de4b4a510c1737c9896edf6422_57ddb6f5-d8b4-42eb-8305-30277b85cd48.webp?v=1714839067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e0d9da01b7e9cfca60ead0c6d354ec8f36beb0_0a0f7ad0-ecfc-4e04-b32b-f2e789e9a251.webp?v=1714839070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25ddc0772cb97a4307004e1aed0f37ce661cb13_1c382e24-3b0d-4134-8cbc-0fd41753bafe.webp?v=1714839077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751419ed28eec7d19b8373d823e9d938db354d1a_9505cfc3-e270-420a-97e0-b197b7fd2ca1.webp?v=1714839079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc343561a2f438ba604acf751e18d25b54970257_081c6c38-7b28-48ee-84e8-6dd3de4308c3.webp?v=1714839081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d4d1d5224f5118e8a62d5c9d0ac9eac6e039f2_bdb7a553-376d-4700-a894-fbf7edb5095d.webp?v=1714839084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23de6400089f0ed53101a9a6c719831fbad7995d_f4818bb4-fd8f-41f0-98b8-5858bbff7c43.webp?v=1714839086"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","options":["color"],"media":[{"alt":null,"id":23885432815715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","width":2000},{"alt":null,"id":23885433307235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/606b47ec68621b7dc197a68f74cb719873e8e265_84fd8900-efd4-4038-8863-e1c482755d5c.webp?v=1714839062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/606b47ec68621b7dc197a68f74cb719873e8e265_84fd8900-efd4-4038-8863-e1c482755d5c.webp?v=1714839062","width":2000},{"alt":null,"id":23885433962595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a6e446f98b9df6138efc4589bfe35cea24baaa_1f8069b6-58e4-4a21-b512-127d7a5dbee2.webp?v=1714839064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56a6e446f98b9df6138efc4589bfe35cea24baaa_1f8069b6-58e4-4a21-b512-127d7a5dbee2.webp?v=1714839064","width":2000},{"alt":null,"id":23885434355811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3961ee46768787de4b4a510c1737c9896edf6422_57ddb6f5-d8b4-42eb-8305-30277b85cd48.webp?v=1714839067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3961ee46768787de4b4a510c1737c9896edf6422_57ddb6f5-d8b4-42eb-8305-30277b85cd48.webp?v=1714839067","width":2000},{"alt":null,"id":23885435011171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e0d9da01b7e9cfca60ead0c6d354ec8f36beb0_0a0f7ad0-ecfc-4e04-b32b-f2e789e9a251.webp?v=1714839070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0e0d9da01b7e9cfca60ead0c6d354ec8f36beb0_0a0f7ad0-ecfc-4e04-b32b-f2e789e9a251.webp?v=1714839070","width":2000},{"alt":null,"id":23885435895907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25ddc0772cb97a4307004e1aed0f37ce661cb13_1c382e24-3b0d-4134-8cbc-0fd41753bafe.webp?v=1714839077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c25ddc0772cb97a4307004e1aed0f37ce661cb13_1c382e24-3b0d-4134-8cbc-0fd41753bafe.webp?v=1714839077","width":2000},{"alt":null,"id":23885436616803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751419ed28eec7d19b8373d823e9d938db354d1a_9505cfc3-e270-420a-97e0-b197b7fd2ca1.webp?v=1714839079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/751419ed28eec7d19b8373d823e9d938db354d1a_9505cfc3-e270-420a-97e0-b197b7fd2ca1.webp?v=1714839079","width":2000},{"alt":null,"id":23885437075555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc343561a2f438ba604acf751e18d25b54970257_081c6c38-7b28-48ee-84e8-6dd3de4308c3.webp?v=1714839081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc343561a2f438ba604acf751e18d25b54970257_081c6c38-7b28-48ee-84e8-6dd3de4308c3.webp?v=1714839081","width":2000},{"alt":null,"id":23885437599843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d4d1d5224f5118e8a62d5c9d0ac9eac6e039f2_bdb7a553-376d-4700-a894-fbf7edb5095d.webp?v=1714839084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d4d1d5224f5118e8a62d5c9d0ac9eac6e039f2_bdb7a553-376d-4700-a894-fbf7edb5095d.webp?v=1714839084","width":2000},{"alt":null,"id":23885438058595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23de6400089f0ed53101a9a6c719831fbad7995d_f4818bb4-fd8f-41f0-98b8-5858bbff7c43.webp?v=1714839086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23de6400089f0ed53101a9a6c719831fbad7995d_f4818bb4-fd8f-41f0-98b8-5858bbff7c43.webp?v=1714839086","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897675096163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480181850211,"product_id":7411341656163,"position":1,"created_at":"2024-05-05T00:10:59+08:00","updated_at":"2024-05-05T00:10:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","variant_ids":[41897675096163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - J個好 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV08","featured_media":{"alt":null,"id":23885432815715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897675096163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480181850211,"product_id":7411341656163,"position":1,"created_at":"2024-05-05T00:10:59+08:00","updated_at":"2024-05-05T00:10:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059","variant_ids":[41897675096163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - J個好 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-IV08","featured_media":{"alt":null,"id":23885432815715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b553bb032874353ee5d77aa9f37a706175ec19_6053b017-9212-427f-8ba7-b4724d121f4f.webp?v=1714839059"}},"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: "停產" }