$product = {"id":7416360960099,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Best Friend Bear","handle":"iphone-8-mod-nx-printable-yb02","description":null,"published_at":"2024-06-11T16:56:56+08:00","created_at":"2024-05-06T14:41:53+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 8","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":41918897258595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491937599587,"product_id":7416360960099,"position":4,"created_at":"2024-05-06T14:42:02+08:00","updated_at":"2024-05-06T14:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722","variant_ids":[41918897258595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Best Friend Bear - 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":"NPB0105424-YB02","featured_media":{"alt":null,"id":23897350701155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42157506cea5fcc333ffb3577904d26b6bbdc91_bf0ec971-2219-47fc-800e-56a5af360fce.webp?v=1714977715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0fa5961d12f4e7798ff56e78ea32ca8fe2ae53_8c63ac72-32f3-469b-b844-667add36edb7.webp?v=1714977718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd19a01e7d7c567eb7da747ba1ed1e9fa8dd27b_4339d3c1-bc70-4843-a601-27cf5bfaaf37.webp?v=1714977720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233af133e05d07ee5d8ac65c2d1dab6a51d79abc_393bcd35-a8d0-4a3b-b1d2-d135d9d44400.webp?v=1714977725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53349b464ac99ec82e25e5520e77232811e530e_b1e77e7f-a66a-45df-b6b9-894058ca6bf8.webp?v=1714977727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add04ee283e9a0ef94b06ec79039e18543e0734_459c56f0-bdd0-47fc-9420-49487af11efa.webp?v=1714977730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10d985e31c25befb82c65543a09854990636f38_c2cef556-42b0-423e-a721-c5f845cacaa4.webp?v=1714977733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc09b5a8af3da5d67ae8dd2a42e2e98e0549a007_0ea002d1-9f3d-42af-87de-efe54ac4c832.webp?v=1714977735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cbb3b549f75458577e42433af36757aa7dea00a_d9aa99ee-b52d-4ccb-afa2-fdb79f637e16.webp?v=1714977738"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42157506cea5fcc333ffb3577904d26b6bbdc91_bf0ec971-2219-47fc-800e-56a5af360fce.webp?v=1714977715","options":["color"],"media":[{"alt":null,"id":23897349292131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42157506cea5fcc333ffb3577904d26b6bbdc91_bf0ec971-2219-47fc-800e-56a5af360fce.webp?v=1714977715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e42157506cea5fcc333ffb3577904d26b6bbdc91_bf0ec971-2219-47fc-800e-56a5af360fce.webp?v=1714977715","width":2000},{"alt":null,"id":23897349783651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0fa5961d12f4e7798ff56e78ea32ca8fe2ae53_8c63ac72-32f3-469b-b844-667add36edb7.webp?v=1714977718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0fa5961d12f4e7798ff56e78ea32ca8fe2ae53_8c63ac72-32f3-469b-b844-667add36edb7.webp?v=1714977718","width":2000},{"alt":null,"id":23897350307939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd19a01e7d7c567eb7da747ba1ed1e9fa8dd27b_4339d3c1-bc70-4843-a601-27cf5bfaaf37.webp?v=1714977720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd19a01e7d7c567eb7da747ba1ed1e9fa8dd27b_4339d3c1-bc70-4843-a601-27cf5bfaaf37.webp?v=1714977720","width":2000},{"alt":null,"id":23897350701155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722","width":2000},{"alt":null,"id":23897351192675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233af133e05d07ee5d8ac65c2d1dab6a51d79abc_393bcd35-a8d0-4a3b-b1d2-d135d9d44400.webp?v=1714977725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/233af133e05d07ee5d8ac65c2d1dab6a51d79abc_393bcd35-a8d0-4a3b-b1d2-d135d9d44400.webp?v=1714977725","width":2000},{"alt":null,"id":23897351618659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53349b464ac99ec82e25e5520e77232811e530e_b1e77e7f-a66a-45df-b6b9-894058ca6bf8.webp?v=1714977727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53349b464ac99ec82e25e5520e77232811e530e_b1e77e7f-a66a-45df-b6b9-894058ca6bf8.webp?v=1714977727","width":2000},{"alt":null,"id":23897352077411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add04ee283e9a0ef94b06ec79039e18543e0734_459c56f0-bdd0-47fc-9420-49487af11efa.webp?v=1714977730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add04ee283e9a0ef94b06ec79039e18543e0734_459c56f0-bdd0-47fc-9420-49487af11efa.webp?v=1714977730","width":2000},{"alt":null,"id":23897352700003,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10d985e31c25befb82c65543a09854990636f38_c2cef556-42b0-423e-a721-c5f845cacaa4.webp?v=1714977733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c10d985e31c25befb82c65543a09854990636f38_c2cef556-42b0-423e-a721-c5f845cacaa4.webp?v=1714977733","width":2000},{"alt":null,"id":23897353289827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc09b5a8af3da5d67ae8dd2a42e2e98e0549a007_0ea002d1-9f3d-42af-87de-efe54ac4c832.webp?v=1714977735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc09b5a8af3da5d67ae8dd2a42e2e98e0549a007_0ea002d1-9f3d-42af-87de-efe54ac4c832.webp?v=1714977735","width":2000},{"alt":null,"id":23897353683043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cbb3b549f75458577e42433af36757aa7dea00a_d9aa99ee-b52d-4ccb-afa2-fdb79f637e16.webp?v=1714977738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cbb3b549f75458577e42433af36757aa7dea00a_d9aa99ee-b52d-4ccb-afa2-fdb79f637e16.webp?v=1714977738","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918897258595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491937599587,"product_id":7416360960099,"position":4,"created_at":"2024-05-06T14:42:02+08:00","updated_at":"2024-05-06T14:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722","variant_ids":[41918897258595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Best Friend Bear - 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":"NPB0105424-YB02","featured_media":{"alt":null,"id":23897350701155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918897258595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31491937599587,"product_id":7416360960099,"position":4,"created_at":"2024-05-06T14:42:02+08:00","updated_at":"2024-05-06T14:42:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722","variant_ids":[41918897258595]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - Best Friend Bear - 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":"NPB0105424-YB02","featured_media":{"alt":null,"id":23897350701155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded210ecbc3bbe9dc06fdcbe942b48d80fbd869d_70b72890-5669-45eb-b96c-a02df2e9b092.webp?v=1714977722"}},"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: "停產" }