$product = {"id":7411275989091,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb102","description":null,"published_at":"2024-06-11T17:40:35+08:00","created_at":"2024-05-04T23:58:30+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":41896849440867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31480025514083,"product_id":7411275989091,"position":6,"created_at":"2024-05-04T23:58:45+08:00","updated_at":"2024-05-04T23:58:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325","variant_ids":[41896849440867]},"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-PB102","featured_media":{"alt":null,"id":23885276086371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43ba3ff7f4db569651a44ec194b41861dfc5f4c_34b96deb-4fca-41eb-9ea1-3601aafb9d17.webp?v=1714838313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9dbb32ebcab98860bbb743b1994f74fd479496_8819b5ef-876b-470d-b79b-24b91c08d636.webp?v=1714838315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f87d907dab19770dd7e81919b251b91784ceb401_e25e3136-258f-474e-8ea5-8ea6c5f8cd28.webp?v=1714838318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04dc20b5aaa4f52718f7757806a28a8e943a5fb_322e9e02-654c-4c7c-ab77-aac0829efdf3.webp?v=1714838320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d65256d0038a25006b93b11f1abbd018408071b3_83678eb0-82dd-4f9e-b6e0-92e41abf7098.webp?v=1714838322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fd6102c867b7c5cb1777c712a0745a9a713527_f5d170c6-a3f1-42f1-aa93-5c52aad89b80.webp?v=1714838327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036f875bcb3be9e957e3130011ca248feacf5bca_5fb09d13-8bc9-47ae-bd27-36fbab4bf05d.webp?v=1714838330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0dbefb096d5b1bec3d054fbcca4bc32914db05_a2d29b5a-82b0-447d-825c-ed1a83c73313.webp?v=1714838332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd914a6d9fd9e8203df56158ffd284b775d891_3485d38f-f0ba-4ba1-a30b-7042f12f7157.webp?v=1714838335"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43ba3ff7f4db569651a44ec194b41861dfc5f4c_34b96deb-4fca-41eb-9ea1-3601aafb9d17.webp?v=1714838313","options":["color"],"media":[{"alt":null,"id":23885273596003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43ba3ff7f4db569651a44ec194b41861dfc5f4c_34b96deb-4fca-41eb-9ea1-3601aafb9d17.webp?v=1714838313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43ba3ff7f4db569651a44ec194b41861dfc5f4c_34b96deb-4fca-41eb-9ea1-3601aafb9d17.webp?v=1714838313","width":2000},{"alt":null,"id":23885274087523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9dbb32ebcab98860bbb743b1994f74fd479496_8819b5ef-876b-470d-b79b-24b91c08d636.webp?v=1714838315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b9dbb32ebcab98860bbb743b1994f74fd479496_8819b5ef-876b-470d-b79b-24b91c08d636.webp?v=1714838315","width":2000},{"alt":null,"id":23885274546275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f87d907dab19770dd7e81919b251b91784ceb401_e25e3136-258f-474e-8ea5-8ea6c5f8cd28.webp?v=1714838318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f87d907dab19770dd7e81919b251b91784ceb401_e25e3136-258f-474e-8ea5-8ea6c5f8cd28.webp?v=1714838318","width":2000},{"alt":null,"id":23885275037795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04dc20b5aaa4f52718f7757806a28a8e943a5fb_322e9e02-654c-4c7c-ab77-aac0829efdf3.webp?v=1714838320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c04dc20b5aaa4f52718f7757806a28a8e943a5fb_322e9e02-654c-4c7c-ab77-aac0829efdf3.webp?v=1714838320","width":2000},{"alt":null,"id":23885275594851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d65256d0038a25006b93b11f1abbd018408071b3_83678eb0-82dd-4f9e-b6e0-92e41abf7098.webp?v=1714838322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d65256d0038a25006b93b11f1abbd018408071b3_83678eb0-82dd-4f9e-b6e0-92e41abf7098.webp?v=1714838322","width":2000},{"alt":null,"id":23885276086371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325","width":2000},{"alt":null,"id":23885276479587,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fd6102c867b7c5cb1777c712a0745a9a713527_f5d170c6-a3f1-42f1-aa93-5c52aad89b80.webp?v=1714838327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31fd6102c867b7c5cb1777c712a0745a9a713527_f5d170c6-a3f1-42f1-aa93-5c52aad89b80.webp?v=1714838327","width":2000},{"alt":null,"id":23885277167715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036f875bcb3be9e957e3130011ca248feacf5bca_5fb09d13-8bc9-47ae-bd27-36fbab4bf05d.webp?v=1714838330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/036f875bcb3be9e957e3130011ca248feacf5bca_5fb09d13-8bc9-47ae-bd27-36fbab4bf05d.webp?v=1714838330","width":2000},{"alt":null,"id":23885277626467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0dbefb096d5b1bec3d054fbcca4bc32914db05_a2d29b5a-82b0-447d-825c-ed1a83c73313.webp?v=1714838332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0dbefb096d5b1bec3d054fbcca4bc32914db05_a2d29b5a-82b0-447d-825c-ed1a83c73313.webp?v=1714838332","width":2000},{"alt":null,"id":23885278150755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd914a6d9fd9e8203df56158ffd284b775d891_3485d38f-f0ba-4ba1-a30b-7042f12f7157.webp?v=1714838335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73dd914a6d9fd9e8203df56158ffd284b775d891_3485d38f-f0ba-4ba1-a30b-7042f12f7157.webp?v=1714838335","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896849440867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31480025514083,"product_id":7411275989091,"position":6,"created_at":"2024-05-04T23:58:45+08:00","updated_at":"2024-05-04T23:58:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325","variant_ids":[41896849440867]},"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-PB102","featured_media":{"alt":null,"id":23885276086371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896849440867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31480025514083,"product_id":7411275989091,"position":6,"created_at":"2024-05-04T23:58:45+08:00","updated_at":"2024-05-04T23:58:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325","variant_ids":[41896849440867]},"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-PB102","featured_media":{"alt":null,"id":23885276086371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed3b8e8be6037327d7db2cec43054dd51dbb2dd_bd362711-aa10-42cc-a0dc-6ca852ecc95b.webp?v=1714838325"}},"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: "停產" }