$product = {"id":7415057940579,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf03","description":null,"published_at":"2024-06-11T17:56:50+08:00","created_at":"2024-05-05T20:14:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41911413801059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488039190627,"product_id":7415057940579,"position":1,"created_at":"2024-05-05T20:14:44+08:00","updated_at":"2024-05-05T20:14:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","variant_ids":[41911413801059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"MPB0118724-YF03","featured_media":{"alt":null,"id":23893383610467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075d0eb204df8ce86aa71f0b923e84553cf57a4d_5711b3b1-88ef-483a-a681-49587820f056.webp?v=1714911287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f18f3e2a5b6b04bce559e8e5b09099cf0bcf1c1_eaeb5fcb-556f-4122-ac50-673684bb678c.webp?v=1714911289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25affa030a3b27cd240982cf51096fbfbe4ddf20_bd765b1d-7ff0-4f1d-8a74-5fa5cb92c9ea.webp?v=1714911291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbbab15db4d4f7d2106b014fc96c62b4b59d413_45923899-266c-435c-9acf-7c3281cb24d4.webp?v=1714911294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af7cc694d624a487b69f456e583c7e6f7ddfa9d_98f5c972-102b-4fae-aed6-6446b0b1eb91.webp?v=1714911296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52cf47004bb555ddbab1da244886ccd8eacc4ed_2d59264e-431b-4a79-962b-4d25c03bf28a.webp?v=1714911299","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5caeaebe248f764d0fc3be998b770bc08f728c_f369fe1e-4668-4851-aaf7-2583b2a47a63.webp?v=1714911301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec43b33cb330a1947daabd4343ea213e8a82073_e80a5cdd-4cb9-4bfa-a311-06a1d098ec89.webp?v=1714911304","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ede157b7c78fb40f9c7071f34497f06fb13fe8f_d28ca771-b6ad-40ca-81d9-6c3e5add06c4.webp?v=1714911306"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","options":["color"],"media":[{"alt":null,"id":23893383610467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","width":2000},{"alt":null,"id":23893384167523,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075d0eb204df8ce86aa71f0b923e84553cf57a4d_5711b3b1-88ef-483a-a681-49587820f056.webp?v=1714911287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075d0eb204df8ce86aa71f0b923e84553cf57a4d_5711b3b1-88ef-483a-a681-49587820f056.webp?v=1714911287","width":2000},{"alt":null,"id":23893384953955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f18f3e2a5b6b04bce559e8e5b09099cf0bcf1c1_eaeb5fcb-556f-4122-ac50-673684bb678c.webp?v=1714911289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f18f3e2a5b6b04bce559e8e5b09099cf0bcf1c1_eaeb5fcb-556f-4122-ac50-673684bb678c.webp?v=1714911289","width":2000},{"alt":null,"id":23893385478243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25affa030a3b27cd240982cf51096fbfbe4ddf20_bd765b1d-7ff0-4f1d-8a74-5fa5cb92c9ea.webp?v=1714911291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25affa030a3b27cd240982cf51096fbfbe4ddf20_bd765b1d-7ff0-4f1d-8a74-5fa5cb92c9ea.webp?v=1714911291","width":2000},{"alt":null,"id":23893386166371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbbab15db4d4f7d2106b014fc96c62b4b59d413_45923899-266c-435c-9acf-7c3281cb24d4.webp?v=1714911294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fbbab15db4d4f7d2106b014fc96c62b4b59d413_45923899-266c-435c-9acf-7c3281cb24d4.webp?v=1714911294","width":2000},{"alt":null,"id":23893386952803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af7cc694d624a487b69f456e583c7e6f7ddfa9d_98f5c972-102b-4fae-aed6-6446b0b1eb91.webp?v=1714911296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af7cc694d624a487b69f456e583c7e6f7ddfa9d_98f5c972-102b-4fae-aed6-6446b0b1eb91.webp?v=1714911296","width":2000},{"alt":null,"id":23893387477091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52cf47004bb555ddbab1da244886ccd8eacc4ed_2d59264e-431b-4a79-962b-4d25c03bf28a.webp?v=1714911299"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f52cf47004bb555ddbab1da244886ccd8eacc4ed_2d59264e-431b-4a79-962b-4d25c03bf28a.webp?v=1714911299","width":2000},{"alt":null,"id":23893387968611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5caeaebe248f764d0fc3be998b770bc08f728c_f369fe1e-4668-4851-aaf7-2583b2a47a63.webp?v=1714911301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb5caeaebe248f764d0fc3be998b770bc08f728c_f369fe1e-4668-4851-aaf7-2583b2a47a63.webp?v=1714911301","width":2000},{"alt":null,"id":23893388492899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec43b33cb330a1947daabd4343ea213e8a82073_e80a5cdd-4cb9-4bfa-a311-06a1d098ec89.webp?v=1714911304"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec43b33cb330a1947daabd4343ea213e8a82073_e80a5cdd-4cb9-4bfa-a311-06a1d098ec89.webp?v=1714911304","width":2000},{"alt":null,"id":23893389246563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ede157b7c78fb40f9c7071f34497f06fb13fe8f_d28ca771-b6ad-40ca-81d9-6c3e5add06c4.webp?v=1714911306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ede157b7c78fb40f9c7071f34497f06fb13fe8f_d28ca771-b6ad-40ca-81d9-6c3e5add06c4.webp?v=1714911306","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911413801059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488039190627,"product_id":7415057940579,"position":1,"created_at":"2024-05-05T20:14:44+08:00","updated_at":"2024-05-05T20:14:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","variant_ids":[41911413801059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"MPB0118724-YF03","featured_media":{"alt":null,"id":23893383610467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911413801059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF03","requires_shipping":true,"taxable":true,"featured_image":{"id":31488039190627,"product_id":7415057940579,"position":1,"created_at":"2024-05-05T20:14:44+08:00","updated_at":"2024-05-05T20:14:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284","variant_ids":[41911413801059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 夏威夷系列-線稿 - 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":"MPB0118724-YF03","featured_media":{"alt":null,"id":23893383610467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a91cb1a8262740074b62fa5bd30fd5fa36292e6_50ae43cf-1dbb-4b04-8cd7-a5129de22e51.webp?v=1714911284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }