$product = {"id":7411216679011,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb35","description":null,"published_at":"2024-06-11T17:39:01+08:00","created_at":"2024-05-04T23:47:14+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":41896104231011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872454755,"product_id":7411216679011,"position":3,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640","variant_ids":[41896104231011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23885122895971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09736543876ab7f354bb284493bfbefcd353e493_f760a0aa-7dbf-43b7-87a5-99762ef8d37a.webp?v=1714837636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122825ba68385e902f57c053f55528e96b6940fa_d20a8918-5d31-45fd-9139-b80d5070394b.webp?v=1714837638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5a0d7a5f54a87b519735f3814ead9d8ea40216_5dd7e8d7-3484-41f6-b493-72cd2ce62c1c.webp?v=1714837643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28c7e35f02c569b3cbe8f78b05ee5bb8197ff08_2fabc83a-6e75-45fd-98c3-cc4b37e67ed2.webp?v=1714837645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc3fd5a386ac6aa026a26a4f11d600fc4f2cb47_954d9a11-d045-413f-a187-eecdc614082c.webp?v=1714837647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f866688f4c2f48d855c9254728f83a587a4cf9f_a4d239d9-daa6-4fb9-9b13-89e7347ff0af.webp?v=1714837650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e36401e7a95feff7039beb5708c707e11e8fc1ed_0afb5d36-bf5d-4a76-a6d5-4550f00550dd.webp?v=1714837652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc231a36a72ba99650f022fd98e842816359a57_22d69525-f3ce-4c39-9eb0-54216c774f93.webp?v=1714837654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/995e8c63399d26348b2b8c2c375f13fe1a4ea19b_92175c54-774c-4512-b41e-26897d5ab7dc.webp?v=1714837656"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09736543876ab7f354bb284493bfbefcd353e493_f760a0aa-7dbf-43b7-87a5-99762ef8d37a.webp?v=1714837636","options":["color"],"media":[{"alt":null,"id":23885121880163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09736543876ab7f354bb284493bfbefcd353e493_f760a0aa-7dbf-43b7-87a5-99762ef8d37a.webp?v=1714837636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09736543876ab7f354bb284493bfbefcd353e493_f760a0aa-7dbf-43b7-87a5-99762ef8d37a.webp?v=1714837636","width":2000},{"alt":null,"id":23885122371683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122825ba68385e902f57c053f55528e96b6940fa_d20a8918-5d31-45fd-9139-b80d5070394b.webp?v=1714837638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122825ba68385e902f57c053f55528e96b6940fa_d20a8918-5d31-45fd-9139-b80d5070394b.webp?v=1714837638","width":2000},{"alt":null,"id":23885122895971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640","width":2000},{"alt":null,"id":23885123354723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5a0d7a5f54a87b519735f3814ead9d8ea40216_5dd7e8d7-3484-41f6-b493-72cd2ce62c1c.webp?v=1714837643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a5a0d7a5f54a87b519735f3814ead9d8ea40216_5dd7e8d7-3484-41f6-b493-72cd2ce62c1c.webp?v=1714837643","width":2000},{"alt":null,"id":23885124010083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28c7e35f02c569b3cbe8f78b05ee5bb8197ff08_2fabc83a-6e75-45fd-98c3-cc4b37e67ed2.webp?v=1714837645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a28c7e35f02c569b3cbe8f78b05ee5bb8197ff08_2fabc83a-6e75-45fd-98c3-cc4b37e67ed2.webp?v=1714837645","width":2000},{"alt":null,"id":23885124534371,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc3fd5a386ac6aa026a26a4f11d600fc4f2cb47_954d9a11-d045-413f-a187-eecdc614082c.webp?v=1714837647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edc3fd5a386ac6aa026a26a4f11d600fc4f2cb47_954d9a11-d045-413f-a187-eecdc614082c.webp?v=1714837647","width":2000},{"alt":null,"id":23885125091427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f866688f4c2f48d855c9254728f83a587a4cf9f_a4d239d9-daa6-4fb9-9b13-89e7347ff0af.webp?v=1714837650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f866688f4c2f48d855c9254728f83a587a4cf9f_a4d239d9-daa6-4fb9-9b13-89e7347ff0af.webp?v=1714837650","width":2000},{"alt":null,"id":23885125714019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e36401e7a95feff7039beb5708c707e11e8fc1ed_0afb5d36-bf5d-4a76-a6d5-4550f00550dd.webp?v=1714837652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e36401e7a95feff7039beb5708c707e11e8fc1ed_0afb5d36-bf5d-4a76-a6d5-4550f00550dd.webp?v=1714837652","width":2000},{"alt":null,"id":23885126140003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc231a36a72ba99650f022fd98e842816359a57_22d69525-f3ce-4c39-9eb0-54216c774f93.webp?v=1714837654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6dc231a36a72ba99650f022fd98e842816359a57_22d69525-f3ce-4c39-9eb0-54216c774f93.webp?v=1714837654","width":2000},{"alt":null,"id":23885126598755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/995e8c63399d26348b2b8c2c375f13fe1a4ea19b_92175c54-774c-4512-b41e-26897d5ab7dc.webp?v=1714837656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/995e8c63399d26348b2b8c2c375f13fe1a4ea19b_92175c54-774c-4512-b41e-26897d5ab7dc.webp?v=1714837656","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896104231011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872454755,"product_id":7411216679011,"position":3,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640","variant_ids":[41896104231011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23885122895971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896104231011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB35","requires_shipping":true,"taxable":true,"featured_image":{"id":31479872454755,"product_id":7411216679011,"position":3,"created_at":"2024-05-04T23:47:20+08:00","updated_at":"2024-05-04T23:47:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640","variant_ids":[41896104231011]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 爪哇族1-塗鴉藝術 - 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-PB35","featured_media":{"alt":null,"id":23885122895971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab78266731d0ed095cb6ae4263014a82ee51833_a431a442-383c-400d-8a0a-4209beaabfb9.webp?v=1714837640"}},"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: "停產" }