$product = {"id":7411354533987,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb100","description":null,"published_at":"2024-06-11T17:42:42+08:00","created_at":"2024-05-05T00:13:29+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":41897835364451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480213405795,"product_id":7411354533987,"position":3,"created_at":"2024-05-05T00:13:36+08:00","updated_at":"2024-05-05T00:13:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216","variant_ids":[41897835364451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885464567907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e095d60922848eca4d3bca047cd1d684fb3587_9d1f6d4c-ff8f-4bc7-85e6-acd3eb89e04c.webp?v=1714839211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11db9fe0eb87532fc09d4f775944bbf8fc18394_fc692b85-97f0-4f0b-802d-5483904bcb45.webp?v=1714839214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f070dacff8ba1858908a155180f42726ead06b81_772b6e4c-9a56-453b-a200-ea365e9e25ed.webp?v=1714839218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4fa6ff3a9de1096741438d3d6ff5cffcf5f555f_6d5eaa57-7dc1-4276-b0a1-35f1a4fc9474.webp?v=1714839221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa334811ad3687adf57139eda57cea6a9408f774_07275ba1-5698-4c08-a181-e5eb7ce6dfdf.webp?v=1714839224","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b0cc608a6be9f4d08352a0af76f59887ae1d941_b129e0dd-2ab7-496f-b2f6-d06a49f5620d.webp?v=1714839226","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809e6eea452d03c29f17d7d3e960f42a5b8c20ca_f8e11e49-4add-41dc-b854-3c9dbc09e2e3.webp?v=1714839228","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302433f41d15389ee9dd60776584dee02dac1940_c30c9d49-15c5-4e75-b5e4-53b6769b18b2.webp?v=1714839231","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/396bf6e9ea2016740ab70457344586b10a4b68dc_0cffca76-69bf-4fbb-8330-838a9010b8b4.webp?v=1714839233"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e095d60922848eca4d3bca047cd1d684fb3587_9d1f6d4c-ff8f-4bc7-85e6-acd3eb89e04c.webp?v=1714839211","options":["color"],"media":[{"alt":null,"id":23885463322723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e095d60922848eca4d3bca047cd1d684fb3587_9d1f6d4c-ff8f-4bc7-85e6-acd3eb89e04c.webp?v=1714839211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e095d60922848eca4d3bca047cd1d684fb3587_9d1f6d4c-ff8f-4bc7-85e6-acd3eb89e04c.webp?v=1714839211","width":2000},{"alt":null,"id":23885464076387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11db9fe0eb87532fc09d4f775944bbf8fc18394_fc692b85-97f0-4f0b-802d-5483904bcb45.webp?v=1714839214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e11db9fe0eb87532fc09d4f775944bbf8fc18394_fc692b85-97f0-4f0b-802d-5483904bcb45.webp?v=1714839214","width":2000},{"alt":null,"id":23885464567907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216","width":2000},{"alt":null,"id":23885465223267,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f070dacff8ba1858908a155180f42726ead06b81_772b6e4c-9a56-453b-a200-ea365e9e25ed.webp?v=1714839218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f070dacff8ba1858908a155180f42726ead06b81_772b6e4c-9a56-453b-a200-ea365e9e25ed.webp?v=1714839218","width":2000},{"alt":null,"id":23885465714787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4fa6ff3a9de1096741438d3d6ff5cffcf5f555f_6d5eaa57-7dc1-4276-b0a1-35f1a4fc9474.webp?v=1714839221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4fa6ff3a9de1096741438d3d6ff5cffcf5f555f_6d5eaa57-7dc1-4276-b0a1-35f1a4fc9474.webp?v=1714839221","width":2000},{"alt":null,"id":23885466468451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa334811ad3687adf57139eda57cea6a9408f774_07275ba1-5698-4c08-a181-e5eb7ce6dfdf.webp?v=1714839224"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa334811ad3687adf57139eda57cea6a9408f774_07275ba1-5698-4c08-a181-e5eb7ce6dfdf.webp?v=1714839224","width":2000},{"alt":null,"id":23885467091043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b0cc608a6be9f4d08352a0af76f59887ae1d941_b129e0dd-2ab7-496f-b2f6-d06a49f5620d.webp?v=1714839226"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b0cc608a6be9f4d08352a0af76f59887ae1d941_b129e0dd-2ab7-496f-b2f6-d06a49f5620d.webp?v=1714839226","width":2000},{"alt":null,"id":23885467517027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809e6eea452d03c29f17d7d3e960f42a5b8c20ca_f8e11e49-4add-41dc-b854-3c9dbc09e2e3.webp?v=1714839228"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/809e6eea452d03c29f17d7d3e960f42a5b8c20ca_f8e11e49-4add-41dc-b854-3c9dbc09e2e3.webp?v=1714839228","width":2000},{"alt":null,"id":23885467975779,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302433f41d15389ee9dd60776584dee02dac1940_c30c9d49-15c5-4e75-b5e4-53b6769b18b2.webp?v=1714839231"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302433f41d15389ee9dd60776584dee02dac1940_c30c9d49-15c5-4e75-b5e4-53b6769b18b2.webp?v=1714839231","width":2000},{"alt":null,"id":23885468434531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/396bf6e9ea2016740ab70457344586b10a4b68dc_0cffca76-69bf-4fbb-8330-838a9010b8b4.webp?v=1714839233"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/396bf6e9ea2016740ab70457344586b10a4b68dc_0cffca76-69bf-4fbb-8330-838a9010b8b4.webp?v=1714839233","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897835364451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480213405795,"product_id":7411354533987,"position":3,"created_at":"2024-05-05T00:13:36+08:00","updated_at":"2024-05-05T00:13:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216","variant_ids":[41897835364451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885464567907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897835364451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31480213405795,"product_id":7411354533987,"position":3,"created_at":"2024-05-05T00:13:36+08:00","updated_at":"2024-05-05T00:13:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216","variant_ids":[41897835364451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23885464567907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6025510cdd6a8f80a74cf3798bb3ea4f08f5fec4_e2868ba9-ee80-4b0b-9243-bfa3d4d749e1.webp?v=1714839216"}},"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: "停產" }