$product = {"id":7408400531555,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 生日帽","handle":"iphone-12-mini-mod-nx-printable-iv01","description":null,"published_at":"2024-06-11T16:36:13+08:00","created_at":"2024-05-03T15:19:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41885067837539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166600803,"product_id":7408400531555,"position":3,"created_at":"2024-05-03T15:19:24+08:00","updated_at":"2024-05-03T15:19:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764","variant_ids":[41885067837539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118424-IV01","featured_media":{"alt":null,"id":23877082185827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d43303ee1ca9cd6af2bfb9ced1aa11fe915de_5260af3e-0363-40bb-ae79-da57dfefb931.webp?v=1714720760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2d72acf50eb4ceb045315f2ac5e0a1b49fe135_df6fb0de-ec08-44b1-9ef6-a282c7ec4af4.webp?v=1714720762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc3a6eee6c9283fe830f1203fc13070e7fe967c_166612dd-54b3-4755-bc5c-2b6d833488e6.webp?v=1714720767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/314c0deb8881d73f796f50b63352e3fafac86f70_ef4a4738-c24b-4014-a04a-4326d9d4c8ff.webp?v=1714720769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d5a11d9a5c05c64fb5f71b5b3e83237ba1cf4_f8255020-7cd9-4b9e-abf9-4d3a338d93d1.webp?v=1714720771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66292815eba74df41b579b012ff93f1fa1b7e43_8e21bb58-4618-481f-8de1-ec48e7a00f13.webp?v=1714720774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743a6d32c60c0510ae00c8bbd588c4e03a56cba9_df0f7a89-bc89-42a5-81cc-35d657a3afbf.webp?v=1714720776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836eff1f10e447f3428bafb64d1543f537e2b72_c9612e7c-397b-4f84-a260-8ae86563fd36.webp?v=1714720778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca852a23aeb6ddd8cd5a842ea5af7cceb567a92_208c1761-9972-4f06-8ec1-74aecde3fbfa.webp?v=1714720781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b811391faae01c1eacfcb648b49336785609e266_3f6c310f-3270-45f2-8555-476ca5a38c16.webp?v=1714720783"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d43303ee1ca9cd6af2bfb9ced1aa11fe915de_5260af3e-0363-40bb-ae79-da57dfefb931.webp?v=1714720760","options":["color"],"media":[{"alt":null,"id":23877081399395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d43303ee1ca9cd6af2bfb9ced1aa11fe915de_5260af3e-0363-40bb-ae79-da57dfefb931.webp?v=1714720760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b2d43303ee1ca9cd6af2bfb9ced1aa11fe915de_5260af3e-0363-40bb-ae79-da57dfefb931.webp?v=1714720760","width":2000},{"alt":null,"id":23877081890915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2d72acf50eb4ceb045315f2ac5e0a1b49fe135_df6fb0de-ec08-44b1-9ef6-a282c7ec4af4.webp?v=1714720762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb2d72acf50eb4ceb045315f2ac5e0a1b49fe135_df6fb0de-ec08-44b1-9ef6-a282c7ec4af4.webp?v=1714720762","width":2000},{"alt":null,"id":23877082185827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764","width":2000},{"alt":null,"id":23877082611811,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc3a6eee6c9283fe830f1203fc13070e7fe967c_166612dd-54b3-4755-bc5c-2b6d833488e6.webp?v=1714720767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fc3a6eee6c9283fe830f1203fc13070e7fe967c_166612dd-54b3-4755-bc5c-2b6d833488e6.webp?v=1714720767","width":2000},{"alt":null,"id":23877083136099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/314c0deb8881d73f796f50b63352e3fafac86f70_ef4a4738-c24b-4014-a04a-4326d9d4c8ff.webp?v=1714720769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/314c0deb8881d73f796f50b63352e3fafac86f70_ef4a4738-c24b-4014-a04a-4326d9d4c8ff.webp?v=1714720769","width":2000},{"alt":null,"id":23877083594851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d5a11d9a5c05c64fb5f71b5b3e83237ba1cf4_f8255020-7cd9-4b9e-abf9-4d3a338d93d1.webp?v=1714720771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b3d5a11d9a5c05c64fb5f71b5b3e83237ba1cf4_f8255020-7cd9-4b9e-abf9-4d3a338d93d1.webp?v=1714720771","width":2000},{"alt":null,"id":23877084282979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66292815eba74df41b579b012ff93f1fa1b7e43_8e21bb58-4618-481f-8de1-ec48e7a00f13.webp?v=1714720774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66292815eba74df41b579b012ff93f1fa1b7e43_8e21bb58-4618-481f-8de1-ec48e7a00f13.webp?v=1714720774","width":2000},{"alt":null,"id":23877084741731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743a6d32c60c0510ae00c8bbd588c4e03a56cba9_df0f7a89-bc89-42a5-81cc-35d657a3afbf.webp?v=1714720776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743a6d32c60c0510ae00c8bbd588c4e03a56cba9_df0f7a89-bc89-42a5-81cc-35d657a3afbf.webp?v=1714720776","width":2000},{"alt":null,"id":23877085167715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836eff1f10e447f3428bafb64d1543f537e2b72_c9612e7c-397b-4f84-a260-8ae86563fd36.webp?v=1714720778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4836eff1f10e447f3428bafb64d1543f537e2b72_c9612e7c-397b-4f84-a260-8ae86563fd36.webp?v=1714720778","width":2000},{"alt":null,"id":23877085790307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca852a23aeb6ddd8cd5a842ea5af7cceb567a92_208c1761-9972-4f06-8ec1-74aecde3fbfa.webp?v=1714720781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca852a23aeb6ddd8cd5a842ea5af7cceb567a92_208c1761-9972-4f06-8ec1-74aecde3fbfa.webp?v=1714720781","width":2000},{"alt":null,"id":23877086183523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b811391faae01c1eacfcb648b49336785609e266_3f6c310f-3270-45f2-8555-476ca5a38c16.webp?v=1714720783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b811391faae01c1eacfcb648b49336785609e266_3f6c310f-3270-45f2-8555-476ca5a38c16.webp?v=1714720783","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885067837539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166600803,"product_id":7408400531555,"position":3,"created_at":"2024-05-03T15:19:24+08:00","updated_at":"2024-05-03T15:19:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764","variant_ids":[41885067837539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118424-IV01","featured_media":{"alt":null,"id":23877082185827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885067837539,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-IV01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472166600803,"product_id":7408400531555,"position":3,"created_at":"2024-05-03T15:19:24+08:00","updated_at":"2024-05-03T15:19:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764","variant_ids":[41885067837539]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 1G - 生日帽 - 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":"NPB0118424-IV01","featured_media":{"alt":null,"id":23877082185827,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c5677ad1ee1f2ad2750a4cef046c35b3a205b2e_7946c543-75cb-43dd-b66f-0e70faac9525.webp?v=1714720764"}},"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: "停產" }