$product = {"id":7411430064227,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb17","description":null,"published_at":"2024-06-11T17:44:47+08:00","created_at":"2024-05-05T00:28:20+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":41898790715491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31480404639843,"product_id":7411430064227,"position":1,"created_at":"2024-05-05T00:28:22+08:00","updated_at":"2024-05-05T00:28:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","variant_ids":[41898790715491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23885656293475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600e139359754a98aec10a51500720b6e21f1d31_bece2e96-6e50-4afa-8d16-b131cbe3a2e0.webp?v=1714840105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ccbc9a3e623edba897ac0e0f245f75a6e0f53b_fc5c0734-213f-4a83-801b-2024b595f5ff.webp?v=1714840107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b75c57c4968bf33a5e68974b40fc0f42f88c2bb_0db74683-e643-4ccb-bbf7-694614758f84.webp?v=1714840110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b5a60d1ea9ed6e5304c3833c33a3c71aaea0d7_c597c4c9-84f8-4673-b604-384ae9e71fe6.webp?v=1714840112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931a913f19ae05083ceee7833dfd7fc3bf27069f_3401c021-47fd-48fb-a0bd-c0f846d87f18.webp?v=1714840114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9713eea87f0be987f214127dfe8b37b2225f152a_1ed39a82-b04a-43ad-8bcc-ca4ea2871274.webp?v=1714840117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6718ca0ce46e98181c3d843134a808c3242ed5b6_f7377695-b801-4fcb-b4c0-936d250d0d29.webp?v=1714840119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2567c86bc16544420fe9dda0e7e9b5e45ddcbf7a_017c41ab-3e54-4e3e-bbdc-96adcb5e1a06.webp?v=1714840122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266cf44da70405b576a4c73df26f04a6bb166e74_8b8f6a79-601d-4c30-8e40-48c9b36400a1.webp?v=1714840124"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","options":["color"],"media":[{"alt":null,"id":23885656293475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","width":2000},{"alt":null,"id":23885656719459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600e139359754a98aec10a51500720b6e21f1d31_bece2e96-6e50-4afa-8d16-b131cbe3a2e0.webp?v=1714840105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/600e139359754a98aec10a51500720b6e21f1d31_bece2e96-6e50-4afa-8d16-b131cbe3a2e0.webp?v=1714840105","width":2000},{"alt":null,"id":23885657079907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ccbc9a3e623edba897ac0e0f245f75a6e0f53b_fc5c0734-213f-4a83-801b-2024b595f5ff.webp?v=1714840107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ccbc9a3e623edba897ac0e0f245f75a6e0f53b_fc5c0734-213f-4a83-801b-2024b595f5ff.webp?v=1714840107","width":2000},{"alt":null,"id":23885657571427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b75c57c4968bf33a5e68974b40fc0f42f88c2bb_0db74683-e643-4ccb-bbf7-694614758f84.webp?v=1714840110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b75c57c4968bf33a5e68974b40fc0f42f88c2bb_0db74683-e643-4ccb-bbf7-694614758f84.webp?v=1714840110","width":2000},{"alt":null,"id":23885658030179,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b5a60d1ea9ed6e5304c3833c33a3c71aaea0d7_c597c4c9-84f8-4673-b604-384ae9e71fe6.webp?v=1714840112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35b5a60d1ea9ed6e5304c3833c33a3c71aaea0d7_c597c4c9-84f8-4673-b604-384ae9e71fe6.webp?v=1714840112","width":2000},{"alt":null,"id":23885658554467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931a913f19ae05083ceee7833dfd7fc3bf27069f_3401c021-47fd-48fb-a0bd-c0f846d87f18.webp?v=1714840114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/931a913f19ae05083ceee7833dfd7fc3bf27069f_3401c021-47fd-48fb-a0bd-c0f846d87f18.webp?v=1714840114","width":2000},{"alt":null,"id":23885659045987,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9713eea87f0be987f214127dfe8b37b2225f152a_1ed39a82-b04a-43ad-8bcc-ca4ea2871274.webp?v=1714840117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9713eea87f0be987f214127dfe8b37b2225f152a_1ed39a82-b04a-43ad-8bcc-ca4ea2871274.webp?v=1714840117","width":2000},{"alt":null,"id":23885659537507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6718ca0ce46e98181c3d843134a808c3242ed5b6_f7377695-b801-4fcb-b4c0-936d250d0d29.webp?v=1714840119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6718ca0ce46e98181c3d843134a808c3242ed5b6_f7377695-b801-4fcb-b4c0-936d250d0d29.webp?v=1714840119","width":2000},{"alt":null,"id":23885660160099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2567c86bc16544420fe9dda0e7e9b5e45ddcbf7a_017c41ab-3e54-4e3e-bbdc-96adcb5e1a06.webp?v=1714840122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2567c86bc16544420fe9dda0e7e9b5e45ddcbf7a_017c41ab-3e54-4e3e-bbdc-96adcb5e1a06.webp?v=1714840122","width":2000},{"alt":null,"id":23885660848227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266cf44da70405b576a4c73df26f04a6bb166e74_8b8f6a79-601d-4c30-8e40-48c9b36400a1.webp?v=1714840124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/266cf44da70405b576a4c73df26f04a6bb166e74_8b8f6a79-601d-4c30-8e40-48c9b36400a1.webp?v=1714840124","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898790715491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31480404639843,"product_id":7411430064227,"position":1,"created_at":"2024-05-05T00:28:22+08:00","updated_at":"2024-05-05T00:28:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","variant_ids":[41898790715491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23885656293475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898790715491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31480404639843,"product_id":7411430064227,"position":1,"created_at":"2024-05-05T00:28:22+08:00","updated_at":"2024-05-05T00:28:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102","variant_ids":[41898790715491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條黑 - 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-PB17","featured_media":{"alt":null,"id":23885656293475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/292c0f9827f60b6993ed43f0a6f79be81caf8d25_d2623f94-a65a-4067-9fd6-3c40332514b2.webp?v=1714840102"}},"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: "停產" }