$product = {"id":7411280642147,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb62","description":null,"published_at":"2024-06-11T17:40:42+08:00","created_at":"2024-05-04T23:59:18+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41896900296803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31480038948963,"product_id":7411280642147,"position":10,"created_at":"2024-05-04T23:59:43+08:00","updated_at":"2024-05-04T23:59:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383","variant_ids":[41896900296803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB62","featured_media":{"alt":null,"id":23885289554019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dba7da918ce18bac0be323ab320d1cf3b79b1d_309fa09c-5a7d-48f3-a429-c0991827fd8b.webp?v=1714838361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568956a2260ae5acb5cf7c8b437ff912c6213ebe_64f20e4f-ef71-4d67-ba7b-cb319fe79842.webp?v=1714838363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83093ec002dfed30bad751bc56fc14f344fc687_2d4467c9-991e-4bf2-afc7-cc734cb11368.webp?v=1714838366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430cc5cf1e2db611b6d0fbbd5271a7157db90d68_4a859ecc-7c51-46bb-8552-b31ae8d04beb.webp?v=1714838368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470555f7eeda67ec09c6db3cb0cea575911257bb_644fe190-aa43-44a5-8369-95fdf6ac19d4.webp?v=1714838371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993d832855104cfe290eae8566d96f6b1e9bf94_10b1a83f-aa4e-4bf6-b940-c416656fa60e.webp?v=1714838373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7762b7818896c528dbf4318cc58cf402d60b68_2c99ac1d-0eee-4e85-b549-d5e3c66558fc.webp?v=1714838375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8910ff75094478c2ec07f4f076c1d2b7962600a3_050b2f72-0036-442b-bc64-b3cba1976589.webp?v=1714838378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091395289c47b6d1393755ec2e7bf3133ddbe639_6979398f-014b-4229-ac7f-ebe23b494319.webp?v=1714838380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dba7da918ce18bac0be323ab320d1cf3b79b1d_309fa09c-5a7d-48f3-a429-c0991827fd8b.webp?v=1714838361","options":["color"],"media":[{"alt":null,"id":23885284474979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dba7da918ce18bac0be323ab320d1cf3b79b1d_309fa09c-5a7d-48f3-a429-c0991827fd8b.webp?v=1714838361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30dba7da918ce18bac0be323ab320d1cf3b79b1d_309fa09c-5a7d-48f3-a429-c0991827fd8b.webp?v=1714838361","width":2000},{"alt":null,"id":23885285195875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568956a2260ae5acb5cf7c8b437ff912c6213ebe_64f20e4f-ef71-4d67-ba7b-cb319fe79842.webp?v=1714838363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/568956a2260ae5acb5cf7c8b437ff912c6213ebe_64f20e4f-ef71-4d67-ba7b-cb319fe79842.webp?v=1714838363","width":2000},{"alt":null,"id":23885285720163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83093ec002dfed30bad751bc56fc14f344fc687_2d4467c9-991e-4bf2-afc7-cc734cb11368.webp?v=1714838366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c83093ec002dfed30bad751bc56fc14f344fc687_2d4467c9-991e-4bf2-afc7-cc734cb11368.webp?v=1714838366","width":2000},{"alt":null,"id":23885286342755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430cc5cf1e2db611b6d0fbbd5271a7157db90d68_4a859ecc-7c51-46bb-8552-b31ae8d04beb.webp?v=1714838368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/430cc5cf1e2db611b6d0fbbd5271a7157db90d68_4a859ecc-7c51-46bb-8552-b31ae8d04beb.webp?v=1714838368","width":2000},{"alt":null,"id":23885286834275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470555f7eeda67ec09c6db3cb0cea575911257bb_644fe190-aa43-44a5-8369-95fdf6ac19d4.webp?v=1714838371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/470555f7eeda67ec09c6db3cb0cea575911257bb_644fe190-aa43-44a5-8369-95fdf6ac19d4.webp?v=1714838371","width":2000},{"alt":null,"id":23885287489635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993d832855104cfe290eae8566d96f6b1e9bf94_10b1a83f-aa4e-4bf6-b940-c416656fa60e.webp?v=1714838373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b993d832855104cfe290eae8566d96f6b1e9bf94_10b1a83f-aa4e-4bf6-b940-c416656fa60e.webp?v=1714838373","width":2000},{"alt":null,"id":23885288013923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7762b7818896c528dbf4318cc58cf402d60b68_2c99ac1d-0eee-4e85-b549-d5e3c66558fc.webp?v=1714838375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7762b7818896c528dbf4318cc58cf402d60b68_2c99ac1d-0eee-4e85-b549-d5e3c66558fc.webp?v=1714838375","width":2000},{"alt":null,"id":23885288472675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8910ff75094478c2ec07f4f076c1d2b7962600a3_050b2f72-0036-442b-bc64-b3cba1976589.webp?v=1714838378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8910ff75094478c2ec07f4f076c1d2b7962600a3_050b2f72-0036-442b-bc64-b3cba1976589.webp?v=1714838378","width":2000},{"alt":null,"id":23885289062499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091395289c47b6d1393755ec2e7bf3133ddbe639_6979398f-014b-4229-ac7f-ebe23b494319.webp?v=1714838380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/091395289c47b6d1393755ec2e7bf3133ddbe639_6979398f-014b-4229-ac7f-ebe23b494319.webp?v=1714838380","width":2000},{"alt":null,"id":23885289554019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896900296803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31480038948963,"product_id":7411280642147,"position":10,"created_at":"2024-05-04T23:59:43+08:00","updated_at":"2024-05-04T23:59:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383","variant_ids":[41896900296803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB62","featured_media":{"alt":null,"id":23885289554019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896900296803,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31480038948963,"product_id":7411280642147,"position":10,"created_at":"2024-05-04T23:59:43+08:00","updated_at":"2024-05-04T23:59:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383","variant_ids":[41896900296803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB62","featured_media":{"alt":null,"id":23885289554019,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3831a1ed0086bb47706d3a3ace6490fd92ee641b_6d5fee99-3ca4-46b0-919a-28520d8945ee.webp?v=1714838383"}},"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: "停產" }