$product = {"id":7369132081251,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 曬太陽","handle":"iphone-14-plus-mod-nx-printable-pl63","description":null,"published_at":"2024-06-11T16:12:58+08:00","created_at":"2024-04-23T15:31:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","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":41792881754211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386871857251,"product_id":7369132081251,"position":5,"created_at":"2024-04-23T15:31:15+08:00","updated_at":"2024-04-23T15:31:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475","variant_ids":[41792881754211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - 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-PL63","featured_media":{"alt":null,"id":23789109706851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae9bca2720db566780dd8fd9c9a832229e063b65_a6536b62-7c7a-411d-9944-715f873f300f.webp?v=1713857465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b485e6eecda7671b787b7f24aff65d2b1dd1bb3_592cfab2-10e6-4da5-acbf-6bb1f99b9e7f.webp?v=1713857468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb0362b67d335ea09800f616df56e72485bd3787_79cef69b-077a-47a4-aa57-bdb42f942c1e.webp?v=1713857471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f1b67e1ef5bba29a3d63eaa82894dcfa4dee22_5f661e29-66e3-4cfb-aa09-cabf6cae5ac0.webp?v=1713857473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/290a6ad89139a6351a25a2e3e30b382b3579b2b3_461e3b46-abfa-48c0-9aeb-e38aabf4eeac.webp?v=1713857478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e5f6067cb211e809f52e2290f1d11bab1e0f57_d0fc75fd-5418-4bcc-8632-5fd9f1bb80a8.webp?v=1713857481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2c9f47ae2fb7eb57490556bf27ce2dd119c5ba_f6e868fe-9cc0-4bb8-8ebd-8c050b42579b.webp?v=1713857483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4266e82719067557e860b23beffebedb4b1c49c7_c6215d04-72d9-43df-8abe-dc5b40c7ae0a.webp?v=1713857485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd41ad0823b36369cac05c4a2e05d67f4a0ab72_2c3d3426-30f1-4311-ab42-3ea7c9cf9bd4.webp?v=1713857488"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae9bca2720db566780dd8fd9c9a832229e063b65_a6536b62-7c7a-411d-9944-715f873f300f.webp?v=1713857465","options":["color"],"media":[{"alt":null,"id":23789107216483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae9bca2720db566780dd8fd9c9a832229e063b65_a6536b62-7c7a-411d-9944-715f873f300f.webp?v=1713857465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae9bca2720db566780dd8fd9c9a832229e063b65_a6536b62-7c7a-411d-9944-715f873f300f.webp?v=1713857465","width":2000},{"alt":null,"id":23789108002915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b485e6eecda7671b787b7f24aff65d2b1dd1bb3_592cfab2-10e6-4da5-acbf-6bb1f99b9e7f.webp?v=1713857468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b485e6eecda7671b787b7f24aff65d2b1dd1bb3_592cfab2-10e6-4da5-acbf-6bb1f99b9e7f.webp?v=1713857468","width":2000},{"alt":null,"id":23789108592739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb0362b67d335ea09800f616df56e72485bd3787_79cef69b-077a-47a4-aa57-bdb42f942c1e.webp?v=1713857471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb0362b67d335ea09800f616df56e72485bd3787_79cef69b-077a-47a4-aa57-bdb42f942c1e.webp?v=1713857471","width":2000},{"alt":null,"id":23789109117027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f1b67e1ef5bba29a3d63eaa82894dcfa4dee22_5f661e29-66e3-4cfb-aa09-cabf6cae5ac0.webp?v=1713857473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f1b67e1ef5bba29a3d63eaa82894dcfa4dee22_5f661e29-66e3-4cfb-aa09-cabf6cae5ac0.webp?v=1713857473","width":2000},{"alt":null,"id":23789109706851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475","width":2000},{"alt":null,"id":23789110362211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/290a6ad89139a6351a25a2e3e30b382b3579b2b3_461e3b46-abfa-48c0-9aeb-e38aabf4eeac.webp?v=1713857478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/290a6ad89139a6351a25a2e3e30b382b3579b2b3_461e3b46-abfa-48c0-9aeb-e38aabf4eeac.webp?v=1713857478","width":2000},{"alt":null,"id":23789111017571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e5f6067cb211e809f52e2290f1d11bab1e0f57_d0fc75fd-5418-4bcc-8632-5fd9f1bb80a8.webp?v=1713857481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e5f6067cb211e809f52e2290f1d11bab1e0f57_d0fc75fd-5418-4bcc-8632-5fd9f1bb80a8.webp?v=1713857481","width":2000},{"alt":null,"id":23789111771235,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2c9f47ae2fb7eb57490556bf27ce2dd119c5ba_f6e868fe-9cc0-4bb8-8ebd-8c050b42579b.webp?v=1713857483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d2c9f47ae2fb7eb57490556bf27ce2dd119c5ba_f6e868fe-9cc0-4bb8-8ebd-8c050b42579b.webp?v=1713857483","width":2000},{"alt":null,"id":23789112393827,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4266e82719067557e860b23beffebedb4b1c49c7_c6215d04-72d9-43df-8abe-dc5b40c7ae0a.webp?v=1713857485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4266e82719067557e860b23beffebedb4b1c49c7_c6215d04-72d9-43df-8abe-dc5b40c7ae0a.webp?v=1713857485","width":2000},{"alt":null,"id":23789113245795,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd41ad0823b36369cac05c4a2e05d67f4a0ab72_2c3d3426-30f1-4311-ab42-3ea7c9cf9bd4.webp?v=1713857488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1dd41ad0823b36369cac05c4a2e05d67f4a0ab72_2c3d3426-30f1-4311-ab42-3ea7c9cf9bd4.webp?v=1713857488","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792881754211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386871857251,"product_id":7369132081251,"position":5,"created_at":"2024-04-23T15:31:15+08:00","updated_at":"2024-04-23T15:31:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475","variant_ids":[41792881754211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - 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-PL63","featured_media":{"alt":null,"id":23789109706851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792881754211,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386871857251,"product_id":7369132081251,"position":5,"created_at":"2024-04-23T15:31:15+08:00","updated_at":"2024-04-23T15:31:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475","variant_ids":[41792881754211]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - 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-PL63","featured_media":{"alt":null,"id":23789109706851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fdd616b8867c48da3c2f498258cf5b75da39374_171d019f-cd14-475b-9765-2fba3a011a3e.webp?v=1713857475"}},"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: "停產" }