$product = {"id":7416351293539,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 The Powerpuff Girls - 貼紙款","handle":"iphone-8-mod-nx-printable-sr08","description":null,"published_at":"2024-06-11T16:56:40+08:00","created_at":"2024-05-06T14:40:10+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":41918800986211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915087971,"product_id":7416351293539,"position":3,"created_at":"2024-05-06T14:40:18+08:00","updated_at":"2024-05-06T14:40:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618","variant_ids":[41918800986211]},"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-SR08","featured_media":{"alt":null,"id":23897328058467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e15cdfaf406f8607aefe4690a5011b28d7cef04_d7e571dd-464e-4131-834b-7fc4a96092d1.webp?v=1714977613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670eb18da54bb58b47a350101f2347b4a1642ccf_45631bdd-a511-46fe-a4d6-c7098f4806a4.webp?v=1714977615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291106dba00fe85a3a47c39381bef37727bf844c_fbc9d77e-b325-4ac9-8446-879f0309451a.webp?v=1714977620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90caa39e8b07a61bac64465815cf251b07a86adc_bfaee030-1692-414b-94d0-4f5fdd71d425.webp?v=1714977623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d64c4cbefd74fc18644c50727fe2df4711655a_73874f91-b973-4d36-97ac-37cfd9bbaaac.webp?v=1714977626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6d8f97dda6def577a2ccc94395e2abe0ba7867_a68ad5d6-92f8-4d5d-93b8-9de8d223e9e0.webp?v=1714977629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5397465fa1a949408c8648a4780a2457fdf71db8_eb1a292a-f540-4249-ac7f-4e169e4bbb94.webp?v=1714977631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf68a5a4acc258d130d71e472952163b59318b64_d8e367e5-346e-4830-9376-365fe52ca45b.webp?v=1714977634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2e5871c9fcf57082c063f8da5abe9263df5c73_0bd08376-813c-4939-ae3d-89c53779a0a0.webp?v=1714977636"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e15cdfaf406f8607aefe4690a5011b28d7cef04_d7e571dd-464e-4131-834b-7fc4a96092d1.webp?v=1714977613","options":["color"],"media":[{"alt":null,"id":23897327042659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e15cdfaf406f8607aefe4690a5011b28d7cef04_d7e571dd-464e-4131-834b-7fc4a96092d1.webp?v=1714977613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e15cdfaf406f8607aefe4690a5011b28d7cef04_d7e571dd-464e-4131-834b-7fc4a96092d1.webp?v=1714977613","width":2000},{"alt":null,"id":23897327599715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670eb18da54bb58b47a350101f2347b4a1642ccf_45631bdd-a511-46fe-a4d6-c7098f4806a4.webp?v=1714977615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/670eb18da54bb58b47a350101f2347b4a1642ccf_45631bdd-a511-46fe-a4d6-c7098f4806a4.webp?v=1714977615","width":2000},{"alt":null,"id":23897328058467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618","width":2000},{"alt":null,"id":23897328615523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291106dba00fe85a3a47c39381bef37727bf844c_fbc9d77e-b325-4ac9-8446-879f0309451a.webp?v=1714977620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/291106dba00fe85a3a47c39381bef37727bf844c_fbc9d77e-b325-4ac9-8446-879f0309451a.webp?v=1714977620","width":2000},{"alt":null,"id":23897328975971,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90caa39e8b07a61bac64465815cf251b07a86adc_bfaee030-1692-414b-94d0-4f5fdd71d425.webp?v=1714977623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90caa39e8b07a61bac64465815cf251b07a86adc_bfaee030-1692-414b-94d0-4f5fdd71d425.webp?v=1714977623","width":2000},{"alt":null,"id":23897329598563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d64c4cbefd74fc18644c50727fe2df4711655a_73874f91-b973-4d36-97ac-37cfd9bbaaac.webp?v=1714977626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d64c4cbefd74fc18644c50727fe2df4711655a_73874f91-b973-4d36-97ac-37cfd9bbaaac.webp?v=1714977626","width":2000},{"alt":null,"id":23897330253923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6d8f97dda6def577a2ccc94395e2abe0ba7867_a68ad5d6-92f8-4d5d-93b8-9de8d223e9e0.webp?v=1714977629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e6d8f97dda6def577a2ccc94395e2abe0ba7867_a68ad5d6-92f8-4d5d-93b8-9de8d223e9e0.webp?v=1714977629","width":2000},{"alt":null,"id":23897330778211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5397465fa1a949408c8648a4780a2457fdf71db8_eb1a292a-f540-4249-ac7f-4e169e4bbb94.webp?v=1714977631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5397465fa1a949408c8648a4780a2457fdf71db8_eb1a292a-f540-4249-ac7f-4e169e4bbb94.webp?v=1714977631","width":2000},{"alt":null,"id":23897331105891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf68a5a4acc258d130d71e472952163b59318b64_d8e367e5-346e-4830-9376-365fe52ca45b.webp?v=1714977634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf68a5a4acc258d130d71e472952163b59318b64_d8e367e5-346e-4830-9376-365fe52ca45b.webp?v=1714977634","width":2000},{"alt":null,"id":23897331728483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2e5871c9fcf57082c063f8da5abe9263df5c73_0bd08376-813c-4939-ae3d-89c53779a0a0.webp?v=1714977636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc2e5871c9fcf57082c063f8da5abe9263df5c73_0bd08376-813c-4939-ae3d-89c53779a0a0.webp?v=1714977636","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918800986211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915087971,"product_id":7416351293539,"position":3,"created_at":"2024-05-06T14:40:18+08:00","updated_at":"2024-05-06T14:40:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618","variant_ids":[41918800986211]},"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-SR08","featured_media":{"alt":null,"id":23897328058467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918800986211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SR08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491915087971,"product_id":7416351293539,"position":3,"created_at":"2024-05-06T14:40:18+08:00","updated_at":"2024-05-06T14:40:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618","variant_ids":[41918800986211]},"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-SR08","featured_media":{"alt":null,"id":23897328058467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83f5b80ac472d20a767ced4300d1d2f0d9bcbb4_7639bf77-2580-46f0-9ca4-490ac4571407.webp?v=1714977618"}},"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: "停產" }