$product = {"id":7416328126563,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-8-mod-nx-printable-pb18","description":null,"published_at":"2024-06-11T16:56:00+08:00","created_at":"2024-05-06T14:35:20+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":41918545166435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31491853910115,"product_id":7416328126563,"position":2,"created_at":"2024-05-06T14:35:25+08:00","updated_at":"2024-05-06T14:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325","variant_ids":[41918545166435]},"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-PB18","featured_media":{"alt":null,"id":23897266716771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf69a9a800b81c2fddc9747d6d9b81653604b44_f05d7d08-eff0-4c8a-906a-7eae76c490a0.webp?v=1714977323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c835c5c31d50eca98d1bd2b734ffe8194d9644b_95dd9b6e-f064-4b5e-9029-b298c741a144.webp?v=1714977328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a8438c078196daff99c0eaa6f91e7c173ec330_badba58b-b573-4c08-949e-a1367fbf8396.webp?v=1714977331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab68bcbd22ff1809fd2ef42724917b6c6a76365_9c848eb5-117f-4af0-919c-808b296963f5.webp?v=1714977333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256130ca07afaeea8035f3b4025c1f9f187d6503_d0dbf5c0-f56f-465e-a711-dc5e8f205fd9.webp?v=1714977335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940568e956def9f4b8ed31f0e24d0fb40cda380d_50830b76-41b7-4629-bde9-244a91c6227d.webp?v=1714977338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055d3b0a28244678c64161e20cea11ab8aba729e_acb556c5-4bf1-4c92-9a3b-734cada30ccf.webp?v=1714977341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceb5eef5ea7b02c8cc562bb5966278165934464_c3626011-ee75-4907-8954-5996aa6973ee.webp?v=1714977343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6116ccb47054f1c5aa993269e38946b4a6e51e26_7a077a0f-c820-42b5-9435-17208748bac6.webp?v=1714977346"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf69a9a800b81c2fddc9747d6d9b81653604b44_f05d7d08-eff0-4c8a-906a-7eae76c490a0.webp?v=1714977323","options":["color"],"media":[{"alt":null,"id":23897266094179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf69a9a800b81c2fddc9747d6d9b81653604b44_f05d7d08-eff0-4c8a-906a-7eae76c490a0.webp?v=1714977323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf69a9a800b81c2fddc9747d6d9b81653604b44_f05d7d08-eff0-4c8a-906a-7eae76c490a0.webp?v=1714977323","width":2000},{"alt":null,"id":23897266716771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325","width":2000},{"alt":null,"id":23897267142755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c835c5c31d50eca98d1bd2b734ffe8194d9644b_95dd9b6e-f064-4b5e-9029-b298c741a144.webp?v=1714977328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c835c5c31d50eca98d1bd2b734ffe8194d9644b_95dd9b6e-f064-4b5e-9029-b298c741a144.webp?v=1714977328","width":2000},{"alt":null,"id":23897267634275,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a8438c078196daff99c0eaa6f91e7c173ec330_badba58b-b573-4c08-949e-a1367fbf8396.webp?v=1714977331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88a8438c078196daff99c0eaa6f91e7c173ec330_badba58b-b573-4c08-949e-a1367fbf8396.webp?v=1714977331","width":2000},{"alt":null,"id":23897267896419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab68bcbd22ff1809fd2ef42724917b6c6a76365_9c848eb5-117f-4af0-919c-808b296963f5.webp?v=1714977333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ab68bcbd22ff1809fd2ef42724917b6c6a76365_9c848eb5-117f-4af0-919c-808b296963f5.webp?v=1714977333","width":2000},{"alt":null,"id":23897268289635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256130ca07afaeea8035f3b4025c1f9f187d6503_d0dbf5c0-f56f-465e-a711-dc5e8f205fd9.webp?v=1714977335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/256130ca07afaeea8035f3b4025c1f9f187d6503_d0dbf5c0-f56f-465e-a711-dc5e8f205fd9.webp?v=1714977335","width":2000},{"alt":null,"id":23897268715619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940568e956def9f4b8ed31f0e24d0fb40cda380d_50830b76-41b7-4629-bde9-244a91c6227d.webp?v=1714977338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/940568e956def9f4b8ed31f0e24d0fb40cda380d_50830b76-41b7-4629-bde9-244a91c6227d.webp?v=1714977338","width":2000},{"alt":null,"id":23897269207139,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055d3b0a28244678c64161e20cea11ab8aba729e_acb556c5-4bf1-4c92-9a3b-734cada30ccf.webp?v=1714977341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055d3b0a28244678c64161e20cea11ab8aba729e_acb556c5-4bf1-4c92-9a3b-734cada30ccf.webp?v=1714977341","width":2000},{"alt":null,"id":23897269600355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceb5eef5ea7b02c8cc562bb5966278165934464_c3626011-ee75-4907-8954-5996aa6973ee.webp?v=1714977343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceb5eef5ea7b02c8cc562bb5966278165934464_c3626011-ee75-4907-8954-5996aa6973ee.webp?v=1714977343","width":2000},{"alt":null,"id":23897270091875,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6116ccb47054f1c5aa993269e38946b4a6e51e26_7a077a0f-c820-42b5-9435-17208748bac6.webp?v=1714977346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6116ccb47054f1c5aa993269e38946b4a6e51e26_7a077a0f-c820-42b5-9435-17208748bac6.webp?v=1714977346","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918545166435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31491853910115,"product_id":7416328126563,"position":2,"created_at":"2024-05-06T14:35:25+08:00","updated_at":"2024-05-06T14:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325","variant_ids":[41918545166435]},"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-PB18","featured_media":{"alt":null,"id":23897266716771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918545166435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31491853910115,"product_id":7416328126563,"position":2,"created_at":"2024-05-06T14:35:25+08:00","updated_at":"2024-05-06T14:35:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325","variant_ids":[41918545166435]},"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-PB18","featured_media":{"alt":null,"id":23897266716771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75e99bd730738da9509fcfaf2b50516e8f2773e9_bb9b9a5e-aa6d-47bb-9cf5-75bbe3e303b7.webp?v=1714977325"}},"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: "停產" }