$product = {"id":7411204489315,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb40","description":null,"published_at":"2024-06-11T17:38:42+08:00","created_at":"2024-05-04T23:45:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41895958118499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479847125091,"product_id":7411204489315,"position":10,"created_at":"2024-05-04T23:45:29+08:00","updated_at":"2024-05-04T23:45:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529","variant_ids":[41895958118499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB40","featured_media":{"alt":null,"id":23885097468003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7fc228cb2ae1f3f56d2de4354211bdadc86b35a_1007900f-3386-4d20-810e-c53948951309.webp?v=1714837509","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ad77093c4ef9c74d9a173cff1ffe6bb94c080_6ab52e6c-8482-4d4f-87ca-e14779f64cac.webp?v=1714837511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da9e740130d6060c498e7c7a9cdf93db921b577_8e1af196-013a-48be-b38c-303f47576e44.webp?v=1714837514","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c84f530cb30481cb796d5684e1c6ca4544cf9e_97f5e377-cdc2-47bb-8a05-858a7bf12d65.webp?v=1714837516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96c6627081c3b5eb0741445c0d7cced20e0ed71_0288e0e7-3f02-4762-988d-8c8d5284ff89.webp?v=1714837518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891483707fbddcb6464296887c2ac5f59a6b5eaf_70810e4b-25de-4378-a86a-f879652e049f.webp?v=1714837520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a420170ffdbc35872ba061ebe2ec3022cc221288_3ce10bad-b91f-4b59-a64f-4a42421f8653.webp?v=1714837523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9fd0db93d344f873cdfe5b0bc67ad68888a695_90174259-d787-48f0-8496-2f98c6d5cd09.webp?v=1714837525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d084ea72d9ebfe1e79664a15f4bea0029b0788b_a067e3cd-3444-4e92-96b9-09cdcaacce80.webp?v=1714837527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7fc228cb2ae1f3f56d2de4354211bdadc86b35a_1007900f-3386-4d20-810e-c53948951309.webp?v=1714837509","options":["color"],"media":[{"alt":null,"id":23885093240931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7fc228cb2ae1f3f56d2de4354211bdadc86b35a_1007900f-3386-4d20-810e-c53948951309.webp?v=1714837509"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7fc228cb2ae1f3f56d2de4354211bdadc86b35a_1007900f-3386-4d20-810e-c53948951309.webp?v=1714837509","width":2000},{"alt":null,"id":23885093765219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ad77093c4ef9c74d9a173cff1ffe6bb94c080_6ab52e6c-8482-4d4f-87ca-e14779f64cac.webp?v=1714837511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/824ad77093c4ef9c74d9a173cff1ffe6bb94c080_6ab52e6c-8482-4d4f-87ca-e14779f64cac.webp?v=1714837511","width":2000},{"alt":null,"id":23885094387811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da9e740130d6060c498e7c7a9cdf93db921b577_8e1af196-013a-48be-b38c-303f47576e44.webp?v=1714837514"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0da9e740130d6060c498e7c7a9cdf93db921b577_8e1af196-013a-48be-b38c-303f47576e44.webp?v=1714837514","width":2000},{"alt":null,"id":23885094715491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c84f530cb30481cb796d5684e1c6ca4544cf9e_97f5e377-cdc2-47bb-8a05-858a7bf12d65.webp?v=1714837516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c84f530cb30481cb796d5684e1c6ca4544cf9e_97f5e377-cdc2-47bb-8a05-858a7bf12d65.webp?v=1714837516","width":2000},{"alt":null,"id":23885095338083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96c6627081c3b5eb0741445c0d7cced20e0ed71_0288e0e7-3f02-4762-988d-8c8d5284ff89.webp?v=1714837518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a96c6627081c3b5eb0741445c0d7cced20e0ed71_0288e0e7-3f02-4762-988d-8c8d5284ff89.webp?v=1714837518","width":2000},{"alt":null,"id":23885095665763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891483707fbddcb6464296887c2ac5f59a6b5eaf_70810e4b-25de-4378-a86a-f879652e049f.webp?v=1714837520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/891483707fbddcb6464296887c2ac5f59a6b5eaf_70810e4b-25de-4378-a86a-f879652e049f.webp?v=1714837520","width":2000},{"alt":null,"id":23885096124515,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a420170ffdbc35872ba061ebe2ec3022cc221288_3ce10bad-b91f-4b59-a64f-4a42421f8653.webp?v=1714837523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a420170ffdbc35872ba061ebe2ec3022cc221288_3ce10bad-b91f-4b59-a64f-4a42421f8653.webp?v=1714837523","width":2000},{"alt":null,"id":23885096452195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9fd0db93d344f873cdfe5b0bc67ad68888a695_90174259-d787-48f0-8496-2f98c6d5cd09.webp?v=1714837525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd9fd0db93d344f873cdfe5b0bc67ad68888a695_90174259-d787-48f0-8496-2f98c6d5cd09.webp?v=1714837525","width":2000},{"alt":null,"id":23885097042019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d084ea72d9ebfe1e79664a15f4bea0029b0788b_a067e3cd-3444-4e92-96b9-09cdcaacce80.webp?v=1714837527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d084ea72d9ebfe1e79664a15f4bea0029b0788b_a067e3cd-3444-4e92-96b9-09cdcaacce80.webp?v=1714837527","width":2000},{"alt":null,"id":23885097468003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895958118499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479847125091,"product_id":7411204489315,"position":10,"created_at":"2024-05-04T23:45:29+08:00","updated_at":"2024-05-04T23:45:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529","variant_ids":[41895958118499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB40","featured_media":{"alt":null,"id":23885097468003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895958118499,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31479847125091,"product_id":7411204489315,"position":10,"created_at":"2024-05-04T23:45:29+08:00","updated_at":"2024-05-04T23:45:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529","variant_ids":[41895958118499]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB40","featured_media":{"alt":null,"id":23885097468003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7806f9dc0b999b588dc4fd64cdb2f292614c0f99_e669fa3b-e2e9-4eef-9463-e8a2c4addd8b.webp?v=1714837529"}},"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: "停產" }