$product = {"id":7416368267363,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 一天又平安的過去了","handle":"iphone-8-mod-nx-printable-sr01","description":null,"published_at":"2024-06-11T16:57:09+08:00","created_at":"2024-05-06T14:43:26+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 8","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":41918983438435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491955261539,"product_id":7416368267363,"position":1,"created_at":"2024-05-06T14:43:29+08:00","updated_at":"2024-05-06T14:43:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","variant_ids":[41918983438435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 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":"NPB0105424-SR01","featured_media":{"alt":null,"id":23897368428643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0365feb89f481d67b24d079a1986274ccf211f_8ad5c0c7-1161-43a4-9c7d-d2875dfec1d7.webp?v=1714977811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aeae2dc5db68232a798c978d1bd6e5e22542a12_177987fb-15fa-4e84-8790-ccd40ff9acc0.webp?v=1714977819","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2fc8a8f77e79fcec9ea7be45926c732e0d8db2_4729494f-c172-4a8e-ba5a-af563e2db25f.webp?v=1714977821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d3646244a0d78151bb683f93f2f92a1bbf4ddc_e0282e2a-b4a2-4ac6-8561-545ba6bec650.webp?v=1714977823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e20b444b63fe7b8944a3c89955a7d0073442bb_63dcbf3c-2092-496b-90fe-8cd94ada6d53.webp?v=1714977826","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae77b3e700ed7205f95214463ffe040d711839d_5a6c8a3d-88b7-46ae-adfe-8ba672ea21eb.webp?v=1714977828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3572a6e50857e34d50eb036c0f8b18c7e540829_e0eac8fe-301e-4c56-a378-2ae010e3e00b.webp?v=1714977830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e31675b21a50a68496b4ccbaf072def53aa0f_0346bb5f-a24c-405b-817c-2ecc5fbe8d3b.webp?v=1714977833","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b3b56f7b8fee49fcd36e12818e5901eeff7db0_33fef08b-a0e5-4248-b612-1144f2349acf.webp?v=1714977835"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","options":["color"],"media":[{"alt":null,"id":23897368428643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","width":2000},{"alt":null,"id":23897368821859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0365feb89f481d67b24d079a1986274ccf211f_8ad5c0c7-1161-43a4-9c7d-d2875dfec1d7.webp?v=1714977811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef0365feb89f481d67b24d079a1986274ccf211f_8ad5c0c7-1161-43a4-9c7d-d2875dfec1d7.webp?v=1714977811","width":2000},{"alt":null,"id":23897370329187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aeae2dc5db68232a798c978d1bd6e5e22542a12_177987fb-15fa-4e84-8790-ccd40ff9acc0.webp?v=1714977819"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aeae2dc5db68232a798c978d1bd6e5e22542a12_177987fb-15fa-4e84-8790-ccd40ff9acc0.webp?v=1714977819","width":2000},{"alt":null,"id":23897370853475,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2fc8a8f77e79fcec9ea7be45926c732e0d8db2_4729494f-c172-4a8e-ba5a-af563e2db25f.webp?v=1714977821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a2fc8a8f77e79fcec9ea7be45926c732e0d8db2_4729494f-c172-4a8e-ba5a-af563e2db25f.webp?v=1714977821","width":2000},{"alt":null,"id":23897371344995,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d3646244a0d78151bb683f93f2f92a1bbf4ddc_e0282e2a-b4a2-4ac6-8561-545ba6bec650.webp?v=1714977823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88d3646244a0d78151bb683f93f2f92a1bbf4ddc_e0282e2a-b4a2-4ac6-8561-545ba6bec650.webp?v=1714977823","width":2000},{"alt":null,"id":23897371803747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e20b444b63fe7b8944a3c89955a7d0073442bb_63dcbf3c-2092-496b-90fe-8cd94ada6d53.webp?v=1714977826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e20b444b63fe7b8944a3c89955a7d0073442bb_63dcbf3c-2092-496b-90fe-8cd94ada6d53.webp?v=1714977826","width":2000},{"alt":null,"id":23897372229731,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae77b3e700ed7205f95214463ffe040d711839d_5a6c8a3d-88b7-46ae-adfe-8ba672ea21eb.webp?v=1714977828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ae77b3e700ed7205f95214463ffe040d711839d_5a6c8a3d-88b7-46ae-adfe-8ba672ea21eb.webp?v=1714977828","width":2000},{"alt":null,"id":23897372786787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3572a6e50857e34d50eb036c0f8b18c7e540829_e0eac8fe-301e-4c56-a378-2ae010e3e00b.webp?v=1714977830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3572a6e50857e34d50eb036c0f8b18c7e540829_e0eac8fe-301e-4c56-a378-2ae010e3e00b.webp?v=1714977830","width":2000},{"alt":null,"id":23897373114467,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e31675b21a50a68496b4ccbaf072def53aa0f_0346bb5f-a24c-405b-817c-2ecc5fbe8d3b.webp?v=1714977833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/454e31675b21a50a68496b4ccbaf072def53aa0f_0346bb5f-a24c-405b-817c-2ecc5fbe8d3b.webp?v=1714977833","width":2000},{"alt":null,"id":23897373671523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b3b56f7b8fee49fcd36e12818e5901eeff7db0_33fef08b-a0e5-4248-b612-1144f2349acf.webp?v=1714977835"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08b3b56f7b8fee49fcd36e12818e5901eeff7db0_33fef08b-a0e5-4248-b612-1144f2349acf.webp?v=1714977835","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918983438435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491955261539,"product_id":7416368267363,"position":1,"created_at":"2024-05-06T14:43:29+08:00","updated_at":"2024-05-06T14:43:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","variant_ids":[41918983438435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 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":"NPB0105424-SR01","featured_media":{"alt":null,"id":23897368428643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918983438435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31491955261539,"product_id":7416368267363,"position":1,"created_at":"2024-05-06T14:43:29+08:00","updated_at":"2024-05-06T14:43:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809","variant_ids":[41918983438435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 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":"NPB0105424-SR01","featured_media":{"alt":null,"id":23897368428643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/754bfeac658d3c4963688d914aeebc8cd246f410_2134b53a-59af-4327-909a-9aca7f3a4bf6.webp?v=1714977809"}},"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: "停產" }