$product = {"id":7416364499043,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-8-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:57:03+08:00","created_at":"2024-05-06T14:42:43+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":41918935367779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31491946774627,"product_id":7416364499043,"position":3,"created_at":"2024-05-06T14:42:50+08:00","updated_at":"2024-05-06T14:42:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770","variant_ids":[41918935367779]},"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-PC13","featured_media":{"alt":null,"id":23897359810659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87806d4bc765ebc9e016b5d2ececacdd21c91455_7d7db820-43bc-483f-99c7-c261c4dcfe0b.webp?v=1714977766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105593b4953b1b56b4389498f092a06d31e267d_244bd043-c68e-4567-a5a1-91b720f440d8.webp?v=1714977768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fc4bed1f31a9c217b767dd511d53c125ffb39_236409f5-896c-4798-91c9-93b1c3b0107e.webp?v=1714977772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aba40332e905bae7503ce257068c24aebf0f307_f9acf0e0-7460-4bf5-915c-fba0b0b9a2ea.webp?v=1714977775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5e94b34ad6a2af02bb29185c38d273bf20e379_1cc461f2-15f9-4103-9ba1-f17907d81308.webp?v=1714977777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122bfe2f22b8724d1a1221e90a6a3f20c7a03e82_42ed0200-a8b7-406f-8fb9-5a504fc3713b.webp?v=1714977779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb09c589f2e526325aaa98cba7e9ef76f6f3ae_6c8ca6ed-ffec-40b4-bb61-ee4115e8a297.webp?v=1714977781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d2cd594e9eb8190f5955bb080729aaddd2a1ed_7c7016bb-0a4d-4131-ae1d-349207b9dfb6.webp?v=1714977784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e53d556f14b9b1e31f3ec69b501b8642930f91_3a8bcab2-fa3f-4a99-9454-d44b96831ecb.webp?v=1714977786"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87806d4bc765ebc9e016b5d2ececacdd21c91455_7d7db820-43bc-483f-99c7-c261c4dcfe0b.webp?v=1714977766","options":["color"],"media":[{"alt":null,"id":23897358532707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87806d4bc765ebc9e016b5d2ececacdd21c91455_7d7db820-43bc-483f-99c7-c261c4dcfe0b.webp?v=1714977766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87806d4bc765ebc9e016b5d2ececacdd21c91455_7d7db820-43bc-483f-99c7-c261c4dcfe0b.webp?v=1714977766","width":2000},{"alt":null,"id":23897359417443,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105593b4953b1b56b4389498f092a06d31e267d_244bd043-c68e-4567-a5a1-91b720f440d8.webp?v=1714977768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7105593b4953b1b56b4389498f092a06d31e267d_244bd043-c68e-4567-a5a1-91b720f440d8.webp?v=1714977768","width":2000},{"alt":null,"id":23897359810659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770","width":2000},{"alt":null,"id":23897360367715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fc4bed1f31a9c217b767dd511d53c125ffb39_236409f5-896c-4798-91c9-93b1c3b0107e.webp?v=1714977772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de1fc4bed1f31a9c217b767dd511d53c125ffb39_236409f5-896c-4798-91c9-93b1c3b0107e.webp?v=1714977772","width":2000},{"alt":null,"id":23897360793699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aba40332e905bae7503ce257068c24aebf0f307_f9acf0e0-7460-4bf5-915c-fba0b0b9a2ea.webp?v=1714977775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aba40332e905bae7503ce257068c24aebf0f307_f9acf0e0-7460-4bf5-915c-fba0b0b9a2ea.webp?v=1714977775","width":2000},{"alt":null,"id":23897361219683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5e94b34ad6a2af02bb29185c38d273bf20e379_1cc461f2-15f9-4103-9ba1-f17907d81308.webp?v=1714977777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5e94b34ad6a2af02bb29185c38d273bf20e379_1cc461f2-15f9-4103-9ba1-f17907d81308.webp?v=1714977777","width":2000},{"alt":null,"id":23897361743971,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122bfe2f22b8724d1a1221e90a6a3f20c7a03e82_42ed0200-a8b7-406f-8fb9-5a504fc3713b.webp?v=1714977779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122bfe2f22b8724d1a1221e90a6a3f20c7a03e82_42ed0200-a8b7-406f-8fb9-5a504fc3713b.webp?v=1714977779","width":2000},{"alt":null,"id":23897362137187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb09c589f2e526325aaa98cba7e9ef76f6f3ae_6c8ca6ed-ffec-40b4-bb61-ee4115e8a297.webp?v=1714977781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8bb09c589f2e526325aaa98cba7e9ef76f6f3ae_6c8ca6ed-ffec-40b4-bb61-ee4115e8a297.webp?v=1714977781","width":2000},{"alt":null,"id":23897363120227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d2cd594e9eb8190f5955bb080729aaddd2a1ed_7c7016bb-0a4d-4131-ae1d-349207b9dfb6.webp?v=1714977784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94d2cd594e9eb8190f5955bb080729aaddd2a1ed_7c7016bb-0a4d-4131-ae1d-349207b9dfb6.webp?v=1714977784","width":2000},{"alt":null,"id":23897363578979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e53d556f14b9b1e31f3ec69b501b8642930f91_3a8bcab2-fa3f-4a99-9454-d44b96831ecb.webp?v=1714977786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e53d556f14b9b1e31f3ec69b501b8642930f91_3a8bcab2-fa3f-4a99-9454-d44b96831ecb.webp?v=1714977786","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918935367779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31491946774627,"product_id":7416364499043,"position":3,"created_at":"2024-05-06T14:42:50+08:00","updated_at":"2024-05-06T14:42:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770","variant_ids":[41918935367779]},"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-PC13","featured_media":{"alt":null,"id":23897359810659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918935367779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31491946774627,"product_id":7416364499043,"position":3,"created_at":"2024-05-06T14:42:50+08:00","updated_at":"2024-05-06T14:42:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770","variant_ids":[41918935367779]},"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-PC13","featured_media":{"alt":null,"id":23897359810659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86f0d8c4c7f1af73f1b1025558c4a70e81b2e578_b4ef8c96-3a09-4c83-93c8-9b7889762ff5.webp?v=1714977770"}},"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: "停產" }