$product = {"id":7414416605283,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-ae02","description":null,"published_at":"2024-06-11T17:51:11+08:00","created_at":"2024-05-05T14:24:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 Pro Max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41906350850147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485424468067,"product_id":7414416605283,"position":11,"created_at":"2024-05-05T14:25:13+08:00","updated_at":"2024-05-05T14:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313","variant_ids":[41906350850147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮) - 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":"MPB0123224-AE02","featured_media":{"alt":null,"id":23890741952611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906351472739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485414965347,"product_id":7414416605283,"position":8,"created_at":"2024-05-05T14:25:06+08:00","updated_at":"2024-05-05T14:25:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306","variant_ids":[41906351472739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮) - 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":"MPB01232J5-AE02","featured_media":{"alt":null,"id":23890732187747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf81e0ac4b67a0c1eec2d9fc34d393016a5754c_f2607285-7d9a-41ee-8823-9b9e50b5438a.webp?v=1714890289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb4264509ff87603e5167c373c91ed13289711b_4df0ce77-f9ca-4f00-919d-919a3188f335.webp?v=1714890291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6357fe598b608a03b4024c14d2f98d76bc690667_1ea7c69a-1e85-4322-b485-77a34ca9167d.webp?v=1714890293","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/249184d1fad386f24e363491cdb044c5097a4668_ed11c508-db3e-4f8b-9326-b9e551ac33fa.webp?v=1714890296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d146b101db55e43fbdc629309fa2c5fb21cb4c_ffa5c0eb-f0a0-472b-8189-58866bbeddd5.webp?v=1714890298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34738216f7d4bb4ef19bb97894311376a2637ec_968ce427-5df3-4a32-9da3-1a32ef6fa5fd.webp?v=1714890301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c788cfef2b348ef26552e98e7dfa22355b0203a5_be8d1771-f624-4365-af9d-6c3130eda776.webp?v=1714890303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf1f02db71bce8be7b5be94bfd591e0e9bdc5bb6_aa814815-ae09-497b-a7f4-8c30ef718cab.webp?v=1714890308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c7fc5d3e3e485c0f8e828f2fdcd8fe4f0d3bbb_5da66a1e-18ae-438e-8ab9-f64e388bcd50.webp?v=1714890310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf81e0ac4b67a0c1eec2d9fc34d393016a5754c_f2607285-7d9a-41ee-8823-9b9e50b5438a.webp?v=1714890289","options":["color"],"media":[{"alt":null,"id":23890707710051,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf81e0ac4b67a0c1eec2d9fc34d393016a5754c_f2607285-7d9a-41ee-8823-9b9e50b5438a.webp?v=1714890289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6bf81e0ac4b67a0c1eec2d9fc34d393016a5754c_f2607285-7d9a-41ee-8823-9b9e50b5438a.webp?v=1714890289","width":2000},{"alt":null,"id":23890711183459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb4264509ff87603e5167c373c91ed13289711b_4df0ce77-f9ca-4f00-919d-919a3188f335.webp?v=1714890291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4bb4264509ff87603e5167c373c91ed13289711b_4df0ce77-f9ca-4f00-919d-919a3188f335.webp?v=1714890291","width":2000},{"alt":null,"id":23890714591331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6357fe598b608a03b4024c14d2f98d76bc690667_1ea7c69a-1e85-4322-b485-77a34ca9167d.webp?v=1714890293"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6357fe598b608a03b4024c14d2f98d76bc690667_1ea7c69a-1e85-4322-b485-77a34ca9167d.webp?v=1714890293","width":2000},{"alt":null,"id":23890718294115,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/249184d1fad386f24e363491cdb044c5097a4668_ed11c508-db3e-4f8b-9326-b9e551ac33fa.webp?v=1714890296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/249184d1fad386f24e363491cdb044c5097a4668_ed11c508-db3e-4f8b-9326-b9e551ac33fa.webp?v=1714890296","width":2000},{"alt":null,"id":23890721734755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d146b101db55e43fbdc629309fa2c5fb21cb4c_ffa5c0eb-f0a0-472b-8189-58866bbeddd5.webp?v=1714890298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8d146b101db55e43fbdc629309fa2c5fb21cb4c_ffa5c0eb-f0a0-472b-8189-58866bbeddd5.webp?v=1714890298","width":2000},{"alt":null,"id":23890725470307,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34738216f7d4bb4ef19bb97894311376a2637ec_968ce427-5df3-4a32-9da3-1a32ef6fa5fd.webp?v=1714890301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e34738216f7d4bb4ef19bb97894311376a2637ec_968ce427-5df3-4a32-9da3-1a32ef6fa5fd.webp?v=1714890301","width":2000},{"alt":null,"id":23890728812643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c788cfef2b348ef26552e98e7dfa22355b0203a5_be8d1771-f624-4365-af9d-6c3130eda776.webp?v=1714890303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c788cfef2b348ef26552e98e7dfa22355b0203a5_be8d1771-f624-4365-af9d-6c3130eda776.webp?v=1714890303","width":2000},{"alt":null,"id":23890732187747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306","width":2000},{"alt":null,"id":23890735399011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf1f02db71bce8be7b5be94bfd591e0e9bdc5bb6_aa814815-ae09-497b-a7f4-8c30ef718cab.webp?v=1714890308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf1f02db71bce8be7b5be94bfd591e0e9bdc5bb6_aa814815-ae09-497b-a7f4-8c30ef718cab.webp?v=1714890308","width":2000},{"alt":null,"id":23890738741347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c7fc5d3e3e485c0f8e828f2fdcd8fe4f0d3bbb_5da66a1e-18ae-438e-8ab9-f64e388bcd50.webp?v=1714890310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53c7fc5d3e3e485c0f8e828f2fdcd8fe4f0d3bbb_5da66a1e-18ae-438e-8ab9-f64e388bcd50.webp?v=1714890310","width":2000},{"alt":null,"id":23890741952611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906350850147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485424468067,"product_id":7414416605283,"position":11,"created_at":"2024-05-05T14:25:13+08:00","updated_at":"2024-05-05T14:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313","variant_ids":[41906350850147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮) - 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":"MPB0123224-AE02","featured_media":{"alt":null,"id":23890741952611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906351472739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485414965347,"product_id":7414416605283,"position":8,"created_at":"2024-05-05T14:25:06+08:00","updated_at":"2024-05-05T14:25:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306","variant_ids":[41906351472739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮) - 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":"MPB01232J5-AE02","featured_media":{"alt":null,"id":23890732187747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc16588393d49bb09974de31e3e84c96b172687_75cde11b-a617-4b0f-b22a-378874aec7da.webp?v=1714890306"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906350850147,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485424468067,"product_id":7414416605283,"position":11,"created_at":"2024-05-05T14:25:13+08:00","updated_at":"2024-05-05T14:25:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313","variant_ids":[41906350850147]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 願傷疤開花(花蓮) - 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":"MPB0123224-AE02","featured_media":{"alt":null,"id":23890741952611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defd729d41b06ca2ffbfc3ac0f56f7666a7eaa9c_ec5f1f3f-97b6-4506-aa6e-f55f569301c0.webp?v=1714890313"}},"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: "停產" }