$product = {"id":7411411517539,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb08","description":null,"published_at":"2024-06-11T17:44:15+08:00","created_at":"2024-05-05T00:24:38+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":41898551312483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480362303587,"product_id":7411411517539,"position":8,"created_at":"2024-05-05T00:24:56+08:00","updated_at":"2024-05-05T00:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896","variant_ids":[41898551312483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23885614088291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe406251438e55b1cb7331ce60bb867a85c5b2e2_8b720ba9-b5b8-4f2c-a384-605a3956b9d0.webp?v=1714839880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8a9f54dbfba29faf589fa05b3cfdafa68195fa_32b99266-a3f6-4e00-886b-da958d335987.webp?v=1714839882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d46ae5ee74ea48804774c252a2afa1ce96bab2_93dc0664-08b2-461d-9105-22521d9a1762.webp?v=1714839885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd2314e110ae188a97af33f3bf3c0c9c425e053_3bdf11d9-3c57-4d46-a8d2-a8cd9f1dcbf1.webp?v=1714839887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3f6d48bae8eb1c2110dbd60999467599490f29_dd1847e7-91ed-4ff0-ae13-3098c14ad165.webp?v=1714839889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ce904ecc5f8132b63f99575398d310f1bf33c5_16721756-49d0-431f-aeef-edcc4227ee37.webp?v=1714839891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef022712bb12d557b95ac53f4c00965c87ae075_37d83966-0fbc-49f2-9429-f9905c4a1bd2.webp?v=1714839894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a2fc93a7752dc72d7c4ca98209e7f0aa182dc5_d964d299-92e1-49a4-8186-883e374b8f36.webp?v=1714839898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c07ea5f8d98a0ebde46b4ba4483d62099ef9ce_06e92f86-9420-42b4-ba6a-d6927eaa29f3.webp?v=1714839900"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe406251438e55b1cb7331ce60bb867a85c5b2e2_8b720ba9-b5b8-4f2c-a384-605a3956b9d0.webp?v=1714839880","options":["color"],"media":[{"alt":null,"id":23885610516579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe406251438e55b1cb7331ce60bb867a85c5b2e2_8b720ba9-b5b8-4f2c-a384-605a3956b9d0.webp?v=1714839880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe406251438e55b1cb7331ce60bb867a85c5b2e2_8b720ba9-b5b8-4f2c-a384-605a3956b9d0.webp?v=1714839880","width":2000},{"alt":null,"id":23885610975331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8a9f54dbfba29faf589fa05b3cfdafa68195fa_32b99266-a3f6-4e00-886b-da958d335987.webp?v=1714839882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b8a9f54dbfba29faf589fa05b3cfdafa68195fa_32b99266-a3f6-4e00-886b-da958d335987.webp?v=1714839882","width":2000},{"alt":null,"id":23885611466851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d46ae5ee74ea48804774c252a2afa1ce96bab2_93dc0664-08b2-461d-9105-22521d9a1762.webp?v=1714839885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3d46ae5ee74ea48804774c252a2afa1ce96bab2_93dc0664-08b2-461d-9105-22521d9a1762.webp?v=1714839885","width":2000},{"alt":null,"id":23885611860067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd2314e110ae188a97af33f3bf3c0c9c425e053_3bdf11d9-3c57-4d46-a8d2-a8cd9f1dcbf1.webp?v=1714839887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fd2314e110ae188a97af33f3bf3c0c9c425e053_3bdf11d9-3c57-4d46-a8d2-a8cd9f1dcbf1.webp?v=1714839887","width":2000},{"alt":null,"id":23885612679267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3f6d48bae8eb1c2110dbd60999467599490f29_dd1847e7-91ed-4ff0-ae13-3098c14ad165.webp?v=1714839889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f3f6d48bae8eb1c2110dbd60999467599490f29_dd1847e7-91ed-4ff0-ae13-3098c14ad165.webp?v=1714839889","width":2000},{"alt":null,"id":23885613138019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ce904ecc5f8132b63f99575398d310f1bf33c5_16721756-49d0-431f-aeef-edcc4227ee37.webp?v=1714839891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79ce904ecc5f8132b63f99575398d310f1bf33c5_16721756-49d0-431f-aeef-edcc4227ee37.webp?v=1714839891","width":2000},{"alt":null,"id":23885613564003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef022712bb12d557b95ac53f4c00965c87ae075_37d83966-0fbc-49f2-9429-f9905c4a1bd2.webp?v=1714839894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef022712bb12d557b95ac53f4c00965c87ae075_37d83966-0fbc-49f2-9429-f9905c4a1bd2.webp?v=1714839894","width":2000},{"alt":null,"id":23885614088291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896","width":2000},{"alt":null,"id":23885614481507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a2fc93a7752dc72d7c4ca98209e7f0aa182dc5_d964d299-92e1-49a4-8186-883e374b8f36.webp?v=1714839898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5a2fc93a7752dc72d7c4ca98209e7f0aa182dc5_d964d299-92e1-49a4-8186-883e374b8f36.webp?v=1714839898","width":2000},{"alt":null,"id":23885615005795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c07ea5f8d98a0ebde46b4ba4483d62099ef9ce_06e92f86-9420-42b4-ba6a-d6927eaa29f3.webp?v=1714839900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c07ea5f8d98a0ebde46b4ba4483d62099ef9ce_06e92f86-9420-42b4-ba6a-d6927eaa29f3.webp?v=1714839900","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898551312483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480362303587,"product_id":7411411517539,"position":8,"created_at":"2024-05-05T00:24:56+08:00","updated_at":"2024-05-05T00:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896","variant_ids":[41898551312483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23885614088291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898551312483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480362303587,"product_id":7411411517539,"position":8,"created_at":"2024-05-05T00:24:56+08:00","updated_at":"2024-05-05T00:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896","variant_ids":[41898551312483]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - 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-PB08","featured_media":{"alt":null,"id":23885614088291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b9f840d83472c0a70ab0a0eccae3c93a017080_a62567c1-08c0-4caa-848f-61adf77cbbde.webp?v=1714839896"}},"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: "停產" }