$product = {"id":7411211927651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-芮","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc05","description":null,"published_at":"2024-06-11T17:38:54+08:00","created_at":"2024-05-04T23:46: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":41896048033891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479860461667,"product_id":7411211927651,"position":5,"created_at":"2024-05-04T23:46:31+08:00","updated_at":"2024-05-04T23:46:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591","variant_ids":[41896048033891]},"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-PC05","featured_media":{"alt":null,"id":23885110804579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d57dba356f158a46fa13e6fe248691fc8e1bf3f_5bf2ca50-b518-44ab-b9dd-9d97f3ace9a3.webp?v=1714837582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb17a80a2afae3c1230e2ec8b94438d113f2e7db_92d0f03a-a4de-4cdc-98b2-f413741c7ea1.webp?v=1714837585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1064449017bf15024a300dd63b44dd8ea910b250_5145dbe7-965b-4ea7-a287-1a8f27bbb1d2.webp?v=1714837587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb8b59d16b37ffd889aaae3abeed1077ccb0011_44308b2a-8d7e-4408-a3ce-dc7d6d65b774.webp?v=1714837589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65f9d41cfb23703e6102371e5c2a90c400385682_9fbcfbea-b584-4979-9aa7-bd2254454d2c.webp?v=1714837594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a89cb1ebb28250dab250f12ea6fe7037f06dee2_df91a825-6cc8-4273-a1ef-962680cdc0fa.webp?v=1714837596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977424c7443b491c0d015d458e42cc801322870f_97480103-075a-4a5f-a970-f4730c3f71fd.webp?v=1714837598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce172c3d9d6751409f7342cf8bc063b6a2730b85_e8ac6041-27e6-4492-b951-31ea635e2f42.webp?v=1714837601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c8c48849065427841e82ab098ddb5433ae03df_067bbddd-81cb-478d-b6a7-844999f56568.webp?v=1714837603"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d57dba356f158a46fa13e6fe248691fc8e1bf3f_5bf2ca50-b518-44ab-b9dd-9d97f3ace9a3.webp?v=1714837582","options":["color"],"media":[{"alt":null,"id":23885108510819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d57dba356f158a46fa13e6fe248691fc8e1bf3f_5bf2ca50-b518-44ab-b9dd-9d97f3ace9a3.webp?v=1714837582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d57dba356f158a46fa13e6fe248691fc8e1bf3f_5bf2ca50-b518-44ab-b9dd-9d97f3ace9a3.webp?v=1714837582","width":2000},{"alt":null,"id":23885109067875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb17a80a2afae3c1230e2ec8b94438d113f2e7db_92d0f03a-a4de-4cdc-98b2-f413741c7ea1.webp?v=1714837585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb17a80a2afae3c1230e2ec8b94438d113f2e7db_92d0f03a-a4de-4cdc-98b2-f413741c7ea1.webp?v=1714837585","width":2000},{"alt":null,"id":23885109756003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1064449017bf15024a300dd63b44dd8ea910b250_5145dbe7-965b-4ea7-a287-1a8f27bbb1d2.webp?v=1714837587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1064449017bf15024a300dd63b44dd8ea910b250_5145dbe7-965b-4ea7-a287-1a8f27bbb1d2.webp?v=1714837587","width":2000},{"alt":null,"id":23885110313059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb8b59d16b37ffd889aaae3abeed1077ccb0011_44308b2a-8d7e-4408-a3ce-dc7d6d65b774.webp?v=1714837589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb8b59d16b37ffd889aaae3abeed1077ccb0011_44308b2a-8d7e-4408-a3ce-dc7d6d65b774.webp?v=1714837589","width":2000},{"alt":null,"id":23885110804579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591","width":2000},{"alt":null,"id":23885111394403,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65f9d41cfb23703e6102371e5c2a90c400385682_9fbcfbea-b584-4979-9aa7-bd2254454d2c.webp?v=1714837594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65f9d41cfb23703e6102371e5c2a90c400385682_9fbcfbea-b584-4979-9aa7-bd2254454d2c.webp?v=1714837594","width":2000},{"alt":null,"id":23885111918691,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a89cb1ebb28250dab250f12ea6fe7037f06dee2_df91a825-6cc8-4273-a1ef-962680cdc0fa.webp?v=1714837596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a89cb1ebb28250dab250f12ea6fe7037f06dee2_df91a825-6cc8-4273-a1ef-962680cdc0fa.webp?v=1714837596","width":2000},{"alt":null,"id":23885112803427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977424c7443b491c0d015d458e42cc801322870f_97480103-075a-4a5f-a970-f4730c3f71fd.webp?v=1714837598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/977424c7443b491c0d015d458e42cc801322870f_97480103-075a-4a5f-a970-f4730c3f71fd.webp?v=1714837598","width":2000},{"alt":null,"id":23885113589859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce172c3d9d6751409f7342cf8bc063b6a2730b85_e8ac6041-27e6-4492-b951-31ea635e2f42.webp?v=1714837601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce172c3d9d6751409f7342cf8bc063b6a2730b85_e8ac6041-27e6-4492-b951-31ea635e2f42.webp?v=1714837601","width":2000},{"alt":null,"id":23885114015843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c8c48849065427841e82ab098ddb5433ae03df_067bbddd-81cb-478d-b6a7-844999f56568.webp?v=1714837603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c8c48849065427841e82ab098ddb5433ae03df_067bbddd-81cb-478d-b6a7-844999f56568.webp?v=1714837603","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896048033891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479860461667,"product_id":7411211927651,"position":5,"created_at":"2024-05-04T23:46:31+08:00","updated_at":"2024-05-04T23:46:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591","variant_ids":[41896048033891]},"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-PC05","featured_media":{"alt":null,"id":23885110804579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896048033891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31479860461667,"product_id":7411211927651,"position":5,"created_at":"2024-05-04T23:46:31+08:00","updated_at":"2024-05-04T23:46:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591","variant_ids":[41896048033891]},"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-PC05","featured_media":{"alt":null,"id":23885110804579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fce87ef380ccd6cdf1da9af58db1e9dab8cbc5_dbe95475-2a16-4045-99f3-7cd1fe0e4114.webp?v=1714837591"}},"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: "停產" }