$product = {"id":7413960114275,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb01","description":null,"published_at":"2024-06-11T17:46:12+08:00","created_at":"2024-05-05T13:50:39+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41902714486883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484329623651,"product_id":7413960114275,"position":7,"created_at":"2024-05-05T13:50:55+08:00","updated_at":"2024-05-05T13:50:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255","variant_ids":[41902714486883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個 - 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":"MPB0123224-YB01","featured_media":{"alt":null,"id":23889623285859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902714814563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484327002211,"product_id":7413960114275,"position":5,"created_at":"2024-05-05T13:50:51+08:00","updated_at":"2024-05-05T13:50:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251","variant_ids":[41902714814563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個 - 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":"MPB01232J5-YB01","featured_media":{"alt":null,"id":23889620074595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b6c80571945ab3f17058fe63caab2d40a243fb_1ddacc1f-86fd-4d69-81d5-d7af01d64377.webp?v=1714888241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e95c09e102aaaf430476ffacb6262bde4951d7a_3e551981-8317-4ca4-bd7a-83b00d27e7b7.webp?v=1714888244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d152590856543557e24df8d5b27892717ec88f_81120b8a-dae9-411f-8a38-36f450265aea.webp?v=1714888246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39009f8e114a5db9b12a594df0c47fa88adf197_05df4f29-9a31-47ae-8317-cc1117571d81.webp?v=1714888248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a3f85f0bd3b124731a5b125b38026c217f3e8bb_f3413864-431b-418f-a4a0-dd14080eb9e0.webp?v=1714888253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d052e091b0a0b4b533f4ad4d5e070d7ef1e1f17_4df48622-dc90-43ee-8db3-ff82940d1af2.webp?v=1714888258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99f10100cd91e818b83edfb21fd535ec61a347_1c6cd734-4c42-400f-94ae-802a4d5e0c72.webp?v=1714888260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0a46e2563be3ea54151a080a34f51d58d4084b_eeec6a76-a6da-44d7-9c47-edd09e59a502.webp?v=1714888263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac686b4f557d205b6aef86aaf92c5bac79cc3aa3_6ccda1de-b15a-47e0-910f-5b7b3c42b3e7.webp?v=1714888265"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b6c80571945ab3f17058fe63caab2d40a243fb_1ddacc1f-86fd-4d69-81d5-d7af01d64377.webp?v=1714888241","options":["color"],"media":[{"alt":null,"id":23889618370659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b6c80571945ab3f17058fe63caab2d40a243fb_1ddacc1f-86fd-4d69-81d5-d7af01d64377.webp?v=1714888241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b6c80571945ab3f17058fe63caab2d40a243fb_1ddacc1f-86fd-4d69-81d5-d7af01d64377.webp?v=1714888241","width":2000},{"alt":null,"id":23889618731107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e95c09e102aaaf430476ffacb6262bde4951d7a_3e551981-8317-4ca4-bd7a-83b00d27e7b7.webp?v=1714888244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e95c09e102aaaf430476ffacb6262bde4951d7a_3e551981-8317-4ca4-bd7a-83b00d27e7b7.webp?v=1714888244","width":2000},{"alt":null,"id":23889619189859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d152590856543557e24df8d5b27892717ec88f_81120b8a-dae9-411f-8a38-36f450265aea.webp?v=1714888246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78d152590856543557e24df8d5b27892717ec88f_81120b8a-dae9-411f-8a38-36f450265aea.webp?v=1714888246","width":2000},{"alt":null,"id":23889619648611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39009f8e114a5db9b12a594df0c47fa88adf197_05df4f29-9a31-47ae-8317-cc1117571d81.webp?v=1714888248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39009f8e114a5db9b12a594df0c47fa88adf197_05df4f29-9a31-47ae-8317-cc1117571d81.webp?v=1714888248","width":2000},{"alt":null,"id":23889620074595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251","width":2000},{"alt":null,"id":23889622761571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a3f85f0bd3b124731a5b125b38026c217f3e8bb_f3413864-431b-418f-a4a0-dd14080eb9e0.webp?v=1714888253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a3f85f0bd3b124731a5b125b38026c217f3e8bb_f3413864-431b-418f-a4a0-dd14080eb9e0.webp?v=1714888253","width":2000},{"alt":null,"id":23889623285859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255","width":2000},{"alt":null,"id":23889623679075,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d052e091b0a0b4b533f4ad4d5e070d7ef1e1f17_4df48622-dc90-43ee-8db3-ff82940d1af2.webp?v=1714888258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d052e091b0a0b4b533f4ad4d5e070d7ef1e1f17_4df48622-dc90-43ee-8db3-ff82940d1af2.webp?v=1714888258","width":2000},{"alt":null,"id":23889624301667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99f10100cd91e818b83edfb21fd535ec61a347_1c6cd734-4c42-400f-94ae-802a4d5e0c72.webp?v=1714888260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c99f10100cd91e818b83edfb21fd535ec61a347_1c6cd734-4c42-400f-94ae-802a4d5e0c72.webp?v=1714888260","width":2000},{"alt":null,"id":23889624727651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0a46e2563be3ea54151a080a34f51d58d4084b_eeec6a76-a6da-44d7-9c47-edd09e59a502.webp?v=1714888263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0a46e2563be3ea54151a080a34f51d58d4084b_eeec6a76-a6da-44d7-9c47-edd09e59a502.webp?v=1714888263","width":2000},{"alt":null,"id":23889625350243,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac686b4f557d205b6aef86aaf92c5bac79cc3aa3_6ccda1de-b15a-47e0-910f-5b7b3c42b3e7.webp?v=1714888265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac686b4f557d205b6aef86aaf92c5bac79cc3aa3_6ccda1de-b15a-47e0-910f-5b7b3c42b3e7.webp?v=1714888265","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902714486883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484329623651,"product_id":7413960114275,"position":7,"created_at":"2024-05-05T13:50:55+08:00","updated_at":"2024-05-05T13:50:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255","variant_ids":[41902714486883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個 - 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":"MPB0123224-YB01","featured_media":{"alt":null,"id":23889623285859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902714814563,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484327002211,"product_id":7413960114275,"position":5,"created_at":"2024-05-05T13:50:51+08:00","updated_at":"2024-05-05T13:50:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251","variant_ids":[41902714814563]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個 - 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":"MPB01232J5-YB01","featured_media":{"alt":null,"id":23889620074595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ba507a7f00d17462886262febe74fb0e3d36e89_99ee2c9d-998f-4aab-a823-61a7121ae915.webp?v=1714888251"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902714486883,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484329623651,"product_id":7413960114275,"position":7,"created_at":"2024-05-05T13:50:55+08:00","updated_at":"2024-05-05T13:50:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255","variant_ids":[41902714486883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - 抱一個 - 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":"MPB0123224-YB01","featured_media":{"alt":null,"id":23889623285859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aa8fbb2ce8be3397e90d787f334097226adc1d8_ab52a90c-833d-4c52-bac4-e72164a6bcd8.webp?v=1714888255"}},"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: "停產" }