$product = {"id":7411393364067,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb25","description":null,"published_at":"2024-06-11T17:43:45+08:00","created_at":"2024-05-05T00:21:11+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":41898326687843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319443043,"product_id":7411393364067,"position":10,"created_at":"2024-05-05T00:21:38+08:00","updated_at":"2024-05-05T00:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698","variant_ids":[41898326687843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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-PB25","featured_media":{"alt":null,"id":23885570965603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/391a0c13923c58be99167f5e227b8839153e392f_1a30ad03-c78e-48c4-a324-b53bb396b47c.webp?v=1714839673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89a1bc36bf7a8935bb93b53e93458f24efa1103_f625bf05-0f3e-48a4-9191-bbb09930a6b2.webp?v=1714839676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6d70fab71a2122191d63c648425fd0562afe0_ec67cdb7-179a-4efa-bbb3-eaa95f1b5bad.webp?v=1714839679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f2dd6bf6776101ce4e6fe63dc50922bbdfb9c33_9f6df739-8464-4b83-b7ad-c2b3c93dcd2d.webp?v=1714839681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe03e8184e84eeead85e61343bb05f770ac93c0a_157ae68e-a8ea-4ccf-8d69-ec8042938c18.webp?v=1714839684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3d0bc969ef85abdab003d8961aba9424a5ba39_02ba4c5e-8f0a-4a97-9f00-6167a92410a8.webp?v=1714839686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70237d97f6b756ab74f09bc371f0706158639f7_aec2be13-54ec-4883-a0ff-2de3d981d0cf.webp?v=1714839689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85028e58dd56f051c594d2deb4cecd056779a1d6_f997a23c-e661-4923-aed2-8c2dd356be5f.webp?v=1714839692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449bdfee7ae0a303e4634c3fc7bbb16ee49f665f_4a9ee968-d725-4512-ac9c-2683bced2fca.webp?v=1714839694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/391a0c13923c58be99167f5e227b8839153e392f_1a30ad03-c78e-48c4-a324-b53bb396b47c.webp?v=1714839673","options":["color"],"media":[{"alt":null,"id":23885565722723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/391a0c13923c58be99167f5e227b8839153e392f_1a30ad03-c78e-48c4-a324-b53bb396b47c.webp?v=1714839673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/391a0c13923c58be99167f5e227b8839153e392f_1a30ad03-c78e-48c4-a324-b53bb396b47c.webp?v=1714839673","width":2000},{"alt":null,"id":23885566247011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89a1bc36bf7a8935bb93b53e93458f24efa1103_f625bf05-0f3e-48a4-9191-bbb09930a6b2.webp?v=1714839676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a89a1bc36bf7a8935bb93b53e93458f24efa1103_f625bf05-0f3e-48a4-9191-bbb09930a6b2.webp?v=1714839676","width":2000},{"alt":null,"id":23885566804067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6d70fab71a2122191d63c648425fd0562afe0_ec67cdb7-179a-4efa-bbb3-eaa95f1b5bad.webp?v=1714839679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60c6d70fab71a2122191d63c648425fd0562afe0_ec67cdb7-179a-4efa-bbb3-eaa95f1b5bad.webp?v=1714839679","width":2000},{"alt":null,"id":23885567295587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f2dd6bf6776101ce4e6fe63dc50922bbdfb9c33_9f6df739-8464-4b83-b7ad-c2b3c93dcd2d.webp?v=1714839681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f2dd6bf6776101ce4e6fe63dc50922bbdfb9c33_9f6df739-8464-4b83-b7ad-c2b3c93dcd2d.webp?v=1714839681","width":2000},{"alt":null,"id":23885567885411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe03e8184e84eeead85e61343bb05f770ac93c0a_157ae68e-a8ea-4ccf-8d69-ec8042938c18.webp?v=1714839684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe03e8184e84eeead85e61343bb05f770ac93c0a_157ae68e-a8ea-4ccf-8d69-ec8042938c18.webp?v=1714839684","width":2000},{"alt":null,"id":23885568475235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3d0bc969ef85abdab003d8961aba9424a5ba39_02ba4c5e-8f0a-4a97-9f00-6167a92410a8.webp?v=1714839686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb3d0bc969ef85abdab003d8961aba9424a5ba39_02ba4c5e-8f0a-4a97-9f00-6167a92410a8.webp?v=1714839686","width":2000},{"alt":null,"id":23885569130595,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70237d97f6b756ab74f09bc371f0706158639f7_aec2be13-54ec-4883-a0ff-2de3d981d0cf.webp?v=1714839689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70237d97f6b756ab74f09bc371f0706158639f7_aec2be13-54ec-4883-a0ff-2de3d981d0cf.webp?v=1714839689","width":2000},{"alt":null,"id":23885569720419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85028e58dd56f051c594d2deb4cecd056779a1d6_f997a23c-e661-4923-aed2-8c2dd356be5f.webp?v=1714839692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85028e58dd56f051c594d2deb4cecd056779a1d6_f997a23c-e661-4923-aed2-8c2dd356be5f.webp?v=1714839692","width":2000},{"alt":null,"id":23885570244707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449bdfee7ae0a303e4634c3fc7bbb16ee49f665f_4a9ee968-d725-4512-ac9c-2683bced2fca.webp?v=1714839694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/449bdfee7ae0a303e4634c3fc7bbb16ee49f665f_4a9ee968-d725-4512-ac9c-2683bced2fca.webp?v=1714839694","width":2000},{"alt":null,"id":23885570965603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898326687843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319443043,"product_id":7411393364067,"position":10,"created_at":"2024-05-05T00:21:38+08:00","updated_at":"2024-05-05T00:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698","variant_ids":[41898326687843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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-PB25","featured_media":{"alt":null,"id":23885570965603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898326687843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB25","requires_shipping":true,"taxable":true,"featured_image":{"id":31480319443043,"product_id":7411393364067,"position":10,"created_at":"2024-05-05T00:21:38+08:00","updated_at":"2024-05-05T00:21:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698","variant_ids":[41898326687843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 X-WI - 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-PB25","featured_media":{"alt":null,"id":23885570965603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f70bbf21ef5885ecd6212c876d0a8f2cf0ff79_a9473482-59dd-460a-bc0b-097f975a62f1.webp?v=1714839698"}},"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: "停產" }