$product = {"id":7411153633379,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb34","description":null,"published_at":"2024-06-11T17:37:42+08:00","created_at":"2024-05-04T22:53:23+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 15 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":41895503429731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479659331683,"product_id":7411153633379,"position":2,"created_at":"2024-05-04T22:53:27+08:00","updated_at":"2024-05-04T22:53:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407","variant_ids":[41895503429731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0129624-PB34","featured_media":{"alt":null,"id":23884907184227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895503560803,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479661789283,"product_id":7411153633379,"position":7,"created_at":"2024-05-04T22:53:39+08:00","updated_at":"2024-05-04T22:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419","variant_ids":[41895503560803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0129657-PB34","featured_media":{"alt":null,"id":23884909609059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548d71d35b929f24f65ef44e3b55ef22061802bb_3bde0759-68a5-46cf-bae1-02865a77e2ad.webp?v=1714834405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ff18fa7f3a9f476f244cc9bf09eb9df37e01c_ae7e4dd4-c0b7-4e3a-b649-106fa73ff418.webp?v=1714834410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c2a3961ce2bea64b5e784d476f5041f8e969c0_38b30bc0-c7e0-48fa-bad2-91e8b3c924c4.webp?v=1714834412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39da94e81c3daf0c3495ff4660d8475b74fa691_12eb3edf-2396-48e4-b032-18ccc7949c53.webp?v=1714834414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd3d9b24f6e755bde0c6e83d2b80ad06288ae9_5881944c-f415-4c3f-adb6-cc6285d9b959.webp?v=1714834416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a96c59949da81301e5d4d9a20f3991a66d87791_d39e36ea-3651-4ba1-9b4a-86721ec0000b.webp?v=1714834421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01fbd6cdd1f523d0eeaef762e2a592d5baf92c6_b05fe275-5a50-4300-8992-51c5f94a697d.webp?v=1714834423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f5685009e30ef036dd61da36e4fc239389b914_ea281f73-b19d-420c-bcef-b675c71f08a5.webp?v=1714834425"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548d71d35b929f24f65ef44e3b55ef22061802bb_3bde0759-68a5-46cf-bae1-02865a77e2ad.webp?v=1714834405","options":["color"],"media":[{"alt":null,"id":23884906725475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548d71d35b929f24f65ef44e3b55ef22061802bb_3bde0759-68a5-46cf-bae1-02865a77e2ad.webp?v=1714834405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/548d71d35b929f24f65ef44e3b55ef22061802bb_3bde0759-68a5-46cf-bae1-02865a77e2ad.webp?v=1714834405","width":2000},{"alt":null,"id":23884907184227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407","width":2000},{"alt":null,"id":23884907708515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ff18fa7f3a9f476f244cc9bf09eb9df37e01c_ae7e4dd4-c0b7-4e3a-b649-106fa73ff418.webp?v=1714834410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3ff18fa7f3a9f476f244cc9bf09eb9df37e01c_ae7e4dd4-c0b7-4e3a-b649-106fa73ff418.webp?v=1714834410","width":2000},{"alt":null,"id":23884908134499,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c2a3961ce2bea64b5e784d476f5041f8e969c0_38b30bc0-c7e0-48fa-bad2-91e8b3c924c4.webp?v=1714834412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56c2a3961ce2bea64b5e784d476f5041f8e969c0_38b30bc0-c7e0-48fa-bad2-91e8b3c924c4.webp?v=1714834412","width":2000},{"alt":null,"id":23884908789859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39da94e81c3daf0c3495ff4660d8475b74fa691_12eb3edf-2396-48e4-b032-18ccc7949c53.webp?v=1714834414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39da94e81c3daf0c3495ff4660d8475b74fa691_12eb3edf-2396-48e4-b032-18ccc7949c53.webp?v=1714834414","width":2000},{"alt":null,"id":23884909150307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd3d9b24f6e755bde0c6e83d2b80ad06288ae9_5881944c-f415-4c3f-adb6-cc6285d9b959.webp?v=1714834416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adfd3d9b24f6e755bde0c6e83d2b80ad06288ae9_5881944c-f415-4c3f-adb6-cc6285d9b959.webp?v=1714834416","width":2000},{"alt":null,"id":23884909609059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419","width":2000},{"alt":null,"id":23884910035043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a96c59949da81301e5d4d9a20f3991a66d87791_d39e36ea-3651-4ba1-9b4a-86721ec0000b.webp?v=1714834421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a96c59949da81301e5d4d9a20f3991a66d87791_d39e36ea-3651-4ba1-9b4a-86721ec0000b.webp?v=1714834421","width":2000},{"alt":null,"id":23884910592099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01fbd6cdd1f523d0eeaef762e2a592d5baf92c6_b05fe275-5a50-4300-8992-51c5f94a697d.webp?v=1714834423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01fbd6cdd1f523d0eeaef762e2a592d5baf92c6_b05fe275-5a50-4300-8992-51c5f94a697d.webp?v=1714834423","width":2000},{"alt":null,"id":23884911050851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f5685009e30ef036dd61da36e4fc239389b914_ea281f73-b19d-420c-bcef-b675c71f08a5.webp?v=1714834425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4f5685009e30ef036dd61da36e4fc239389b914_ea281f73-b19d-420c-bcef-b675c71f08a5.webp?v=1714834425","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895503429731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479659331683,"product_id":7411153633379,"position":2,"created_at":"2024-05-04T22:53:27+08:00","updated_at":"2024-05-04T22:53:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407","variant_ids":[41895503429731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0129624-PB34","featured_media":{"alt":null,"id":23884907184227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895503560803,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479661789283,"product_id":7411153633379,"position":7,"created_at":"2024-05-04T22:53:39+08:00","updated_at":"2024-05-04T22:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419","variant_ids":[41895503560803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0129657-PB34","featured_media":{"alt":null,"id":23884909609059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f078a5b919832a7f4ef51d16a600f578e4cfe1cb_8f9f728f-0d60-4261-b850-ebaabaac3c4d.webp?v=1714834419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895503429731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB34","requires_shipping":true,"taxable":true,"featured_image":{"id":31479659331683,"product_id":7411153633379,"position":2,"created_at":"2024-05-04T22:53:27+08:00","updated_at":"2024-05-04T22:53:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407","variant_ids":[41895503429731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - R2D2 \u0026 C3PO-塗鴉藝術 - 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":"MPB0129624-PB34","featured_media":{"alt":null,"id":23884907184227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6091ff55e4eb7cb4463fa5526f01a97b0354ca7_bfca2e84-7484-405e-bd2d-99f4f4d59e6c.webp?v=1714834407"}},"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: "停產" }