$product = {"id":7408558309475,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 粉紫樂園","handle":"iphone-12-pro-max-mod-nx-printable-yb13","description":null,"published_at":"2024-06-11T16:40:40+08:00","created_at":"2024-05-03T15:50:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41886856413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472589111395,"product_id":7408558309475,"position":8,"created_at":"2024-05-03T15:50:44+08:00","updated_at":"2024-05-03T15:50:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644","variant_ids":[41886856413283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB13","featured_media":{"alt":null,"id":23877506498659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e19227881141587ec40767c27d89086301eb4e_30d42260-2f12-4c50-b475-3ed34f1c5fe7.webp?v=1714722627","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ad4fdbcc886760dc1dd91a93b5ab6b3321db0e2_699625d4-1df9-49d2-be6c-bbcfbf4eec2a.webp?v=1714722630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5a0a3c3633f8b270cb300bf0a12e9676c36552_f617392b-5236-4ccd-918d-477fc1b187fe.webp?v=1714722632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e421a46cf540ee6b5ed2aa6553ec6b3dc9491a8e_7b73b8dd-0c5d-4237-bee7-e0730fee1217.webp?v=1714722634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6a8ca877083650af2e38101e012599bbc7d0da_461ae42f-88e6-4e62-968a-4ddd7d6f439e.webp?v=1714722637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ce7e87c4e5201012859db40f61172b9b446e27_1ad728cf-221c-4dec-a61c-9ee4eaa16bda.webp?v=1714722639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a64f5b6f6b0eebb2859f289dd2afd59c5f7d9a_e5beed80-e13b-4cf6-bf66-b5191926247d.webp?v=1714722641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76367494f3d227a1b4b0fcbce307c68ce399778a_4edf3683-41b4-4421-afe2-292d8275d3ca.webp?v=1714722646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00d41fec1ad27aaefecc19c6d65d1fbbc3cb6b2_1b016344-4627-47ff-a1e3-0d3e12919681.webp?v=1714722649"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e19227881141587ec40767c27d89086301eb4e_30d42260-2f12-4c50-b475-3ed34f1c5fe7.webp?v=1714722627","options":["color"],"media":[{"alt":null,"id":23877503025251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e19227881141587ec40767c27d89086301eb4e_30d42260-2f12-4c50-b475-3ed34f1c5fe7.webp?v=1714722627"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e19227881141587ec40767c27d89086301eb4e_30d42260-2f12-4c50-b475-3ed34f1c5fe7.webp?v=1714722627","width":2000},{"alt":null,"id":23877503516771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ad4fdbcc886760dc1dd91a93b5ab6b3321db0e2_699625d4-1df9-49d2-be6c-bbcfbf4eec2a.webp?v=1714722630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ad4fdbcc886760dc1dd91a93b5ab6b3321db0e2_699625d4-1df9-49d2-be6c-bbcfbf4eec2a.webp?v=1714722630","width":2000},{"alt":null,"id":23877503909987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5a0a3c3633f8b270cb300bf0a12e9676c36552_f617392b-5236-4ccd-918d-477fc1b187fe.webp?v=1714722632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5a0a3c3633f8b270cb300bf0a12e9676c36552_f617392b-5236-4ccd-918d-477fc1b187fe.webp?v=1714722632","width":2000},{"alt":null,"id":23877504467043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e421a46cf540ee6b5ed2aa6553ec6b3dc9491a8e_7b73b8dd-0c5d-4237-bee7-e0730fee1217.webp?v=1714722634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e421a46cf540ee6b5ed2aa6553ec6b3dc9491a8e_7b73b8dd-0c5d-4237-bee7-e0730fee1217.webp?v=1714722634","width":2000},{"alt":null,"id":23877504893027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6a8ca877083650af2e38101e012599bbc7d0da_461ae42f-88e6-4e62-968a-4ddd7d6f439e.webp?v=1714722637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e6a8ca877083650af2e38101e012599bbc7d0da_461ae42f-88e6-4e62-968a-4ddd7d6f439e.webp?v=1714722637","width":2000},{"alt":null,"id":23877505482851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ce7e87c4e5201012859db40f61172b9b446e27_1ad728cf-221c-4dec-a61c-9ee4eaa16bda.webp?v=1714722639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8ce7e87c4e5201012859db40f61172b9b446e27_1ad728cf-221c-4dec-a61c-9ee4eaa16bda.webp?v=1714722639","width":2000},{"alt":null,"id":23877505908835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a64f5b6f6b0eebb2859f289dd2afd59c5f7d9a_e5beed80-e13b-4cf6-bf66-b5191926247d.webp?v=1714722641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3a64f5b6f6b0eebb2859f289dd2afd59c5f7d9a_e5beed80-e13b-4cf6-bf66-b5191926247d.webp?v=1714722641","width":2000},{"alt":null,"id":23877506498659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644","width":2000},{"alt":null,"id":23877507088483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76367494f3d227a1b4b0fcbce307c68ce399778a_4edf3683-41b4-4421-afe2-292d8275d3ca.webp?v=1714722646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76367494f3d227a1b4b0fcbce307c68ce399778a_4edf3683-41b4-4421-afe2-292d8275d3ca.webp?v=1714722646","width":2000},{"alt":null,"id":23877507448931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00d41fec1ad27aaefecc19c6d65d1fbbc3cb6b2_1b016344-4627-47ff-a1e3-0d3e12919681.webp?v=1714722649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b00d41fec1ad27aaefecc19c6d65d1fbbc3cb6b2_1b016344-4627-47ff-a1e3-0d3e12919681.webp?v=1714722649","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886856413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472589111395,"product_id":7408558309475,"position":8,"created_at":"2024-05-03T15:50:44+08:00","updated_at":"2024-05-03T15:50:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644","variant_ids":[41886856413283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB13","featured_media":{"alt":null,"id":23877506498659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886856413283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472589111395,"product_id":7408558309475,"position":8,"created_at":"2024-05-03T15:50:44+08:00","updated_at":"2024-05-03T15:50:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644","variant_ids":[41886856413283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YB13","featured_media":{"alt":null,"id":23877506498659,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4859d77ae7c53193e3fb04576e20b5c613e9992_3375a83d-0187-4e03-bc19-83733733f3fb.webp?v=1714722644"}},"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: "停產" }