$product = {"id":7415090708579,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-12-mini-mod-nx-magsafe-printable-hq01","description":null,"published_at":"2024-06-11T17:57:43+08:00","created_at":"2024-05-05T20:21:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41911767892067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488137461859,"product_id":7415090708579,"position":9,"created_at":"2024-05-05T20:21:21+08:00","updated_at":"2024-05-05T20:21:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681","variant_ids":[41911767892067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HQ01","featured_media":{"alt":null,"id":23893482012771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187ff927c6b3ce04f372e2ebae1dfce79a079c04_9c949d9a-5b0d-49ae-b992-23dd0018d42a.webp?v=1714911663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63fc0784de06c372c6ad366c79015acf5a4b00fc_e07aea78-34c9-4696-8ff4-8913aeeb8c22.webp?v=1714911665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43fc67ca719db396fb4a2fc1ead27e75c9f8ba2_ee8f10c9-1ef6-43b1-8ee3-118aa35d592b.webp?v=1714911667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6aba8c270384c2a30043ff3f249397a833b9b83_f005d0be-6c0d-43b3-becc-607699d3de8c.webp?v=1714911670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5568614642e78967d11a7030f4786dc887ee6a_1d4e4021-84f7-4438-b7b5-dc349198d4ec.webp?v=1714911672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f0d25a65a6e9971d075f1b10da3bc260961ec1_8d430d00-3335-4eaf-942f-c0b84b3b6d27.webp?v=1714911674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160c41d93cf70b3c49d6fa10759c850f0b791539_b3d4d60f-352b-4689-ab6f-7611a39bdb41.webp?v=1714911676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d314b23ea3245ac775ca959d19abccbacd309a2_241291da-f30c-4eea-8365-271c239d867a.webp?v=1714911679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e870224809e4d3fa7289a790a7b6855f59b390_895d400f-9599-4d3e-ad9c-d112ad42bed7.webp?v=1714911683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee27319da215f7a392a9218c7490a46ccc0c13a_9f79bb37-0e8b-49be-b2f2-e220b4c46b02.webp?v=1714911685"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187ff927c6b3ce04f372e2ebae1dfce79a079c04_9c949d9a-5b0d-49ae-b992-23dd0018d42a.webp?v=1714911663","options":["color"],"media":[{"alt":null,"id":23893477392483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187ff927c6b3ce04f372e2ebae1dfce79a079c04_9c949d9a-5b0d-49ae-b992-23dd0018d42a.webp?v=1714911663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/187ff927c6b3ce04f372e2ebae1dfce79a079c04_9c949d9a-5b0d-49ae-b992-23dd0018d42a.webp?v=1714911663","width":2000},{"alt":null,"id":23893478178915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63fc0784de06c372c6ad366c79015acf5a4b00fc_e07aea78-34c9-4696-8ff4-8913aeeb8c22.webp?v=1714911665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63fc0784de06c372c6ad366c79015acf5a4b00fc_e07aea78-34c9-4696-8ff4-8913aeeb8c22.webp?v=1714911665","width":2000},{"alt":null,"id":23893478703203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43fc67ca719db396fb4a2fc1ead27e75c9f8ba2_ee8f10c9-1ef6-43b1-8ee3-118aa35d592b.webp?v=1714911667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f43fc67ca719db396fb4a2fc1ead27e75c9f8ba2_ee8f10c9-1ef6-43b1-8ee3-118aa35d592b.webp?v=1714911667","width":2000},{"alt":null,"id":23893479030883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6aba8c270384c2a30043ff3f249397a833b9b83_f005d0be-6c0d-43b3-becc-607699d3de8c.webp?v=1714911670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6aba8c270384c2a30043ff3f249397a833b9b83_f005d0be-6c0d-43b3-becc-607699d3de8c.webp?v=1714911670","width":2000},{"alt":null,"id":23893479456867,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5568614642e78967d11a7030f4786dc887ee6a_1d4e4021-84f7-4438-b7b5-dc349198d4ec.webp?v=1714911672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db5568614642e78967d11a7030f4786dc887ee6a_1d4e4021-84f7-4438-b7b5-dc349198d4ec.webp?v=1714911672","width":2000},{"alt":null,"id":23893480112227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f0d25a65a6e9971d075f1b10da3bc260961ec1_8d430d00-3335-4eaf-942f-c0b84b3b6d27.webp?v=1714911674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76f0d25a65a6e9971d075f1b10da3bc260961ec1_8d430d00-3335-4eaf-942f-c0b84b3b6d27.webp?v=1714911674","width":2000},{"alt":null,"id":23893480570979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160c41d93cf70b3c49d6fa10759c850f0b791539_b3d4d60f-352b-4689-ab6f-7611a39bdb41.webp?v=1714911676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160c41d93cf70b3c49d6fa10759c850f0b791539_b3d4d60f-352b-4689-ab6f-7611a39bdb41.webp?v=1714911676","width":2000},{"alt":null,"id":23893481193571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d314b23ea3245ac775ca959d19abccbacd309a2_241291da-f30c-4eea-8365-271c239d867a.webp?v=1714911679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d314b23ea3245ac775ca959d19abccbacd309a2_241291da-f30c-4eea-8365-271c239d867a.webp?v=1714911679","width":2000},{"alt":null,"id":23893482012771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681","width":2000},{"alt":null,"id":23893482766435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e870224809e4d3fa7289a790a7b6855f59b390_895d400f-9599-4d3e-ad9c-d112ad42bed7.webp?v=1714911683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22e870224809e4d3fa7289a790a7b6855f59b390_895d400f-9599-4d3e-ad9c-d112ad42bed7.webp?v=1714911683","width":2000},{"alt":null,"id":23893483159651,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee27319da215f7a392a9218c7490a46ccc0c13a_9f79bb37-0e8b-49be-b2f2-e220b4c46b02.webp?v=1714911685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eee27319da215f7a392a9218c7490a46ccc0c13a_9f79bb37-0e8b-49be-b2f2-e220b4c46b02.webp?v=1714911685","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911767892067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488137461859,"product_id":7415090708579,"position":9,"created_at":"2024-05-05T20:21:21+08:00","updated_at":"2024-05-05T20:21:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681","variant_ids":[41911767892067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HQ01","featured_media":{"alt":null,"id":23893482012771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911767892067,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31488137461859,"product_id":7415090708579,"position":9,"created_at":"2024-05-05T20:21:21+08:00","updated_at":"2024-05-05T20:21:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681","variant_ids":[41911767892067]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118424-HQ01","featured_media":{"alt":null,"id":23893482012771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa18e59692a009d79693c9ff45622567d6ae5e26_635e0556-a20f-4ee6-9a42-33d4acfb1182.webp?v=1714911681"}},"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: "停產" }