$product = {"id":7407765848163,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-14-plus-mod-nx-printable-pb46","description":null,"published_at":"2024-06-11T16:22:56+08:00","created_at":"2024-05-03T10:49:25+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 14 Plus","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":41878579019875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31470347583587,"product_id":7407765848163,"position":6,"created_at":"2024-05-03T10:49:40+08:00","updated_at":"2024-05-03T10:49:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580","variant_ids":[41878579019875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0126124-PB46","featured_media":{"alt":null,"id":23875250749539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca1e57177f46b56d362d3b38e4bf0af1f9aabae_4f253ad9-d6f5-4a52-97c1-a4308262c891.webp?v=1714704567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c234665ae2caadd4f4d82ba8a418687096a1fcaf_994e6534-8da4-42a4-a498-b1b4be263525.webp?v=1714704570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f93f59028853e8845edeee1057b38464c6b09fa_a696a2b6-033f-424e-855a-e373168f2175.webp?v=1714704573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/913389b77dd2c1c327b7eddd7da8b7b3d43b7b38_1bed0017-6ed1-45a1-848a-af1f9404c1aa.webp?v=1714704575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b4e3011125da7a51be074eb92baf139201023e_b9fdb4e2-7b05-403e-aa2b-3bed0beb47ab.webp?v=1714704577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22b49702a8867a3531cfa2d271ff47c9a05733a_09109b6d-f0e0-47e4-8163-2c65b0e03714.webp?v=1714704582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f77bb08f2cc60e2b509f4a34e4658473f7f9a0_7f525d63-23ce-4769-b3e1-a4c33e7f4636.webp?v=1714704585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5bec6b270a274265aa5d5fe7d1d04c2b11f0a_e254f0fb-be5f-4fe0-9d1a-376eb92d3a6b.webp?v=1714704587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31feafbe384ed4535f6473b3febda7f2c32b5570_5d894ea5-9abe-4ccf-a771-e673f898959f.webp?v=1714704590"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca1e57177f46b56d362d3b38e4bf0af1f9aabae_4f253ad9-d6f5-4a52-97c1-a4308262c891.webp?v=1714704567","options":["color"],"media":[{"alt":null,"id":23875247702115,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca1e57177f46b56d362d3b38e4bf0af1f9aabae_4f253ad9-d6f5-4a52-97c1-a4308262c891.webp?v=1714704567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ca1e57177f46b56d362d3b38e4bf0af1f9aabae_4f253ad9-d6f5-4a52-97c1-a4308262c891.webp?v=1714704567","width":2000},{"alt":null,"id":23875248488547,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c234665ae2caadd4f4d82ba8a418687096a1fcaf_994e6534-8da4-42a4-a498-b1b4be263525.webp?v=1714704570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c234665ae2caadd4f4d82ba8a418687096a1fcaf_994e6534-8da4-42a4-a498-b1b4be263525.webp?v=1714704570","width":2000},{"alt":null,"id":23875249012835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f93f59028853e8845edeee1057b38464c6b09fa_a696a2b6-033f-424e-855a-e373168f2175.webp?v=1714704573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f93f59028853e8845edeee1057b38464c6b09fa_a696a2b6-033f-424e-855a-e373168f2175.webp?v=1714704573","width":2000},{"alt":null,"id":23875249406051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/913389b77dd2c1c327b7eddd7da8b7b3d43b7b38_1bed0017-6ed1-45a1-848a-af1f9404c1aa.webp?v=1714704575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/913389b77dd2c1c327b7eddd7da8b7b3d43b7b38_1bed0017-6ed1-45a1-848a-af1f9404c1aa.webp?v=1714704575","width":2000},{"alt":null,"id":23875250126947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b4e3011125da7a51be074eb92baf139201023e_b9fdb4e2-7b05-403e-aa2b-3bed0beb47ab.webp?v=1714704577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b4e3011125da7a51be074eb92baf139201023e_b9fdb4e2-7b05-403e-aa2b-3bed0beb47ab.webp?v=1714704577","width":2000},{"alt":null,"id":23875250749539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580","width":2000},{"alt":null,"id":23875251208291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22b49702a8867a3531cfa2d271ff47c9a05733a_09109b6d-f0e0-47e4-8163-2c65b0e03714.webp?v=1714704582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22b49702a8867a3531cfa2d271ff47c9a05733a_09109b6d-f0e0-47e4-8163-2c65b0e03714.webp?v=1714704582","width":2000},{"alt":null,"id":23875251863651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f77bb08f2cc60e2b509f4a34e4658473f7f9a0_7f525d63-23ce-4769-b3e1-a4c33e7f4636.webp?v=1714704585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f77bb08f2cc60e2b509f4a34e4658473f7f9a0_7f525d63-23ce-4769-b3e1-a4c33e7f4636.webp?v=1714704585","width":2000},{"alt":null,"id":23875252813923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5bec6b270a274265aa5d5fe7d1d04c2b11f0a_e254f0fb-be5f-4fe0-9d1a-376eb92d3a6b.webp?v=1714704587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb5bec6b270a274265aa5d5fe7d1d04c2b11f0a_e254f0fb-be5f-4fe0-9d1a-376eb92d3a6b.webp?v=1714704587","width":2000},{"alt":null,"id":23875253272675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31feafbe384ed4535f6473b3febda7f2c32b5570_5d894ea5-9abe-4ccf-a771-e673f898959f.webp?v=1714704590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31feafbe384ed4535f6473b3febda7f2c32b5570_5d894ea5-9abe-4ccf-a771-e673f898959f.webp?v=1714704590","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878579019875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31470347583587,"product_id":7407765848163,"position":6,"created_at":"2024-05-03T10:49:40+08:00","updated_at":"2024-05-03T10:49:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580","variant_ids":[41878579019875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0126124-PB46","featured_media":{"alt":null,"id":23875250749539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878579019875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31470347583587,"product_id":7407765848163,"position":6,"created_at":"2024-05-03T10:49:40+08:00","updated_at":"2024-05-03T10:49:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580","variant_ids":[41878579019875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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":"NPB0126124-PB46","featured_media":{"alt":null,"id":23875250749539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/348d0b8691caf015b5b926e7f0700c01c2690b21_fcb646a2-bbb3-4be6-a166-cb5d1a1d8b0e.webp?v=1714704580"}},"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: "停產" }