$product = {"id":7411448610915,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 粉紫樂園","handle":"iphone-14-plus-mod-nx-magsafe-printable-yb13","description":null,"published_at":"2024-06-11T17:45:18+08:00","created_at":"2024-05-05T00:31:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41899025825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31480454742115,"product_id":7411448610915,"position":9,"created_at":"2024-05-05T00:32:15+08:00","updated_at":"2024-05-05T00:32:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335","variant_ids":[41899025825891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB13","featured_media":{"alt":null,"id":23885706461283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0ac7ce34099814cd4b3ee91cfff71cc8d4497a_4363fbc7-e658-4818-a4c3-0f0d52cf7e21.webp?v=1714840316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5011175cf369b5b9421779ef2c6ae682db295a8_e652b62c-6520-45a3-9ad2-e00ee3e25349.webp?v=1714840319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7b8b236295d8a5186cdde066fe20603243cd61_18b3e558-5a16-47ee-b6fb-5f578baadbbe.webp?v=1714840321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe9510e9c6b63fff7e4215506c5798e750e8f5c_162e123e-36a0-4c64-87aa-6a17495c4946.webp?v=1714840323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f13557d1875f8cded62bb3aa5a0dafab6a1168_c8f80dab-7c64-42c4-b37e-7e8d0df480d1.webp?v=1714840326","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d3860112c768fc5c81ca4067410e1b86301a13_fa73949e-cb57-4782-948b-24264ff02532.webp?v=1714840328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeed56b8eb485a67519fc522dd108a64a0c297ee_d2647021-8a86-4c9a-a4f8-7be8c399e923.webp?v=1714840331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02dc661e095b2746cbb08cff9aeb1cec516412d_64c893d0-2ea9-4458-9f8a-9a392d7a8bc6.webp?v=1714840333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d38c2eb4e6e72fb887b5557408af80a562d2791_f3308e74-0e10-447e-92b4-990bd971fa68.webp?v=1714840338"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0ac7ce34099814cd4b3ee91cfff71cc8d4497a_4363fbc7-e658-4818-a4c3-0f0d52cf7e21.webp?v=1714840316","options":["color"],"media":[{"alt":null,"id":23885702430819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0ac7ce34099814cd4b3ee91cfff71cc8d4497a_4363fbc7-e658-4818-a4c3-0f0d52cf7e21.webp?v=1714840316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0ac7ce34099814cd4b3ee91cfff71cc8d4497a_4363fbc7-e658-4818-a4c3-0f0d52cf7e21.webp?v=1714840316","width":2000},{"alt":null,"id":23885703053411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5011175cf369b5b9421779ef2c6ae682db295a8_e652b62c-6520-45a3-9ad2-e00ee3e25349.webp?v=1714840319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5011175cf369b5b9421779ef2c6ae682db295a8_e652b62c-6520-45a3-9ad2-e00ee3e25349.webp?v=1714840319","width":2000},{"alt":null,"id":23885703479395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7b8b236295d8a5186cdde066fe20603243cd61_18b3e558-5a16-47ee-b6fb-5f578baadbbe.webp?v=1714840321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d7b8b236295d8a5186cdde066fe20603243cd61_18b3e558-5a16-47ee-b6fb-5f578baadbbe.webp?v=1714840321","width":2000},{"alt":null,"id":23885704101987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe9510e9c6b63fff7e4215506c5798e750e8f5c_162e123e-36a0-4c64-87aa-6a17495c4946.webp?v=1714840323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbe9510e9c6b63fff7e4215506c5798e750e8f5c_162e123e-36a0-4c64-87aa-6a17495c4946.webp?v=1714840323","width":2000},{"alt":null,"id":23885704560739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f13557d1875f8cded62bb3aa5a0dafab6a1168_c8f80dab-7c64-42c4-b37e-7e8d0df480d1.webp?v=1714840326"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09f13557d1875f8cded62bb3aa5a0dafab6a1168_c8f80dab-7c64-42c4-b37e-7e8d0df480d1.webp?v=1714840326","width":2000},{"alt":null,"id":23885705085027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d3860112c768fc5c81ca4067410e1b86301a13_fa73949e-cb57-4782-948b-24264ff02532.webp?v=1714840328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7d3860112c768fc5c81ca4067410e1b86301a13_fa73949e-cb57-4782-948b-24264ff02532.webp?v=1714840328","width":2000},{"alt":null,"id":23885705642083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeed56b8eb485a67519fc522dd108a64a0c297ee_d2647021-8a86-4c9a-a4f8-7be8c399e923.webp?v=1714840331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeed56b8eb485a67519fc522dd108a64a0c297ee_d2647021-8a86-4c9a-a4f8-7be8c399e923.webp?v=1714840331","width":2000},{"alt":null,"id":23885706035299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02dc661e095b2746cbb08cff9aeb1cec516412d_64c893d0-2ea9-4458-9f8a-9a392d7a8bc6.webp?v=1714840333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d02dc661e095b2746cbb08cff9aeb1cec516412d_64c893d0-2ea9-4458-9f8a-9a392d7a8bc6.webp?v=1714840333","width":2000},{"alt":null,"id":23885706461283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335","width":2000},{"alt":null,"id":23885706985571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d38c2eb4e6e72fb887b5557408af80a562d2791_f3308e74-0e10-447e-92b4-990bd971fa68.webp?v=1714840338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d38c2eb4e6e72fb887b5557408af80a562d2791_f3308e74-0e10-447e-92b4-990bd971fa68.webp?v=1714840338","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41899025825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31480454742115,"product_id":7411448610915,"position":9,"created_at":"2024-05-05T00:32:15+08:00","updated_at":"2024-05-05T00:32:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335","variant_ids":[41899025825891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB13","featured_media":{"alt":null,"id":23885706461283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41899025825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31480454742115,"product_id":7411448610915,"position":9,"created_at":"2024-05-05T00:32:15+08:00","updated_at":"2024-05-05T00:32:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335","variant_ids":[41899025825891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - 粉紫樂園 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB13","featured_media":{"alt":null,"id":23885706461283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c105501ca4d5ec454864b9f789d9d077b6903b66_7069c0ab-a44d-4872-bf50-5d08662fb4a4.webp?v=1714840335"}},"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: "停產" }