$product = {"id":7407856320611,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈","handle":"iphone-14-plus-mod-nx-printable-yf07","description":null,"published_at":"2024-06-11T16:24:44+08:00","created_at":"2024-05-03T11:03:27+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":41879692968035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470544289891,"product_id":7407856320611,"position":4,"created_at":"2024-05-03T11:03:37+08:00","updated_at":"2024-05-03T11:03:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417","variant_ids":[41879692968035]},"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-YF07","featured_media":{"alt":null,"id":23875448143971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa28af5e49ca62c0cde2f290912ead8752ec5a9_bf1d6f68-ae9a-40b6-9b02-76049d3f8e2d.webp?v=1714705409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cec31cd92dd8baaf52dd11f97c2cacdc758953_b714b0d2-bfba-4a03-8bb5-f07560966c52.webp?v=1714705412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add23eee677cb156e0b9338cd2e5557d1e2a5ff_143550b0-458e-4b9e-adcd-15e91b0ddc6d.webp?v=1714705414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1ebb23074b95ac507496ecf4197e2a84f43d66_3711510a-3db0-4b54-8158-3454b02e1776.webp?v=1714705420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ecaeee7a4da456439104101daaeb8ef4e05bb24_b824213b-a989-492e-8d78-32aed7d42c29.webp?v=1714705422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dd09c36a1d063caef3dc26d90a9fdebe6352e_85b6d8de-c83f-4ccb-858a-b79ff6c9c75f.webp?v=1714705424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9243a83e97b6b9f41239dbb5946b194ed679d718_7bc8e728-ed5b-4d10-88ab-1cb62da259f4.webp?v=1714705427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3ae275a1366b84dc69480a78e3cfce61c2da10_e6b0ebd0-9ff0-4c31-800c-7043c0e57d99.webp?v=1714705429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a151bc3c41ec554df6f4f954959114cf7b6da1_e46cc3f1-4524-4c81-9f99-f0c9288b3cbb.webp?v=1714705432"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa28af5e49ca62c0cde2f290912ead8752ec5a9_bf1d6f68-ae9a-40b6-9b02-76049d3f8e2d.webp?v=1714705409","options":["color"],"media":[{"alt":null,"id":23875445358691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa28af5e49ca62c0cde2f290912ead8752ec5a9_bf1d6f68-ae9a-40b6-9b02-76049d3f8e2d.webp?v=1714705409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa28af5e49ca62c0cde2f290912ead8752ec5a9_bf1d6f68-ae9a-40b6-9b02-76049d3f8e2d.webp?v=1714705409","width":2000},{"alt":null,"id":23875446112355,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cec31cd92dd8baaf52dd11f97c2cacdc758953_b714b0d2-bfba-4a03-8bb5-f07560966c52.webp?v=1714705412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6cec31cd92dd8baaf52dd11f97c2cacdc758953_b714b0d2-bfba-4a03-8bb5-f07560966c52.webp?v=1714705412","width":2000},{"alt":null,"id":23875446964323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add23eee677cb156e0b9338cd2e5557d1e2a5ff_143550b0-458e-4b9e-adcd-15e91b0ddc6d.webp?v=1714705414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5add23eee677cb156e0b9338cd2e5557d1e2a5ff_143550b0-458e-4b9e-adcd-15e91b0ddc6d.webp?v=1714705414","width":2000},{"alt":null,"id":23875448143971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417","width":2000},{"alt":null,"id":23875449094243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1ebb23074b95ac507496ecf4197e2a84f43d66_3711510a-3db0-4b54-8158-3454b02e1776.webp?v=1714705420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee1ebb23074b95ac507496ecf4197e2a84f43d66_3711510a-3db0-4b54-8158-3454b02e1776.webp?v=1714705420","width":2000},{"alt":null,"id":23875449847907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ecaeee7a4da456439104101daaeb8ef4e05bb24_b824213b-a989-492e-8d78-32aed7d42c29.webp?v=1714705422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ecaeee7a4da456439104101daaeb8ef4e05bb24_b824213b-a989-492e-8d78-32aed7d42c29.webp?v=1714705422","width":2000},{"alt":null,"id":23875450699875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dd09c36a1d063caef3dc26d90a9fdebe6352e_85b6d8de-c83f-4ccb-858a-b79ff6c9c75f.webp?v=1714705424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d6dd09c36a1d063caef3dc26d90a9fdebe6352e_85b6d8de-c83f-4ccb-858a-b79ff6c9c75f.webp?v=1714705424","width":2000},{"alt":null,"id":23875451650147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9243a83e97b6b9f41239dbb5946b194ed679d718_7bc8e728-ed5b-4d10-88ab-1cb62da259f4.webp?v=1714705427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9243a83e97b6b9f41239dbb5946b194ed679d718_7bc8e728-ed5b-4d10-88ab-1cb62da259f4.webp?v=1714705427","width":2000},{"alt":null,"id":23875452174435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3ae275a1366b84dc69480a78e3cfce61c2da10_e6b0ebd0-9ff0-4c31-800c-7043c0e57d99.webp?v=1714705429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3ae275a1366b84dc69480a78e3cfce61c2da10_e6b0ebd0-9ff0-4c31-800c-7043c0e57d99.webp?v=1714705429","width":2000},{"alt":null,"id":23875452633187,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a151bc3c41ec554df6f4f954959114cf7b6da1_e46cc3f1-4524-4c81-9f99-f0c9288b3cbb.webp?v=1714705432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93a151bc3c41ec554df6f4f954959114cf7b6da1_e46cc3f1-4524-4c81-9f99-f0c9288b3cbb.webp?v=1714705432","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879692968035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470544289891,"product_id":7407856320611,"position":4,"created_at":"2024-05-03T11:03:37+08:00","updated_at":"2024-05-03T11:03:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417","variant_ids":[41879692968035]},"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-YF07","featured_media":{"alt":null,"id":23875448143971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879692968035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31470544289891,"product_id":7407856320611,"position":4,"created_at":"2024-05-03T11:03:37+08:00","updated_at":"2024-05-03T11:03:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417","variant_ids":[41879692968035]},"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-YF07","featured_media":{"alt":null,"id":23875448143971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734cd3d94ed541f54765e8442b71105da646a73c_edf12fb0-ff0e-4030-8725-cbb7c0187839.webp?v=1714705417"}},"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: "停產" }