$product = {"id":7415008591971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb85","description":null,"published_at":"2024-06-11T17:55:30+08:00","created_at":"2024-05-05T20:05:23+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 12 mini","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":41910894919779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31487912476771,"product_id":7415008591971,"position":7,"created_at":"2024-05-05T20:05:40+08:00","updated_at":"2024-05-05T20:05:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740","variant_ids":[41910894919779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"MPB0118424-PB85","featured_media":{"alt":null,"id":23893256601699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7b30753694a50d86a1cac916774446eb4330bf_b7879dd6-6400-4f1e-9935-d18e4e8df18a.webp?v=1714910725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52032ce661ac8d692c23ed6f454ea41e66f57ac_57262286-bed2-47eb-aeff-0119fbbf27cb.webp?v=1714910728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e149bd60fc65cc56fb51aca83f71932807ac32_db065ed1-5be1-428f-8c11-4657c675cb55.webp?v=1714910730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d815382b791b949ade87cea1f6934355c9ee7f0_52c8cf37-d7dd-465c-b8d3-856500cff28f.webp?v=1714910732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/570d381d483bfadf1e4acd59c76d6a4579938d59_70ac0b01-715b-4325-a221-c62708185c3c.webp?v=1714910735","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3681b0aa6e6a416fdb94dc6d34a3faf32d9369_ea7de192-9a2f-4ec0-863c-ac932ba8822a.webp?v=1714910737","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ea67a6b2b1258e3094010b6e6f507a1b61609e_578ffb3a-7024-4f15-b3d4-b82cd2c9335e.webp?v=1714910742","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a4810dd443fb68190685b6f2946ead5927ea9e_0eecb3a0-7826-412a-885d-dba09c930e65.webp?v=1714910744","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2febea0ccfe253048c2db53b412eaa9a1ef7c_3bf5858a-fe18-42a7-869f-8412f555c396.webp?v=1714910747","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49196f8625550e5c7471c7153e4ad5b8e90f5e73_3fcb2218-fef9-47d5-a49d-253cbc847780.webp?v=1714910749"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7b30753694a50d86a1cac916774446eb4330bf_b7879dd6-6400-4f1e-9935-d18e4e8df18a.webp?v=1714910725","options":["color"],"media":[{"alt":null,"id":23893253455971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7b30753694a50d86a1cac916774446eb4330bf_b7879dd6-6400-4f1e-9935-d18e4e8df18a.webp?v=1714910725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7b30753694a50d86a1cac916774446eb4330bf_b7879dd6-6400-4f1e-9935-d18e4e8df18a.webp?v=1714910725","width":2000},{"alt":null,"id":23893254078563,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52032ce661ac8d692c23ed6f454ea41e66f57ac_57262286-bed2-47eb-aeff-0119fbbf27cb.webp?v=1714910728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c52032ce661ac8d692c23ed6f454ea41e66f57ac_57262286-bed2-47eb-aeff-0119fbbf27cb.webp?v=1714910728","width":2000},{"alt":null,"id":23893254635619,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e149bd60fc65cc56fb51aca83f71932807ac32_db065ed1-5be1-428f-8c11-4657c675cb55.webp?v=1714910730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2e149bd60fc65cc56fb51aca83f71932807ac32_db065ed1-5be1-428f-8c11-4657c675cb55.webp?v=1714910730","width":2000},{"alt":null,"id":23893255290979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d815382b791b949ade87cea1f6934355c9ee7f0_52c8cf37-d7dd-465c-b8d3-856500cff28f.webp?v=1714910732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d815382b791b949ade87cea1f6934355c9ee7f0_52c8cf37-d7dd-465c-b8d3-856500cff28f.webp?v=1714910732","width":2000},{"alt":null,"id":23893255585891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/570d381d483bfadf1e4acd59c76d6a4579938d59_70ac0b01-715b-4325-a221-c62708185c3c.webp?v=1714910735"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/570d381d483bfadf1e4acd59c76d6a4579938d59_70ac0b01-715b-4325-a221-c62708185c3c.webp?v=1714910735","width":2000},{"alt":null,"id":23893256175715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3681b0aa6e6a416fdb94dc6d34a3faf32d9369_ea7de192-9a2f-4ec0-863c-ac932ba8822a.webp?v=1714910737"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d3681b0aa6e6a416fdb94dc6d34a3faf32d9369_ea7de192-9a2f-4ec0-863c-ac932ba8822a.webp?v=1714910737","width":2000},{"alt":null,"id":23893256601699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740","width":2000},{"alt":null,"id":23893257453667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ea67a6b2b1258e3094010b6e6f507a1b61609e_578ffb3a-7024-4f15-b3d4-b82cd2c9335e.webp?v=1714910742"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4ea67a6b2b1258e3094010b6e6f507a1b61609e_578ffb3a-7024-4f15-b3d4-b82cd2c9335e.webp?v=1714910742","width":2000},{"alt":null,"id":23893257879651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a4810dd443fb68190685b6f2946ead5927ea9e_0eecb3a0-7826-412a-885d-dba09c930e65.webp?v=1714910744"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/86a4810dd443fb68190685b6f2946ead5927ea9e_0eecb3a0-7826-412a-885d-dba09c930e65.webp?v=1714910744","width":2000},{"alt":null,"id":23893258567779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2febea0ccfe253048c2db53b412eaa9a1ef7c_3bf5858a-fe18-42a7-869f-8412f555c396.webp?v=1714910747"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb2febea0ccfe253048c2db53b412eaa9a1ef7c_3bf5858a-fe18-42a7-869f-8412f555c396.webp?v=1714910747","width":2000},{"alt":null,"id":23893258960995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49196f8625550e5c7471c7153e4ad5b8e90f5e73_3fcb2218-fef9-47d5-a49d-253cbc847780.webp?v=1714910749"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49196f8625550e5c7471c7153e4ad5b8e90f5e73_3fcb2218-fef9-47d5-a49d-253cbc847780.webp?v=1714910749","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910894919779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31487912476771,"product_id":7415008591971,"position":7,"created_at":"2024-05-05T20:05:40+08:00","updated_at":"2024-05-05T20:05:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740","variant_ids":[41910894919779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"MPB0118424-PB85","featured_media":{"alt":null,"id":23893256601699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910894919779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB85","requires_shipping":true,"taxable":true,"featured_image":{"id":31487912476771,"product_id":7415008591971,"position":7,"created_at":"2024-05-05T20:05:40+08:00","updated_at":"2024-05-05T20:05:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740","variant_ids":[41910894919779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - Spaceships-漫畫系列 - 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":"MPB0118424-PB85","featured_media":{"alt":null,"id":23893256601699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6854dccc191dfc8b1570b376566c779548a90384_0b3ce050-6761-4c55-99a4-13eac7badb82.webp?v=1714910740"}},"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: "停產" }