$product = {"id":7407943843939,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-史迪奇大臉款","handle":"iphone-14-plus-mod-nx-printable-yf01","description":null,"published_at":"2024-06-11T16:27:12+08:00","created_at":"2024-05-03T11:20:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41880850759779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766456931,"product_id":7407943843939,"position":8,"created_at":"2024-05-03T11:21:08+08:00","updated_at":"2024-05-03T11:21:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468","variant_ids":[41880850759779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"NPB0126124-YF01","featured_media":{"alt":null,"id":23875670736995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e98323635f259d8ab83f932fa552cec4c45540dd_26070e19-b324-479a-8f52-a141dd480fe3.webp?v=1714706451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0714b19388fdcfb1c7a17b2b2e07b3f9e788c8_2a3632a1-1743-44d6-b242-470ae001287b.webp?v=1714706454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7345cfa4c13a1a9efa6ba79c600d11bb603fd9a_ae09162d-9457-4e97-a877-11d98acb0da9.webp?v=1714706456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37add36d8cb1e060d65e90781837caa146ad199f_b547682d-3647-4b04-8769-5fa47237d5a5.webp?v=1714706458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c1524287233238817f97e8e61635f67bba857f_76bdae95-3fa0-4772-8aad-568aa65c2cdb.webp?v=1714706461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56c105dc32874d18389243abc7e0f3edc52c860_a79d87a5-82d5-4203-b70d-33f0eaf82f1c.webp?v=1714706463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9d68f8a090368b4cf56e104a760961f32dfd56_45b769b1-d0ba-490c-976a-17c2ec20eb7f.webp?v=1714706466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1378fbd70004a05423f21bc62a5e346526796e_1b00ff0f-fc92-4ba8-986c-ac203dba8965.webp?v=1714706471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f94e592c4f507653079666b5edae99e974818b_a8d4d660-a44f-4738-80e8-b242cac12a14.webp?v=1714706473"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e98323635f259d8ab83f932fa552cec4c45540dd_26070e19-b324-479a-8f52-a141dd480fe3.webp?v=1714706451","options":["color"],"media":[{"alt":null,"id":23875667558499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e98323635f259d8ab83f932fa552cec4c45540dd_26070e19-b324-479a-8f52-a141dd480fe3.webp?v=1714706451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e98323635f259d8ab83f932fa552cec4c45540dd_26070e19-b324-479a-8f52-a141dd480fe3.webp?v=1714706451","width":2000},{"alt":null,"id":23875668181091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0714b19388fdcfb1c7a17b2b2e07b3f9e788c8_2a3632a1-1743-44d6-b242-470ae001287b.webp?v=1714706454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f0714b19388fdcfb1c7a17b2b2e07b3f9e788c8_2a3632a1-1743-44d6-b242-470ae001287b.webp?v=1714706454","width":2000},{"alt":null,"id":23875668443235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7345cfa4c13a1a9efa6ba79c600d11bb603fd9a_ae09162d-9457-4e97-a877-11d98acb0da9.webp?v=1714706456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7345cfa4c13a1a9efa6ba79c600d11bb603fd9a_ae09162d-9457-4e97-a877-11d98acb0da9.webp?v=1714706456","width":2000},{"alt":null,"id":23875668934755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37add36d8cb1e060d65e90781837caa146ad199f_b547682d-3647-4b04-8769-5fa47237d5a5.webp?v=1714706458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37add36d8cb1e060d65e90781837caa146ad199f_b547682d-3647-4b04-8769-5fa47237d5a5.webp?v=1714706458","width":2000},{"alt":null,"id":23875669295203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c1524287233238817f97e8e61635f67bba857f_76bdae95-3fa0-4772-8aad-568aa65c2cdb.webp?v=1714706461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c1524287233238817f97e8e61635f67bba857f_76bdae95-3fa0-4772-8aad-568aa65c2cdb.webp?v=1714706461","width":2000},{"alt":null,"id":23875669786723,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56c105dc32874d18389243abc7e0f3edc52c860_a79d87a5-82d5-4203-b70d-33f0eaf82f1c.webp?v=1714706463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56c105dc32874d18389243abc7e0f3edc52c860_a79d87a5-82d5-4203-b70d-33f0eaf82f1c.webp?v=1714706463","width":2000},{"alt":null,"id":23875670212707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9d68f8a090368b4cf56e104a760961f32dfd56_45b769b1-d0ba-490c-976a-17c2ec20eb7f.webp?v=1714706466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a9d68f8a090368b4cf56e104a760961f32dfd56_45b769b1-d0ba-490c-976a-17c2ec20eb7f.webp?v=1714706466","width":2000},{"alt":null,"id":23875670736995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468","width":2000},{"alt":null,"id":23875671097443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1378fbd70004a05423f21bc62a5e346526796e_1b00ff0f-fc92-4ba8-986c-ac203dba8965.webp?v=1714706471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef1378fbd70004a05423f21bc62a5e346526796e_1b00ff0f-fc92-4ba8-986c-ac203dba8965.webp?v=1714706471","width":2000},{"alt":null,"id":23875671654499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f94e592c4f507653079666b5edae99e974818b_a8d4d660-a44f-4738-80e8-b242cac12a14.webp?v=1714706473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89f94e592c4f507653079666b5edae99e974818b_a8d4d660-a44f-4738-80e8-b242cac12a14.webp?v=1714706473","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880850759779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766456931,"product_id":7407943843939,"position":8,"created_at":"2024-05-03T11:21:08+08:00","updated_at":"2024-05-03T11:21:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468","variant_ids":[41880850759779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"NPB0126124-YF01","featured_media":{"alt":null,"id":23875670736995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880850759779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766456931,"product_id":7407943843939,"position":8,"created_at":"2024-05-03T11:21:08+08:00","updated_at":"2024-05-03T11:21:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468","variant_ids":[41880850759779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"NPB0126124-YF01","featured_media":{"alt":null,"id":23875670736995,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36170db78974b5fc27b6482d0226eb60a8a0da70_36003f8a-b3d6-447a-ada7-df2db230b656.webp?v=1714706468"}},"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: "停產" }