$product = {"id":7416068374627,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max The Powerpuff Girls - 一天又平安的過去了","handle":"iphone-xs-max-mod-nx-printable-sr01","description":null,"published_at":"2024-06-11T16:51:53+08:00","created_at":"2024-05-06T12:52:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-the-power-puff-girls","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41917105176675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491132522595,"product_id":7416068374627,"position":1,"created_at":"2024-05-06T12:52:20+08:00","updated_at":"2024-05-06T12:52:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","variant_ids":[41917105176675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SR01","featured_media":{"alt":null,"id":23896540020835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e25fe87e837f4d724b79c6de77145b7fea70c7a_f2f4f852-85e8-478a-b988-764f4e24f7de.webp?v=1714971142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e260f8aa708740e7fdbb2f42097215dbcf4e8b30_94be7271-73cb-4134-be77-88abdcf64f49.webp?v=1714971145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cedfae9ea5ea52f4373a80176461612dbfd1130_dd0bcfb9-3e9a-4bbe-876f-2fe5fbb82697.webp?v=1714971147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bd8031f478da2a191f230c7e94bd841865fcf_971b7a6b-3b8a-43d0-a80d-78b3ea04c428.webp?v=1714971149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44faa4e78d3f599dd4ec253005c84ba3a58ae57f_f6d642ba-9298-4ee1-8054-021a8b7c7cf2.webp?v=1714971152","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f433eb811dc022ce32c7d6bbe713b409329c8f_409a5ed5-e3cc-46e1-b03e-4bd4dec1167f.webp?v=1714971154","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24d574249f8634bcef177290e5d118505454fda_6e0e9287-f898-4afa-8601-330d6f9e722a.webp?v=1714971156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b9a3a212391929b7e86d7cb864d72074a7d021_f6426198-b51a-4786-89a1-104139114f38.webp?v=1714971159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c71fe5d404ab4b2a5acdc7558b87b7d38a52a3e_4b5d4db0-b6e7-4e12-8521-3c745d82ef78.webp?v=1714971162"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","options":["color"],"media":[{"alt":null,"id":23896540020835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","width":2000},{"alt":null,"id":23896540708963,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e25fe87e837f4d724b79c6de77145b7fea70c7a_f2f4f852-85e8-478a-b988-764f4e24f7de.webp?v=1714971142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e25fe87e837f4d724b79c6de77145b7fea70c7a_f2f4f852-85e8-478a-b988-764f4e24f7de.webp?v=1714971142","width":2000},{"alt":null,"id":23896541560931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e260f8aa708740e7fdbb2f42097215dbcf4e8b30_94be7271-73cb-4134-be77-88abdcf64f49.webp?v=1714971145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e260f8aa708740e7fdbb2f42097215dbcf4e8b30_94be7271-73cb-4134-be77-88abdcf64f49.webp?v=1714971145","width":2000},{"alt":null,"id":23896542249059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cedfae9ea5ea52f4373a80176461612dbfd1130_dd0bcfb9-3e9a-4bbe-876f-2fe5fbb82697.webp?v=1714971147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cedfae9ea5ea52f4373a80176461612dbfd1130_dd0bcfb9-3e9a-4bbe-876f-2fe5fbb82697.webp?v=1714971147","width":2000},{"alt":null,"id":23896542871651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bd8031f478da2a191f230c7e94bd841865fcf_971b7a6b-3b8a-43d0-a80d-78b3ea04c428.webp?v=1714971149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/655bd8031f478da2a191f230c7e94bd841865fcf_971b7a6b-3b8a-43d0-a80d-78b3ea04c428.webp?v=1714971149","width":2000},{"alt":null,"id":23896543264867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44faa4e78d3f599dd4ec253005c84ba3a58ae57f_f6d642ba-9298-4ee1-8054-021a8b7c7cf2.webp?v=1714971152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44faa4e78d3f599dd4ec253005c84ba3a58ae57f_f6d642ba-9298-4ee1-8054-021a8b7c7cf2.webp?v=1714971152","width":2000},{"alt":null,"id":23896544280675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f433eb811dc022ce32c7d6bbe713b409329c8f_409a5ed5-e3cc-46e1-b03e-4bd4dec1167f.webp?v=1714971154"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9f433eb811dc022ce32c7d6bbe713b409329c8f_409a5ed5-e3cc-46e1-b03e-4bd4dec1167f.webp?v=1714971154","width":2000},{"alt":null,"id":23896544641123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24d574249f8634bcef177290e5d118505454fda_6e0e9287-f898-4afa-8601-330d6f9e722a.webp?v=1714971156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b24d574249f8634bcef177290e5d118505454fda_6e0e9287-f898-4afa-8601-330d6f9e722a.webp?v=1714971156","width":2000},{"alt":null,"id":23896545427555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b9a3a212391929b7e86d7cb864d72074a7d021_f6426198-b51a-4786-89a1-104139114f38.webp?v=1714971159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9b9a3a212391929b7e86d7cb864d72074a7d021_f6426198-b51a-4786-89a1-104139114f38.webp?v=1714971159","width":2000},{"alt":null,"id":23896545820771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c71fe5d404ab4b2a5acdc7558b87b7d38a52a3e_4b5d4db0-b6e7-4e12-8521-3c745d82ef78.webp?v=1714971162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c71fe5d404ab4b2a5acdc7558b87b7d38a52a3e_4b5d4db0-b6e7-4e12-8521-3c745d82ef78.webp?v=1714971162","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917105176675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491132522595,"product_id":7416068374627,"position":1,"created_at":"2024-05-06T12:52:20+08:00","updated_at":"2024-05-06T12:52:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","variant_ids":[41917105176675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SR01","featured_media":{"alt":null,"id":23896540020835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917105176675,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491132522595,"product_id":7416068374627,"position":1,"created_at":"2024-05-06T12:52:20+08:00","updated_at":"2024-05-06T12:52:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140","variant_ids":[41917105176675]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SR01","featured_media":{"alt":null,"id":23896540020835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e6f2fe015bee078d61c4efc7e175f3f124b0570_b25b1566-9bd2-4a5d-8ad9-5d9d7dd29501.webp?v=1714971140"}},"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: "停產" }