$product = {"id":7416349950051,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列","handle":"iphone-8-mod-nx-printable-pb83","description":null,"published_at":"2024-06-11T16:56:38+08:00","created_at":"2024-05-06T14:39:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41918781096035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31491912269923,"product_id":7416349950051,"position":3,"created_at":"2024-05-06T14:40:00+08:00","updated_at":"2024-05-06T14:40:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600","variant_ids":[41918781096035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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":"NPB0105424-PB83","featured_media":{"alt":null,"id":23897325207651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5673b7873608ba1272f530889d1fc8247cdb5215_68243f36-3e7f-4992-9114-1334a44adc08.webp?v=1714977595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df843239c4d29be370f260e114fd881a2c32459b_797acaf5-c329-46b2-b0a0-48fc759d0340.webp?v=1714977597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ae282f5a38e666a6e9c9092fe11c80627ea2b98_0a82c2ee-755b-470b-b5c9-83e79d49339a.webp?v=1714977602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca355d77d4071f2a3821435b208a88f39fc2619b_b48a20b4-93a0-4ab1-bda0-e038d85698f1.webp?v=1714977605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3456d68744490090061c9900d7e7a703b9a55a9_c643644b-a69c-44ac-a320-3c677ce13083.webp?v=1714977607","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4fb921678b698ab2311e287e03ccb1e1d9d748_27778b17-a381-4ed5-8c0b-484c627cd0f0.webp?v=1714977610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a7fddd8fbd9996d6eebda0aae75aa61fd87c9e_3249886c-30e4-4ff1-9a03-10161160b7d0.webp?v=1714977612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f59dae36a4da0984d2638d21d3289db4a7b1b7_1edd20bc-3e86-44b7-a1b3-44b5a02f4003.webp?v=1714977615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097e7593e983bf1e3697cf77e2696aad57510ff6_3a9bc0d0-1b72-4c03-a4af-ae6efff5f4b8.webp?v=1714977618"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5673b7873608ba1272f530889d1fc8247cdb5215_68243f36-3e7f-4992-9114-1334a44adc08.webp?v=1714977595","options":["color"],"media":[{"alt":null,"id":23897324257379,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5673b7873608ba1272f530889d1fc8247cdb5215_68243f36-3e7f-4992-9114-1334a44adc08.webp?v=1714977595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5673b7873608ba1272f530889d1fc8247cdb5215_68243f36-3e7f-4992-9114-1334a44adc08.webp?v=1714977595","width":2000},{"alt":null,"id":23897324748899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df843239c4d29be370f260e114fd881a2c32459b_797acaf5-c329-46b2-b0a0-48fc759d0340.webp?v=1714977597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df843239c4d29be370f260e114fd881a2c32459b_797acaf5-c329-46b2-b0a0-48fc759d0340.webp?v=1714977597","width":2000},{"alt":null,"id":23897325207651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600","width":2000},{"alt":null,"id":23897325437027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ae282f5a38e666a6e9c9092fe11c80627ea2b98_0a82c2ee-755b-470b-b5c9-83e79d49339a.webp?v=1714977602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ae282f5a38e666a6e9c9092fe11c80627ea2b98_0a82c2ee-755b-470b-b5c9-83e79d49339a.webp?v=1714977602","width":2000},{"alt":null,"id":23897325666403,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca355d77d4071f2a3821435b208a88f39fc2619b_b48a20b4-93a0-4ab1-bda0-e038d85698f1.webp?v=1714977605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca355d77d4071f2a3821435b208a88f39fc2619b_b48a20b4-93a0-4ab1-bda0-e038d85698f1.webp?v=1714977605","width":2000},{"alt":null,"id":23897325895779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3456d68744490090061c9900d7e7a703b9a55a9_c643644b-a69c-44ac-a320-3c677ce13083.webp?v=1714977607"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3456d68744490090061c9900d7e7a703b9a55a9_c643644b-a69c-44ac-a320-3c677ce13083.webp?v=1714977607","width":2000},{"alt":null,"id":23897326616675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4fb921678b698ab2311e287e03ccb1e1d9d748_27778b17-a381-4ed5-8c0b-484c627cd0f0.webp?v=1714977610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4fb921678b698ab2311e287e03ccb1e1d9d748_27778b17-a381-4ed5-8c0b-484c627cd0f0.webp?v=1714977610","width":2000},{"alt":null,"id":23897326977123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a7fddd8fbd9996d6eebda0aae75aa61fd87c9e_3249886c-30e4-4ff1-9a03-10161160b7d0.webp?v=1714977612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85a7fddd8fbd9996d6eebda0aae75aa61fd87c9e_3249886c-30e4-4ff1-9a03-10161160b7d0.webp?v=1714977612","width":2000},{"alt":null,"id":23897327534179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f59dae36a4da0984d2638d21d3289db4a7b1b7_1edd20bc-3e86-44b7-a1b3-44b5a02f4003.webp?v=1714977615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39f59dae36a4da0984d2638d21d3289db4a7b1b7_1edd20bc-3e86-44b7-a1b3-44b5a02f4003.webp?v=1714977615","width":2000},{"alt":null,"id":23897327960163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097e7593e983bf1e3697cf77e2696aad57510ff6_3a9bc0d0-1b72-4c03-a4af-ae6efff5f4b8.webp?v=1714977618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/097e7593e983bf1e3697cf77e2696aad57510ff6_3a9bc0d0-1b72-4c03-a4af-ae6efff5f4b8.webp?v=1714977618","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918781096035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31491912269923,"product_id":7416349950051,"position":3,"created_at":"2024-05-06T14:40:00+08:00","updated_at":"2024-05-06T14:40:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600","variant_ids":[41918781096035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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":"NPB0105424-PB83","featured_media":{"alt":null,"id":23897325207651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918781096035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB83","requires_shipping":true,"taxable":true,"featured_image":{"id":31491912269923,"product_id":7416349950051,"position":3,"created_at":"2024-05-06T14:40:00+08:00","updated_at":"2024-05-06T14:40:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600","variant_ids":[41918781096035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰漫畫-貼紙系列 - 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":"NPB0105424-PB83","featured_media":{"alt":null,"id":23897325207651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a57e86dba71b382d5dc52b4d1fc304231552f47_f9132cc9-3022-43f6-aae5-4141cc0c7256.webp?v=1714977600"}},"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: "停產" }