$product = {"id":7411343327331,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb78","description":null,"published_at":"2024-06-11T17:42:23+08:00","created_at":"2024-05-05T00:11: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":41897696165987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31480190861411,"product_id":7411343327331,"position":10,"created_at":"2024-05-05T00:11:44+08:00","updated_at":"2024-05-05T00:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104","variant_ids":[41897696165987]},"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-PB78","featured_media":{"alt":null,"id":23885441859683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d44f8fe77f597552ce352ac9d8b275b0a805e7a_495cb283-aade-45fc-a3a5-bc3a814b9bb5.webp?v=1714839083","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569f3d9bf8f16c8d7e3059aa1614ac413c51b7da_7b57ceb0-f731-4857-8b99-0dc839c2f4d9.webp?v=1714839085","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e47e4f77c861e2115a92c7cbb40ccb746673749f_e507c9a5-5f39-45c5-be2e-b6d562248105.webp?v=1714839087","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7787875d031279975efc7b714db55cdfcfd810e6_a871598f-a541-4dc0-adcd-49f62298c59a.webp?v=1714839090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b89972669e144e0a011ddb037f15ded362a5a41_106cd79d-81d4-4acd-8a6c-3e7cc98d1c47.webp?v=1714839092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b28ab11ad636e84c0b1e2327bac251a9eecb5ad7_40ff79c0-c515-49f4-8d6a-4e3ed276ae45.webp?v=1714839095","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1be2f537325b6456e7836650a710d780eaccc_c9139334-9a0e-44cd-8eff-fa4d7401a229.webp?v=1714839097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6caa597679be8c25f7fa111574ee60899a6ae9_a3ce2066-2f45-4fbd-9b20-e5561cc7f776.webp?v=1714839099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342efdb08c806bd45a9fe78e46791e906b446f15_22884f4a-03d7-40de-9182-ee1828ef9d69.webp?v=1714839102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d44f8fe77f597552ce352ac9d8b275b0a805e7a_495cb283-aade-45fc-a3a5-bc3a814b9bb5.webp?v=1714839083","options":["color"],"media":[{"alt":null,"id":23885437337699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d44f8fe77f597552ce352ac9d8b275b0a805e7a_495cb283-aade-45fc-a3a5-bc3a814b9bb5.webp?v=1714839083"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d44f8fe77f597552ce352ac9d8b275b0a805e7a_495cb283-aade-45fc-a3a5-bc3a814b9bb5.webp?v=1714839083","width":2000},{"alt":null,"id":23885437861987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569f3d9bf8f16c8d7e3059aa1614ac413c51b7da_7b57ceb0-f731-4857-8b99-0dc839c2f4d9.webp?v=1714839085"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569f3d9bf8f16c8d7e3059aa1614ac413c51b7da_7b57ceb0-f731-4857-8b99-0dc839c2f4d9.webp?v=1714839085","width":2000},{"alt":null,"id":23885438320739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e47e4f77c861e2115a92c7cbb40ccb746673749f_e507c9a5-5f39-45c5-be2e-b6d562248105.webp?v=1714839087"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e47e4f77c861e2115a92c7cbb40ccb746673749f_e507c9a5-5f39-45c5-be2e-b6d562248105.webp?v=1714839087","width":2000},{"alt":null,"id":23885438713955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7787875d031279975efc7b714db55cdfcfd810e6_a871598f-a541-4dc0-adcd-49f62298c59a.webp?v=1714839090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7787875d031279975efc7b714db55cdfcfd810e6_a871598f-a541-4dc0-adcd-49f62298c59a.webp?v=1714839090","width":2000},{"alt":null,"id":23885439369315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b89972669e144e0a011ddb037f15ded362a5a41_106cd79d-81d4-4acd-8a6c-3e7cc98d1c47.webp?v=1714839092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b89972669e144e0a011ddb037f15ded362a5a41_106cd79d-81d4-4acd-8a6c-3e7cc98d1c47.webp?v=1714839092","width":2000},{"alt":null,"id":23885439795299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b28ab11ad636e84c0b1e2327bac251a9eecb5ad7_40ff79c0-c515-49f4-8d6a-4e3ed276ae45.webp?v=1714839095"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b28ab11ad636e84c0b1e2327bac251a9eecb5ad7_40ff79c0-c515-49f4-8d6a-4e3ed276ae45.webp?v=1714839095","width":2000},{"alt":null,"id":23885440385123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1be2f537325b6456e7836650a710d780eaccc_c9139334-9a0e-44cd-8eff-fa4d7401a229.webp?v=1714839097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1be2f537325b6456e7836650a710d780eaccc_c9139334-9a0e-44cd-8eff-fa4d7401a229.webp?v=1714839097","width":2000},{"alt":null,"id":23885440811107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6caa597679be8c25f7fa111574ee60899a6ae9_a3ce2066-2f45-4fbd-9b20-e5561cc7f776.webp?v=1714839099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6caa597679be8c25f7fa111574ee60899a6ae9_a3ce2066-2f45-4fbd-9b20-e5561cc7f776.webp?v=1714839099","width":2000},{"alt":null,"id":23885441302627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342efdb08c806bd45a9fe78e46791e906b446f15_22884f4a-03d7-40de-9182-ee1828ef9d69.webp?v=1714839102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342efdb08c806bd45a9fe78e46791e906b446f15_22884f4a-03d7-40de-9182-ee1828ef9d69.webp?v=1714839102","width":2000},{"alt":null,"id":23885441859683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897696165987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31480190861411,"product_id":7411343327331,"position":10,"created_at":"2024-05-05T00:11:44+08:00","updated_at":"2024-05-05T00:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104","variant_ids":[41897696165987]},"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-PB78","featured_media":{"alt":null,"id":23885441859683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897696165987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31480190861411,"product_id":7411343327331,"position":10,"created_at":"2024-05-05T00:11:44+08:00","updated_at":"2024-05-05T00:11:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104","variant_ids":[41897696165987]},"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-PB78","featured_media":{"alt":null,"id":23885441859683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da4faea3b2d29d047c3a6679a229e729d1e4240_b197c67b-bb7b-452f-aef4-e07159cf486f.webp?v=1714839104"}},"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: "停產" }