$product = {"id":7407870214243,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-14-plus-mod-nx-printable-pb18","description":null,"published_at":"2024-06-11T16:25:09+08:00","created_at":"2024-05-03T11:06:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41879872864355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581055587,"product_id":7407870214243,"position":6,"created_at":"2024-05-03T11:06:33+08:00","updated_at":"2024-05-03T11:06:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593","variant_ids":[41879872864355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB18","featured_media":{"alt":null,"id":23875484909667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f23b5bed157079635e7634b2d55dc93f1152bd_09aeaa87-e11d-4240-85a9-6f5cae2a5684.webp?v=1714705581","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c9841f958303ddd163d6ee2013ca9853a9c93e_1d05637b-8b4b-4b8d-b666-95db707faddd.webp?v=1714705583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a347f973962508b7f5dc20db20c7e0f2bd185288_4131c5fa-0e50-457c-8186-92c414672cca.webp?v=1714705586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf4810f1a23406dec3503a5856c94d360b9c609e_184ac1c4-047a-4603-b30d-2d3d37524dc9.webp?v=1714705588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc2203b884b2abb8594a4ac5116ceebf0b91d23e_81081aab-026a-4e7c-bbd6-7e01d924e176.webp?v=1714705590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf82a83c277f7b4b710995171600cc508bbabee5_a383f96d-14a4-40f4-acfd-639d3cb99923.webp?v=1714705595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b70ab8d2103ab5586a105f88fdb45732b9c5ba2_986c39d1-c573-46fb-8aaf-c7e79e2ceb2c.webp?v=1714705598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3400f6f34ad917feb0797c72140e9b83a964ac5_1c985ed3-9343-455a-bbf8-2110f3f5cca8.webp?v=1714705600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402c79b1288d1c8fb0c9eb662b0ff42b0c2ef9fd_0a30b4b1-cd82-45cb-ab1b-d195b0140c32.webp?v=1714705602"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f23b5bed157079635e7634b2d55dc93f1152bd_09aeaa87-e11d-4240-85a9-6f5cae2a5684.webp?v=1714705581","options":["color"],"media":[{"alt":null,"id":23875482353763,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f23b5bed157079635e7634b2d55dc93f1152bd_09aeaa87-e11d-4240-85a9-6f5cae2a5684.webp?v=1714705581"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8f23b5bed157079635e7634b2d55dc93f1152bd_09aeaa87-e11d-4240-85a9-6f5cae2a5684.webp?v=1714705581","width":2000},{"alt":null,"id":23875482910819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c9841f958303ddd163d6ee2013ca9853a9c93e_1d05637b-8b4b-4b8d-b666-95db707faddd.webp?v=1714705583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8c9841f958303ddd163d6ee2013ca9853a9c93e_1d05637b-8b4b-4b8d-b666-95db707faddd.webp?v=1714705583","width":2000},{"alt":null,"id":23875483336803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a347f973962508b7f5dc20db20c7e0f2bd185288_4131c5fa-0e50-457c-8186-92c414672cca.webp?v=1714705586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a347f973962508b7f5dc20db20c7e0f2bd185288_4131c5fa-0e50-457c-8186-92c414672cca.webp?v=1714705586","width":2000},{"alt":null,"id":23875483795555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf4810f1a23406dec3503a5856c94d360b9c609e_184ac1c4-047a-4603-b30d-2d3d37524dc9.webp?v=1714705588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf4810f1a23406dec3503a5856c94d360b9c609e_184ac1c4-047a-4603-b30d-2d3d37524dc9.webp?v=1714705588","width":2000},{"alt":null,"id":23875484385379,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc2203b884b2abb8594a4ac5116ceebf0b91d23e_81081aab-026a-4e7c-bbd6-7e01d924e176.webp?v=1714705590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc2203b884b2abb8594a4ac5116ceebf0b91d23e_81081aab-026a-4e7c-bbd6-7e01d924e176.webp?v=1714705590","width":2000},{"alt":null,"id":23875484909667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593","width":2000},{"alt":null,"id":23875485368419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf82a83c277f7b4b710995171600cc508bbabee5_a383f96d-14a4-40f4-acfd-639d3cb99923.webp?v=1714705595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf82a83c277f7b4b710995171600cc508bbabee5_a383f96d-14a4-40f4-acfd-639d3cb99923.webp?v=1714705595","width":2000},{"alt":null,"id":23875485859939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b70ab8d2103ab5586a105f88fdb45732b9c5ba2_986c39d1-c573-46fb-8aaf-c7e79e2ceb2c.webp?v=1714705598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b70ab8d2103ab5586a105f88fdb45732b9c5ba2_986c39d1-c573-46fb-8aaf-c7e79e2ceb2c.webp?v=1714705598","width":2000},{"alt":null,"id":23875486285923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3400f6f34ad917feb0797c72140e9b83a964ac5_1c985ed3-9343-455a-bbf8-2110f3f5cca8.webp?v=1714705600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3400f6f34ad917feb0797c72140e9b83a964ac5_1c985ed3-9343-455a-bbf8-2110f3f5cca8.webp?v=1714705600","width":2000},{"alt":null,"id":23875486711907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402c79b1288d1c8fb0c9eb662b0ff42b0c2ef9fd_0a30b4b1-cd82-45cb-ab1b-d195b0140c32.webp?v=1714705602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/402c79b1288d1c8fb0c9eb662b0ff42b0c2ef9fd_0a30b4b1-cd82-45cb-ab1b-d195b0140c32.webp?v=1714705602","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879872864355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581055587,"product_id":7407870214243,"position":6,"created_at":"2024-05-03T11:06:33+08:00","updated_at":"2024-05-03T11:06:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593","variant_ids":[41879872864355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB18","featured_media":{"alt":null,"id":23875484909667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879872864355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31470581055587,"product_id":7407870214243,"position":6,"created_at":"2024-05-03T11:06:33+08:00","updated_at":"2024-05-03T11:06:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593","variant_ids":[41879872864355]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-PB18","featured_media":{"alt":null,"id":23875484909667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab30f9f7ea4c3f9781f855a0dae8c8edd76d014f_714814a1-95aa-4e21-91ff-136bfa274c3e.webp?v=1714705593"}},"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: "停產" }