$product = {"id":7408424419427,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 飛高高","handle":"iphone-12-pro-max-mod-nx-printable-sr03","description":null,"published_at":"2024-06-11T16:36:52+08:00","created_at":"2024-05-03T15:24:04+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":41885326606435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472241148003,"product_id":7408424419427,"position":6,"created_at":"2024-05-03T15:24:19+08:00","updated_at":"2024-05-03T15:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059","variant_ids":[41885326606435]},"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-SR03","featured_media":{"alt":null,"id":23877157290083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17576446bb820c6954bd70b655f678c9fa43bc1_2a991ef4-75bb-4474-b3ed-79af8754aac5.webp?v=1714721047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f4cffb05939e97f4d067c1b77e688e55c2fd76_94912abc-0101-43e4-ae7f-79b47aaadc20.webp?v=1714721049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8073f245950a79c7d99762ff324af0ef8cd9e47b_7e7b46e0-4065-4680-8733-1e13c6e03a1a.webp?v=1714721051","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3187834becd30e5dd829ea7543591e0c00976432_fd12005e-718b-4637-8a0a-a610a0aca332.webp?v=1714721054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee54ef50146e186d5bcf46ae58781ce566efe62_703bed9e-fd46-40b9-a143-5412fdf56343.webp?v=1714721057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d249762fa07448e9e5366a4a650c92d1cc23dea_ca266d97-ebf4-4007-a822-01053705132e.webp?v=1714721061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645fbc0571dc9ffeb3a071435a406a7c24a850e9_017711cc-6633-4911-90c6-84b64c567737.webp?v=1714721064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea860ef748014d08226ea0d1ebf3520a37690531_a9a86545-b482-454c-b360-9775972cbdee.webp?v=1714721066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d12fbe02b79b1d5b91c10d9dbfe2a02fe62d34d0_485ff582-7534-4ed4-b705-a35435e4bc15.webp?v=1714721068"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17576446bb820c6954bd70b655f678c9fa43bc1_2a991ef4-75bb-4474-b3ed-79af8754aac5.webp?v=1714721047","options":["color"],"media":[{"alt":null,"id":23877154635875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17576446bb820c6954bd70b655f678c9fa43bc1_2a991ef4-75bb-4474-b3ed-79af8754aac5.webp?v=1714721047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e17576446bb820c6954bd70b655f678c9fa43bc1_2a991ef4-75bb-4474-b3ed-79af8754aac5.webp?v=1714721047","width":2000},{"alt":null,"id":23877155192931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f4cffb05939e97f4d067c1b77e688e55c2fd76_94912abc-0101-43e4-ae7f-79b47aaadc20.webp?v=1714721049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13f4cffb05939e97f4d067c1b77e688e55c2fd76_94912abc-0101-43e4-ae7f-79b47aaadc20.webp?v=1714721049","width":2000},{"alt":null,"id":23877155684451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8073f245950a79c7d99762ff324af0ef8cd9e47b_7e7b46e0-4065-4680-8733-1e13c6e03a1a.webp?v=1714721051"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8073f245950a79c7d99762ff324af0ef8cd9e47b_7e7b46e0-4065-4680-8733-1e13c6e03a1a.webp?v=1714721051","width":2000},{"alt":null,"id":23877156241507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3187834becd30e5dd829ea7543591e0c00976432_fd12005e-718b-4637-8a0a-a610a0aca332.webp?v=1714721054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3187834becd30e5dd829ea7543591e0c00976432_fd12005e-718b-4637-8a0a-a610a0aca332.webp?v=1714721054","width":2000},{"alt":null,"id":23877156700259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee54ef50146e186d5bcf46ae58781ce566efe62_703bed9e-fd46-40b9-a143-5412fdf56343.webp?v=1714721057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ee54ef50146e186d5bcf46ae58781ce566efe62_703bed9e-fd46-40b9-a143-5412fdf56343.webp?v=1714721057","width":2000},{"alt":null,"id":23877157290083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059","width":2000},{"alt":null,"id":23877158043747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d249762fa07448e9e5366a4a650c92d1cc23dea_ca266d97-ebf4-4007-a822-01053705132e.webp?v=1714721061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d249762fa07448e9e5366a4a650c92d1cc23dea_ca266d97-ebf4-4007-a822-01053705132e.webp?v=1714721061","width":2000},{"alt":null,"id":23877158469731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645fbc0571dc9ffeb3a071435a406a7c24a850e9_017711cc-6633-4911-90c6-84b64c567737.webp?v=1714721064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645fbc0571dc9ffeb3a071435a406a7c24a850e9_017711cc-6633-4911-90c6-84b64c567737.webp?v=1714721064","width":2000},{"alt":null,"id":23877158895715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea860ef748014d08226ea0d1ebf3520a37690531_a9a86545-b482-454c-b360-9775972cbdee.webp?v=1714721066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea860ef748014d08226ea0d1ebf3520a37690531_a9a86545-b482-454c-b360-9775972cbdee.webp?v=1714721066","width":2000},{"alt":null,"id":23877159420003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d12fbe02b79b1d5b91c10d9dbfe2a02fe62d34d0_485ff582-7534-4ed4-b705-a35435e4bc15.webp?v=1714721068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d12fbe02b79b1d5b91c10d9dbfe2a02fe62d34d0_485ff582-7534-4ed4-b705-a35435e4bc15.webp?v=1714721068","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885326606435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472241148003,"product_id":7408424419427,"position":6,"created_at":"2024-05-03T15:24:19+08:00","updated_at":"2024-05-03T15:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059","variant_ids":[41885326606435]},"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-SR03","featured_media":{"alt":null,"id":23877157290083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885326606435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472241148003,"product_id":7408424419427,"position":6,"created_at":"2024-05-03T15:24:19+08:00","updated_at":"2024-05-03T15:24:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059","variant_ids":[41885326606435]},"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-SR03","featured_media":{"alt":null,"id":23877157290083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2cbfcd418930eb04f13ecc18883f82aeb7a68c_e42d494d-7259-4b5d-b2df-3c14d97a8066.webp?v=1714721059"}},"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: "停產" }