$product = {"id":7416382554211,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-8-mod-nx-printable-pb48","description":null,"published_at":"2024-06-11T16:57:33+08:00","created_at":"2024-05-06T14:46:07+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":41919133352035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31491993960547,"product_id":7416382554211,"position":9,"created_at":"2024-05-06T14:46:30+08:00","updated_at":"2024-05-06T14:46:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990","variant_ids":[41919133352035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23897407455331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6b4d95803d0a1b99d1cfad9eb3c3e0445661c2_45bf38ba-6ef2-4008-895a-77e3fb25bb10.webp?v=1714977970","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4689f87a72528f1d819ee563bb178668d2c3908_22e72ffc-df9f-499e-b470-c6f94a50017c.webp?v=1714977972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd665d877d31fd30148d80b0921e5befa3807505_cbae14a0-57c0-44a1-a32e-94f9689e89af.webp?v=1714977975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5a9ae319431ec2763b442415e5f257566c260b_515187f3-646d-496d-80a4-4b469703476a.webp?v=1714977977","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77811f5e0eccc91684709da67aa0278e5f851a81_4637a80f-95e7-4efa-bf61-c47211983e8c.webp?v=1714977980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f5047b7b149dcbd8a476d3e7d637a68dfd74d_db8ef13a-456c-4526-b784-da9318e4e7ca.webp?v=1714977983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5778e5f6723267b07d0cb49a3514081b94ea8fb1_c3dfb41c-a602-4f45-bf13-c854038303f1.webp?v=1714977985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a63569bb59238cc99cbe120808dbeb7c79ba4e2_fa8331ba-d121-4480-a833-548198d1ac57.webp?v=1714977988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44ac28e4482447d6befe3084634d513dc0e3f395_6d37716e-1f4b-4a32-a90a-341ed2ff9abf.webp?v=1714977993"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6b4d95803d0a1b99d1cfad9eb3c3e0445661c2_45bf38ba-6ef2-4008-895a-77e3fb25bb10.webp?v=1714977970","options":["color"],"media":[{"alt":null,"id":23897402114147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6b4d95803d0a1b99d1cfad9eb3c3e0445661c2_45bf38ba-6ef2-4008-895a-77e3fb25bb10.webp?v=1714977970"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b6b4d95803d0a1b99d1cfad9eb3c3e0445661c2_45bf38ba-6ef2-4008-895a-77e3fb25bb10.webp?v=1714977970","width":2000},{"alt":null,"id":23897402769507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4689f87a72528f1d819ee563bb178668d2c3908_22e72ffc-df9f-499e-b470-c6f94a50017c.webp?v=1714977972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4689f87a72528f1d819ee563bb178668d2c3908_22e72ffc-df9f-499e-b470-c6f94a50017c.webp?v=1714977972","width":2000},{"alt":null,"id":23897403785315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd665d877d31fd30148d80b0921e5befa3807505_cbae14a0-57c0-44a1-a32e-94f9689e89af.webp?v=1714977975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd665d877d31fd30148d80b0921e5befa3807505_cbae14a0-57c0-44a1-a32e-94f9689e89af.webp?v=1714977975","width":2000},{"alt":null,"id":23897404342371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5a9ae319431ec2763b442415e5f257566c260b_515187f3-646d-496d-80a4-4b469703476a.webp?v=1714977977"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b5a9ae319431ec2763b442415e5f257566c260b_515187f3-646d-496d-80a4-4b469703476a.webp?v=1714977977","width":2000},{"alt":null,"id":23897404866659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77811f5e0eccc91684709da67aa0278e5f851a81_4637a80f-95e7-4efa-bf61-c47211983e8c.webp?v=1714977980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77811f5e0eccc91684709da67aa0278e5f851a81_4637a80f-95e7-4efa-bf61-c47211983e8c.webp?v=1714977980","width":2000},{"alt":null,"id":23897405423715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f5047b7b149dcbd8a476d3e7d637a68dfd74d_db8ef13a-456c-4526-b784-da9318e4e7ca.webp?v=1714977983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c02f5047b7b149dcbd8a476d3e7d637a68dfd74d_db8ef13a-456c-4526-b784-da9318e4e7ca.webp?v=1714977983","width":2000},{"alt":null,"id":23897406275683,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5778e5f6723267b07d0cb49a3514081b94ea8fb1_c3dfb41c-a602-4f45-bf13-c854038303f1.webp?v=1714977985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5778e5f6723267b07d0cb49a3514081b94ea8fb1_c3dfb41c-a602-4f45-bf13-c854038303f1.webp?v=1714977985","width":2000},{"alt":null,"id":23897407029347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a63569bb59238cc99cbe120808dbeb7c79ba4e2_fa8331ba-d121-4480-a833-548198d1ac57.webp?v=1714977988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a63569bb59238cc99cbe120808dbeb7c79ba4e2_fa8331ba-d121-4480-a833-548198d1ac57.webp?v=1714977988","width":2000},{"alt":null,"id":23897407455331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990","width":2000},{"alt":null,"id":23897408176227,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44ac28e4482447d6befe3084634d513dc0e3f395_6d37716e-1f4b-4a32-a90a-341ed2ff9abf.webp?v=1714977993"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44ac28e4482447d6befe3084634d513dc0e3f395_6d37716e-1f4b-4a32-a90a-341ed2ff9abf.webp?v=1714977993","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919133352035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31491993960547,"product_id":7416382554211,"position":9,"created_at":"2024-05-06T14:46:30+08:00","updated_at":"2024-05-06T14:46:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990","variant_ids":[41919133352035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23897407455331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919133352035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31491993960547,"product_id":7416382554211,"position":9,"created_at":"2024-05-06T14:46:30+08:00","updated_at":"2024-05-06T14:46:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990","variant_ids":[41919133352035]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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-PB48","featured_media":{"alt":null,"id":23897407455331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3529f49ee3b949c061e8c83a19ab381666be7210_fdb6dfab-0252-4504-bf7b-a699482a524c.webp?v=1714977990"}},"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: "停產" }