$product = {"id":7416389828707,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 可愛大龍王","handle":"iphone-8-mod-nx-printable-eo06","description":null,"published_at":"2024-06-11T16:57:45+08:00","created_at":"2024-05-06T14:47:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41919217238115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31492008280163,"product_id":7416389828707,"position":2,"created_at":"2024-05-06T14:47:33+08:00","updated_at":"2024-05-06T14:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053","variant_ids":[41919217238115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - 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-EO06","featured_media":{"alt":null,"id":23897422102627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e007c0bc3a555d1cc89fb4b8b00942b796bd941_848f4686-3eb9-42bf-82cb-472ffcf2fc4e.webp?v=1714978050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af527e914244cdd255ac0f76ea39d09d2bdd038_63ed2d90-45cc-4a74-83fa-8e43de38607d.webp?v=1714978055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62414501003f88e22fdaef7955cd8b06b7a25850_d816b8bc-4621-41c8-a999-52888e9a4f71.webp?v=1714978058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de12cf51c9e99eba123ea929c01bb966f70dc451_d1b6bfe1-f43e-47ab-a3e8-241fa1b5f2f6.webp?v=1714978060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477843b637f6069486e2a07b0a86e94d30d0fe87_667aba0a-3373-4e2e-b500-36456b35fe55.webp?v=1714978063","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1b1e542a5de54c9858b6ad8f08b59c3b8ba166b_1c17cb5f-7b48-4c34-af3e-83189e596382.webp?v=1714978065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa934f269952a7a217b82ab19b3be3fb998b8f6_0382cb56-d6a1-4074-a99e-3bb6d723cbf6.webp?v=1714978068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58cd605f28673b5f315750970ce5a508b8924bb_74370b7a-70f3-4893-80bf-71dba0aebb65.webp?v=1714978070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56b71de014b3d5c61e5e5840662349657e2a969_69ea34fc-c4a4-441e-a76a-e124346c9d79.webp?v=1714978072"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e007c0bc3a555d1cc89fb4b8b00942b796bd941_848f4686-3eb9-42bf-82cb-472ffcf2fc4e.webp?v=1714978050","options":["color"],"media":[{"alt":null,"id":23897421611107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e007c0bc3a555d1cc89fb4b8b00942b796bd941_848f4686-3eb9-42bf-82cb-472ffcf2fc4e.webp?v=1714978050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e007c0bc3a555d1cc89fb4b8b00942b796bd941_848f4686-3eb9-42bf-82cb-472ffcf2fc4e.webp?v=1714978050","width":2000},{"alt":null,"id":23897422102627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053","width":2000},{"alt":null,"id":23897422528611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af527e914244cdd255ac0f76ea39d09d2bdd038_63ed2d90-45cc-4a74-83fa-8e43de38607d.webp?v=1714978055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0af527e914244cdd255ac0f76ea39d09d2bdd038_63ed2d90-45cc-4a74-83fa-8e43de38607d.webp?v=1714978055","width":2000},{"alt":null,"id":23897422889059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62414501003f88e22fdaef7955cd8b06b7a25850_d816b8bc-4621-41c8-a999-52888e9a4f71.webp?v=1714978058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62414501003f88e22fdaef7955cd8b06b7a25850_d816b8bc-4621-41c8-a999-52888e9a4f71.webp?v=1714978058","width":2000},{"alt":null,"id":23897423347811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de12cf51c9e99eba123ea929c01bb966f70dc451_d1b6bfe1-f43e-47ab-a3e8-241fa1b5f2f6.webp?v=1714978060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de12cf51c9e99eba123ea929c01bb966f70dc451_d1b6bfe1-f43e-47ab-a3e8-241fa1b5f2f6.webp?v=1714978060","width":2000},{"alt":null,"id":23897424592995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477843b637f6069486e2a07b0a86e94d30d0fe87_667aba0a-3373-4e2e-b500-36456b35fe55.webp?v=1714978063"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477843b637f6069486e2a07b0a86e94d30d0fe87_667aba0a-3373-4e2e-b500-36456b35fe55.webp?v=1714978063","width":2000},{"alt":null,"id":23897424953443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1b1e542a5de54c9858b6ad8f08b59c3b8ba166b_1c17cb5f-7b48-4c34-af3e-83189e596382.webp?v=1714978065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1b1e542a5de54c9858b6ad8f08b59c3b8ba166b_1c17cb5f-7b48-4c34-af3e-83189e596382.webp?v=1714978065","width":2000},{"alt":null,"id":23897425444963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa934f269952a7a217b82ab19b3be3fb998b8f6_0382cb56-d6a1-4074-a99e-3bb6d723cbf6.webp?v=1714978068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa934f269952a7a217b82ab19b3be3fb998b8f6_0382cb56-d6a1-4074-a99e-3bb6d723cbf6.webp?v=1714978068","width":2000},{"alt":null,"id":23897426165859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58cd605f28673b5f315750970ce5a508b8924bb_74370b7a-70f3-4893-80bf-71dba0aebb65.webp?v=1714978070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58cd605f28673b5f315750970ce5a508b8924bb_74370b7a-70f3-4893-80bf-71dba0aebb65.webp?v=1714978070","width":2000},{"alt":null,"id":23897426526307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56b71de014b3d5c61e5e5840662349657e2a969_69ea34fc-c4a4-441e-a76a-e124346c9d79.webp?v=1714978072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a56b71de014b3d5c61e5e5840662349657e2a969_69ea34fc-c4a4-441e-a76a-e124346c9d79.webp?v=1714978072","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919217238115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31492008280163,"product_id":7416389828707,"position":2,"created_at":"2024-05-06T14:47:33+08:00","updated_at":"2024-05-06T14:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053","variant_ids":[41919217238115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - 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-EO06","featured_media":{"alt":null,"id":23897422102627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919217238115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31492008280163,"product_id":7416389828707,"position":2,"created_at":"2024-05-06T14:47:33+08:00","updated_at":"2024-05-06T14:47:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053","variant_ids":[41919217238115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - 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-EO06","featured_media":{"alt":null,"id":23897422102627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ff210a5aad0a09981306838469d90260a45300c_e6ab19a5-fd83-455a-9405-48398802568c.webp?v=1714978053"}},"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: "停產" }