$product = {"id":7408532291683,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 魔人啾啾的攻擊","handle":"iphone-12-pro-max-mod-nx-printable-sr04","description":null,"published_at":"2024-06-11T16:39:54+08:00","created_at":"2024-05-03T15:44:58+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 12 pro 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":41886557077603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472519512163,"product_id":7408532291683,"position":10,"created_at":"2024-05-03T15:45:23+08:00","updated_at":"2024-05-03T15:45:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323","variant_ids":[41886557077603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SR04","featured_media":{"alt":null,"id":23877436801123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e6afd1231933b6e1a07e681bf75718de078fe7_10a8a124-8a74-4c65-85fe-ed9abb5f8782.webp?v=1714722300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319c3bd35ac13a1acf3a379ed7045dd711e4e554_adc36843-34a8-4bb1-a0fb-413ad39d5c1d.webp?v=1714722303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681e7ed8844076b2a512592537f6a4fd15024221_325e0ceb-f12f-45da-9275-6cabc5a062e7.webp?v=1714722305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94746a68d8b7e9eda1a6d1030e2084ebb8de845c_af0e1135-85b5-4e75-bb2e-35aea7052452.webp?v=1714722308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e073ae79550b0ae40c3183bf8196f9c15f15481b_1eb76690-7e97-4562-9283-95488d55cce5.webp?v=1714722310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c03f4f45d2a8b460235b7b218fcd87a14e39ff_a7d6cd0e-4e98-4845-b503-a80342757027.webp?v=1714722313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48fcbb8d09ecc7a8fd6f04f6edb9a923e7afbc7_f6483d7d-e227-44c5-b5de-c09680177ea9.webp?v=1714722315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58db9854d8914c6b33d6c8a4f8eea2e5d1506b26_711f2180-acbe-446e-9875-5ddb32febdb5.webp?v=1714722318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e9ff8417bc5e1db1a23f5fb149f4b7a2b501ed_dcc54ad8-f770-4cc3-a259-9687e4532992.webp?v=1714722320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e6afd1231933b6e1a07e681bf75718de078fe7_10a8a124-8a74-4c65-85fe-ed9abb5f8782.webp?v=1714722300","options":["color"],"media":[{"alt":null,"id":23877431820387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e6afd1231933b6e1a07e681bf75718de078fe7_10a8a124-8a74-4c65-85fe-ed9abb5f8782.webp?v=1714722300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7e6afd1231933b6e1a07e681bf75718de078fe7_10a8a124-8a74-4c65-85fe-ed9abb5f8782.webp?v=1714722300","width":2000},{"alt":null,"id":23877432311907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319c3bd35ac13a1acf3a379ed7045dd711e4e554_adc36843-34a8-4bb1-a0fb-413ad39d5c1d.webp?v=1714722303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319c3bd35ac13a1acf3a379ed7045dd711e4e554_adc36843-34a8-4bb1-a0fb-413ad39d5c1d.webp?v=1714722303","width":2000},{"alt":null,"id":23877432737891,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681e7ed8844076b2a512592537f6a4fd15024221_325e0ceb-f12f-45da-9275-6cabc5a062e7.webp?v=1714722305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681e7ed8844076b2a512592537f6a4fd15024221_325e0ceb-f12f-45da-9275-6cabc5a062e7.webp?v=1714722305","width":2000},{"alt":null,"id":23877433229411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94746a68d8b7e9eda1a6d1030e2084ebb8de845c_af0e1135-85b5-4e75-bb2e-35aea7052452.webp?v=1714722308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94746a68d8b7e9eda1a6d1030e2084ebb8de845c_af0e1135-85b5-4e75-bb2e-35aea7052452.webp?v=1714722308","width":2000},{"alt":null,"id":23877433950307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e073ae79550b0ae40c3183bf8196f9c15f15481b_1eb76690-7e97-4562-9283-95488d55cce5.webp?v=1714722310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e073ae79550b0ae40c3183bf8196f9c15f15481b_1eb76690-7e97-4562-9283-95488d55cce5.webp?v=1714722310","width":2000},{"alt":null,"id":23877434474595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c03f4f45d2a8b460235b7b218fcd87a14e39ff_a7d6cd0e-4e98-4845-b503-a80342757027.webp?v=1714722313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c03f4f45d2a8b460235b7b218fcd87a14e39ff_a7d6cd0e-4e98-4845-b503-a80342757027.webp?v=1714722313","width":2000},{"alt":null,"id":23877434933347,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48fcbb8d09ecc7a8fd6f04f6edb9a923e7afbc7_f6483d7d-e227-44c5-b5de-c09680177ea9.webp?v=1714722315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b48fcbb8d09ecc7a8fd6f04f6edb9a923e7afbc7_f6483d7d-e227-44c5-b5de-c09680177ea9.webp?v=1714722315","width":2000},{"alt":null,"id":23877435490403,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58db9854d8914c6b33d6c8a4f8eea2e5d1506b26_711f2180-acbe-446e-9875-5ddb32febdb5.webp?v=1714722318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58db9854d8914c6b33d6c8a4f8eea2e5d1506b26_711f2180-acbe-446e-9875-5ddb32febdb5.webp?v=1714722318","width":2000},{"alt":null,"id":23877435981923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e9ff8417bc5e1db1a23f5fb149f4b7a2b501ed_dcc54ad8-f770-4cc3-a259-9687e4532992.webp?v=1714722320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e9ff8417bc5e1db1a23f5fb149f4b7a2b501ed_dcc54ad8-f770-4cc3-a259-9687e4532992.webp?v=1714722320","width":2000},{"alt":null,"id":23877436801123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886557077603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472519512163,"product_id":7408532291683,"position":10,"created_at":"2024-05-03T15:45:23+08:00","updated_at":"2024-05-03T15:45:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323","variant_ids":[41886557077603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SR04","featured_media":{"alt":null,"id":23877436801123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886557077603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472519512163,"product_id":7408532291683,"position":10,"created_at":"2024-05-03T15:45:23+08:00","updated_at":"2024-05-03T15:45:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323","variant_ids":[41886557077603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-SR04","featured_media":{"alt":null,"id":23877436801123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ce2b404477f5e9ce081049f297e2d64f3e8f0e7_606ab718-9112-4fd8-aca1-723f813fece8.webp?v=1714722323"}},"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: "停產" }