$product = {"id":7411403587683,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP全載具1-黑","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb09","description":null,"published_at":"2024-06-11T17:44:02+08:00","created_at":"2024-05-05T00:23:04+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":41898448453731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480341626979,"product_id":7411403587683,"position":6,"created_at":"2024-05-05T00:23:19+08:00","updated_at":"2024-05-05T00:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799","variant_ids":[41898448453731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23885593182307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd113748bb09f3cce5718a970acd898de9bfe30_7e8b0a4f-e8e8-47f1-8188-dd0cbc7584f3.webp?v=1714839787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710d094278c55313ceaead168d4296f07fb56794_7cf730d8-30d1-42e8-9fc8-3c3ffa72eea2.webp?v=1714839790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44123ed52cc8918ba8ad971138cbfd2319580b6b_6a019d5e-4a3c-4df5-9f4c-c7102f127404.webp?v=1714839792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4672083048045205d1367ad6c03e70ea75318cd_b46bc10d-a376-4af2-807f-c1c02c06fcfe.webp?v=1714839794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37c3c8880c58dfb134f94331d9ded1d258d1ab89_99830974-351e-4363-95b6-14a8bfbea1e7.webp?v=1714839797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c33a86fef864854cec043c5771b7da7cf345d88_b8f8994b-74b9-4cd2-a666-bbc5e9a4d874.webp?v=1714839802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2719caf9dd53444e6774543f52b60f684dba6d3a_9a4a67e5-dd17-4e25-8102-7d9ecc10a2e6.webp?v=1714839804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b0255b240694887a49d53812d0a4609b3f7e9a_cea93db0-5de1-4694-b7d5-262ae484fe9b.webp?v=1714839807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704bc6a105e87224c7e9327373fa5553ddfa642c_1f36a10e-9045-4e32-a841-e3b07d8b69c2.webp?v=1714839809"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd113748bb09f3cce5718a970acd898de9bfe30_7e8b0a4f-e8e8-47f1-8188-dd0cbc7584f3.webp?v=1714839787","options":["color"],"media":[{"alt":null,"id":23885590429795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd113748bb09f3cce5718a970acd898de9bfe30_7e8b0a4f-e8e8-47f1-8188-dd0cbc7584f3.webp?v=1714839787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dd113748bb09f3cce5718a970acd898de9bfe30_7e8b0a4f-e8e8-47f1-8188-dd0cbc7584f3.webp?v=1714839787","width":2000},{"alt":null,"id":23885591183459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710d094278c55313ceaead168d4296f07fb56794_7cf730d8-30d1-42e8-9fc8-3c3ffa72eea2.webp?v=1714839790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/710d094278c55313ceaead168d4296f07fb56794_7cf730d8-30d1-42e8-9fc8-3c3ffa72eea2.webp?v=1714839790","width":2000},{"alt":null,"id":23885591609443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44123ed52cc8918ba8ad971138cbfd2319580b6b_6a019d5e-4a3c-4df5-9f4c-c7102f127404.webp?v=1714839792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44123ed52cc8918ba8ad971138cbfd2319580b6b_6a019d5e-4a3c-4df5-9f4c-c7102f127404.webp?v=1714839792","width":2000},{"alt":null,"id":23885592199267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4672083048045205d1367ad6c03e70ea75318cd_b46bc10d-a376-4af2-807f-c1c02c06fcfe.webp?v=1714839794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4672083048045205d1367ad6c03e70ea75318cd_b46bc10d-a376-4af2-807f-c1c02c06fcfe.webp?v=1714839794","width":2000},{"alt":null,"id":23885592756323,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37c3c8880c58dfb134f94331d9ded1d258d1ab89_99830974-351e-4363-95b6-14a8bfbea1e7.webp?v=1714839797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37c3c8880c58dfb134f94331d9ded1d258d1ab89_99830974-351e-4363-95b6-14a8bfbea1e7.webp?v=1714839797","width":2000},{"alt":null,"id":23885593182307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799","width":2000},{"alt":null,"id":23885593739363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c33a86fef864854cec043c5771b7da7cf345d88_b8f8994b-74b9-4cd2-a666-bbc5e9a4d874.webp?v=1714839802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c33a86fef864854cec043c5771b7da7cf345d88_b8f8994b-74b9-4cd2-a666-bbc5e9a4d874.webp?v=1714839802","width":2000},{"alt":null,"id":23885594198115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2719caf9dd53444e6774543f52b60f684dba6d3a_9a4a67e5-dd17-4e25-8102-7d9ecc10a2e6.webp?v=1714839804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2719caf9dd53444e6774543f52b60f684dba6d3a_9a4a67e5-dd17-4e25-8102-7d9ecc10a2e6.webp?v=1714839804","width":2000},{"alt":null,"id":23885594624099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b0255b240694887a49d53812d0a4609b3f7e9a_cea93db0-5de1-4694-b7d5-262ae484fe9b.webp?v=1714839807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93b0255b240694887a49d53812d0a4609b3f7e9a_cea93db0-5de1-4694-b7d5-262ae484fe9b.webp?v=1714839807","width":2000},{"alt":null,"id":23885595148387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704bc6a105e87224c7e9327373fa5553ddfa642c_1f36a10e-9045-4e32-a841-e3b07d8b69c2.webp?v=1714839809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/704bc6a105e87224c7e9327373fa5553ddfa642c_1f36a10e-9045-4e32-a841-e3b07d8b69c2.webp?v=1714839809","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898448453731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480341626979,"product_id":7411403587683,"position":6,"created_at":"2024-05-05T00:23:19+08:00","updated_at":"2024-05-05T00:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799","variant_ids":[41898448453731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23885593182307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898448453731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31480341626979,"product_id":7411403587683,"position":6,"created_at":"2024-05-05T00:23:19+08:00","updated_at":"2024-05-05T00:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799","variant_ids":[41898448453731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23885593182307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdab9c44e7f43345812487a0934df95afeba5cc_9cd1cc50-2afe-4c2f-a0d4-c2e51cfc0d7d.webp?v=1714839799"}},"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: "停產" }