$product = {"id":7416372723811,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-8-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:57:16+08:00","created_at":"2024-05-06T14:44:17+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":41919024726115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31491969286243,"product_id":7416372723811,"position":9,"created_at":"2024-05-06T14:44:40+08:00","updated_at":"2024-05-06T14:44:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880","variant_ids":[41919024726115]},"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-PB101","featured_media":{"alt":null,"id":23897382551651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c9266d01517a8f64eeede91fcd20d118c05b7a_5ebdafb5-5453-4456-8b50-07cfe9cf43e6.webp?v=1714977859","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e2f7057c5781344f7bb3fe440e89cf8a612705_85a56a13-7361-42d3-a8d1-0155d73af9b4.webp?v=1714977863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08fbe422dffb1fbc2ddf66f2685f1985949f11be_0aa66a9f-c115-4f6c-b8a3-f3259a3167d8.webp?v=1714977865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00d14fc69c3716970e586c016385823324ab822_c0a67a0c-6466-4787-84f5-1bcd51cec99a.webp?v=1714977868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f3f14f14c733ad5aae550e63d8a2a27bc11588_13228e0f-18f3-4835-8c21-1c9beb30c812.webp?v=1714977870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6bea858dd46cb4816ce1e117af15445b66e044_8158aa33-5049-47e0-9155-073e20766e9e.webp?v=1714977872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a0afc7a88c2b6cb6e0d5be871619d0e50831b2_c3630232-82a8-4d87-9065-70c7a53d058b.webp?v=1714977875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d07ecbd08bc5b48e2d405af2806cbfebb7506b8_616b55a5-717c-488a-ba97-eb7f11e6681f.webp?v=1714977877","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3218f50cd641d23f3b79a0f2f54feb38004b6260_bb0f3522-f963-4d6a-ab0c-f5e825f50269.webp?v=1714977882"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c9266d01517a8f64eeede91fcd20d118c05b7a_5ebdafb5-5453-4456-8b50-07cfe9cf43e6.webp?v=1714977859","options":["color"],"media":[{"alt":null,"id":23897379111011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c9266d01517a8f64eeede91fcd20d118c05b7a_5ebdafb5-5453-4456-8b50-07cfe9cf43e6.webp?v=1714977859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86c9266d01517a8f64eeede91fcd20d118c05b7a_5ebdafb5-5453-4456-8b50-07cfe9cf43e6.webp?v=1714977859","width":2000},{"alt":null,"id":23897379733603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e2f7057c5781344f7bb3fe440e89cf8a612705_85a56a13-7361-42d3-a8d1-0155d73af9b4.webp?v=1714977863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94e2f7057c5781344f7bb3fe440e89cf8a612705_85a56a13-7361-42d3-a8d1-0155d73af9b4.webp?v=1714977863","width":2000},{"alt":null,"id":23897380061283,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08fbe422dffb1fbc2ddf66f2685f1985949f11be_0aa66a9f-c115-4f6c-b8a3-f3259a3167d8.webp?v=1714977865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08fbe422dffb1fbc2ddf66f2685f1985949f11be_0aa66a9f-c115-4f6c-b8a3-f3259a3167d8.webp?v=1714977865","width":2000},{"alt":null,"id":23897380552803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00d14fc69c3716970e586c016385823324ab822_c0a67a0c-6466-4787-84f5-1bcd51cec99a.webp?v=1714977868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c00d14fc69c3716970e586c016385823324ab822_c0a67a0c-6466-4787-84f5-1bcd51cec99a.webp?v=1714977868","width":2000},{"alt":null,"id":23897381109859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f3f14f14c733ad5aae550e63d8a2a27bc11588_13228e0f-18f3-4835-8c21-1c9beb30c812.webp?v=1714977870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99f3f14f14c733ad5aae550e63d8a2a27bc11588_13228e0f-18f3-4835-8c21-1c9beb30c812.webp?v=1714977870","width":2000},{"alt":null,"id":23897381535843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6bea858dd46cb4816ce1e117af15445b66e044_8158aa33-5049-47e0-9155-073e20766e9e.webp?v=1714977872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e6bea858dd46cb4816ce1e117af15445b66e044_8158aa33-5049-47e0-9155-073e20766e9e.webp?v=1714977872","width":2000},{"alt":null,"id":23897381929059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a0afc7a88c2b6cb6e0d5be871619d0e50831b2_c3630232-82a8-4d87-9065-70c7a53d058b.webp?v=1714977875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a0afc7a88c2b6cb6e0d5be871619d0e50831b2_c3630232-82a8-4d87-9065-70c7a53d058b.webp?v=1714977875","width":2000},{"alt":null,"id":23897382289507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d07ecbd08bc5b48e2d405af2806cbfebb7506b8_616b55a5-717c-488a-ba97-eb7f11e6681f.webp?v=1714977877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d07ecbd08bc5b48e2d405af2806cbfebb7506b8_616b55a5-717c-488a-ba97-eb7f11e6681f.webp?v=1714977877","width":2000},{"alt":null,"id":23897382551651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880","width":2000},{"alt":null,"id":23897383305315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3218f50cd641d23f3b79a0f2f54feb38004b6260_bb0f3522-f963-4d6a-ab0c-f5e825f50269.webp?v=1714977882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3218f50cd641d23f3b79a0f2f54feb38004b6260_bb0f3522-f963-4d6a-ab0c-f5e825f50269.webp?v=1714977882","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919024726115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31491969286243,"product_id":7416372723811,"position":9,"created_at":"2024-05-06T14:44:40+08:00","updated_at":"2024-05-06T14:44:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880","variant_ids":[41919024726115]},"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-PB101","featured_media":{"alt":null,"id":23897382551651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919024726115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31491969286243,"product_id":7416372723811,"position":9,"created_at":"2024-05-06T14:44:40+08:00","updated_at":"2024-05-06T14:44:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880","variant_ids":[41919024726115]},"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-PB101","featured_media":{"alt":null,"id":23897382551651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58f11e4b84f212a03555dbd43e65e6d2530b897_1c1130a8-3381-427c-b50d-2c8a3b094e3f.webp?v=1714977880"}},"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: "停產" }