$product = {"id":7411220578403,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb55","description":null,"published_at":"2024-06-11T17:39:08+08:00","created_at":"2024-05-04T23:48:00+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":41896158036067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31479882973283,"product_id":7411220578403,"position":3,"created_at":"2024-05-04T23:48:06+08:00","updated_at":"2024-05-04T23:48:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686","variant_ids":[41896158036067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23885133414499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76376a302a173a8801d9899950ca86dcf075b194_f1ada90a-9fd7-4a62-a41d-8fb95c6912d8.webp?v=1714837682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb921e6b0e5c25a3f330166260a779698abcdd49_87a92a8d-d7db-4fa7-b6df-54b2314b91b6.webp?v=1714837684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d2a615e36b2388d919a7cd1280e2b4e553fe2_eb7f85b1-6677-41e7-bf8e-a4364a1c8183.webp?v=1714837689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b092643035c94305502ff59aaff4c3732aa0df_10a40c40-1a2a-46b0-b516-be6276799ae2.webp?v=1714837691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99797f2040cb7fc82db5f80f6b77cf03ffed151e_f2621da2-ec92-43e4-9d61-650e70f86b52.webp?v=1714837693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b25a2812c3f3c83ad40b8b98ba5c9f96332081_664e973b-9610-4c3a-b40b-f718a6b2ad6a.webp?v=1714837696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548667a252d7732ef7351fa908e148c672c8ce36_5331b0e8-3885-41b0-b27b-e79ec9167d30.webp?v=1714837698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a10a0d4d3e0e3a609d384986162b307604cbef_4fdb6337-a29a-4fea-a770-bd9d2cf84631.webp?v=1714837700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285ce9bbed356af5973426c37f2ea9a67f249778_dd30f326-8b24-4736-9ec3-6b5e0e330ee9.webp?v=1714837702"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76376a302a173a8801d9899950ca86dcf075b194_f1ada90a-9fd7-4a62-a41d-8fb95c6912d8.webp?v=1714837682","options":["color"],"media":[{"alt":null,"id":23885132496995,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76376a302a173a8801d9899950ca86dcf075b194_f1ada90a-9fd7-4a62-a41d-8fb95c6912d8.webp?v=1714837682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76376a302a173a8801d9899950ca86dcf075b194_f1ada90a-9fd7-4a62-a41d-8fb95c6912d8.webp?v=1714837682","width":2000},{"alt":null,"id":23885132791907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb921e6b0e5c25a3f330166260a779698abcdd49_87a92a8d-d7db-4fa7-b6df-54b2314b91b6.webp?v=1714837684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb921e6b0e5c25a3f330166260a779698abcdd49_87a92a8d-d7db-4fa7-b6df-54b2314b91b6.webp?v=1714837684","width":2000},{"alt":null,"id":23885133414499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686","width":2000},{"alt":null,"id":23885133709411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d2a615e36b2388d919a7cd1280e2b4e553fe2_eb7f85b1-6677-41e7-bf8e-a4364a1c8183.webp?v=1714837689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c60d2a615e36b2388d919a7cd1280e2b4e553fe2_eb7f85b1-6677-41e7-bf8e-a4364a1c8183.webp?v=1714837689","width":2000},{"alt":null,"id":23885134299235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b092643035c94305502ff59aaff4c3732aa0df_10a40c40-1a2a-46b0-b516-be6276799ae2.webp?v=1714837691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0b092643035c94305502ff59aaff4c3732aa0df_10a40c40-1a2a-46b0-b516-be6276799ae2.webp?v=1714837691","width":2000},{"alt":null,"id":23885134659683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99797f2040cb7fc82db5f80f6b77cf03ffed151e_f2621da2-ec92-43e4-9d61-650e70f86b52.webp?v=1714837693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99797f2040cb7fc82db5f80f6b77cf03ffed151e_f2621da2-ec92-43e4-9d61-650e70f86b52.webp?v=1714837693","width":2000},{"alt":null,"id":23885135151203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b25a2812c3f3c83ad40b8b98ba5c9f96332081_664e973b-9610-4c3a-b40b-f718a6b2ad6a.webp?v=1714837696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72b25a2812c3f3c83ad40b8b98ba5c9f96332081_664e973b-9610-4c3a-b40b-f718a6b2ad6a.webp?v=1714837696","width":2000},{"alt":null,"id":23885135577187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548667a252d7732ef7351fa908e148c672c8ce36_5331b0e8-3885-41b0-b27b-e79ec9167d30.webp?v=1714837698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548667a252d7732ef7351fa908e148c672c8ce36_5331b0e8-3885-41b0-b27b-e79ec9167d30.webp?v=1714837698","width":2000},{"alt":null,"id":23885136101475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a10a0d4d3e0e3a609d384986162b307604cbef_4fdb6337-a29a-4fea-a770-bd9d2cf84631.webp?v=1714837700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77a10a0d4d3e0e3a609d384986162b307604cbef_4fdb6337-a29a-4fea-a770-bd9d2cf84631.webp?v=1714837700","width":2000},{"alt":null,"id":23885136527459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285ce9bbed356af5973426c37f2ea9a67f249778_dd30f326-8b24-4736-9ec3-6b5e0e330ee9.webp?v=1714837702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/285ce9bbed356af5973426c37f2ea9a67f249778_dd30f326-8b24-4736-9ec3-6b5e0e330ee9.webp?v=1714837702","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896158036067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31479882973283,"product_id":7411220578403,"position":3,"created_at":"2024-05-04T23:48:06+08:00","updated_at":"2024-05-04T23:48:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686","variant_ids":[41896158036067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23885133414499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896158036067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB55","requires_shipping":true,"taxable":true,"featured_image":{"id":31479882973283,"product_id":7411220578403,"position":3,"created_at":"2024-05-04T23:48:06+08:00","updated_at":"2024-05-04T23:48:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686","variant_ids":[41896158036067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士\u0026風暴兵-剪紙系列 - 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-PB55","featured_media":{"alt":null,"id":23885133414499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dabceedda83dae3e7dd6c1731f81c7255936fd1b_503c25db-0b4f-44e8-ab44-7ff8503f667c.webp?v=1714837686"}},"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: "停產" }