$product = {"id":7411123191907,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Care Bears - 美食派對","handle":"iphone-15-plus-mod-nx-magsafe-printable-yb11","description":null,"published_at":"2024-06-11T17:36:54+08:00","created_at":"2024-05-04T22:47:35+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 15 Plus","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":41895199277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479576100963,"product_id":7411123191907,"position":4,"created_at":"2024-05-04T22:47:45+08:00","updated_at":"2024-05-04T22:47:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065","variant_ids":[41895199277155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB11","featured_media":{"alt":null,"id":23884823855203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895199408227,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479580098659,"product_id":7411123191907,"position":10,"created_at":"2024-05-04T22:47:59+08:00","updated_at":"2024-05-04T22:47:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079","variant_ids":[41895199408227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-YB11","featured_media":{"alt":null,"id":23884827820131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7d91f1fb70c8ad3c14d1ce212f446f2e5335fd_cbb58028-dc23-4c13-a7af-8526512e6804.webp?v=1714834057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184acaf8151118f8387e0c658ee0233b39f4aae_412c529b-6839-4eae-bc1b-ab2545923e64.webp?v=1714834060","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da90869ced57bc4f61350260c411bfc843fa82f_0262300b-8aac-4767-a4c9-7591ade91f72.webp?v=1714834062","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3badd6dde42430e4633c9f1bae7083741981a52f_d2b5976d-2b85-4f0c-b783-a9ed69cad47c.webp?v=1714834067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4bb60977baeb6f28e5481c741ddd9a0a42a00_6751ac9f-61fc-4548-abf9-8b0987825e8d.webp?v=1714834070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b05251ea59ce447baab722168cc0d0275b6081e_53fdc1ff-7a45-45ad-9b36-78bc9bacc507.webp?v=1714834072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4ec0e9b0e4d1bed6f13fd9de1b186fc9961c2e_d1fcb56b-2db4-4aca-bc9a-5fb024b88c73.webp?v=1714834074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c03ae5bf793c1d123018542f8995a9501c9bca_47560e11-bfcb-4b0a-be94-3c77766e8dd6.webp?v=1714834077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7d91f1fb70c8ad3c14d1ce212f446f2e5335fd_cbb58028-dc23-4c13-a7af-8526512e6804.webp?v=1714834057","options":["color"],"media":[{"alt":null,"id":23884822282339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7d91f1fb70c8ad3c14d1ce212f446f2e5335fd_cbb58028-dc23-4c13-a7af-8526512e6804.webp?v=1714834057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7d91f1fb70c8ad3c14d1ce212f446f2e5335fd_cbb58028-dc23-4c13-a7af-8526512e6804.webp?v=1714834057","width":2000},{"alt":null,"id":23884822708323,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184acaf8151118f8387e0c658ee0233b39f4aae_412c529b-6839-4eae-bc1b-ab2545923e64.webp?v=1714834060"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4184acaf8151118f8387e0c658ee0233b39f4aae_412c529b-6839-4eae-bc1b-ab2545923e64.webp?v=1714834060","width":2000},{"alt":null,"id":23884823167075,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da90869ced57bc4f61350260c411bfc843fa82f_0262300b-8aac-4767-a4c9-7591ade91f72.webp?v=1714834062"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1da90869ced57bc4f61350260c411bfc843fa82f_0262300b-8aac-4767-a4c9-7591ade91f72.webp?v=1714834062","width":2000},{"alt":null,"id":23884823855203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065","width":2000},{"alt":null,"id":23884824248419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3badd6dde42430e4633c9f1bae7083741981a52f_d2b5976d-2b85-4f0c-b783-a9ed69cad47c.webp?v=1714834067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3badd6dde42430e4633c9f1bae7083741981a52f_d2b5976d-2b85-4f0c-b783-a9ed69cad47c.webp?v=1714834067","width":2000},{"alt":null,"id":23884825100387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4bb60977baeb6f28e5481c741ddd9a0a42a00_6751ac9f-61fc-4548-abf9-8b0987825e8d.webp?v=1714834070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ff4bb60977baeb6f28e5481c741ddd9a0a42a00_6751ac9f-61fc-4548-abf9-8b0987825e8d.webp?v=1714834070","width":2000},{"alt":null,"id":23884825559139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b05251ea59ce447baab722168cc0d0275b6081e_53fdc1ff-7a45-45ad-9b36-78bc9bacc507.webp?v=1714834072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b05251ea59ce447baab722168cc0d0275b6081e_53fdc1ff-7a45-45ad-9b36-78bc9bacc507.webp?v=1714834072","width":2000},{"alt":null,"id":23884826116195,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4ec0e9b0e4d1bed6f13fd9de1b186fc9961c2e_d1fcb56b-2db4-4aca-bc9a-5fb024b88c73.webp?v=1714834074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d4ec0e9b0e4d1bed6f13fd9de1b186fc9961c2e_d1fcb56b-2db4-4aca-bc9a-5fb024b88c73.webp?v=1714834074","width":2000},{"alt":null,"id":23884826607715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c03ae5bf793c1d123018542f8995a9501c9bca_47560e11-bfcb-4b0a-be94-3c77766e8dd6.webp?v=1714834077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c03ae5bf793c1d123018542f8995a9501c9bca_47560e11-bfcb-4b0a-be94-3c77766e8dd6.webp?v=1714834077","width":2000},{"alt":null,"id":23884827820131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895199277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479576100963,"product_id":7411123191907,"position":4,"created_at":"2024-05-04T22:47:45+08:00","updated_at":"2024-05-04T22:47:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065","variant_ids":[41895199277155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB11","featured_media":{"alt":null,"id":23884823855203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895199408227,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479580098659,"product_id":7411123191907,"position":10,"created_at":"2024-05-04T22:47:59+08:00","updated_at":"2024-05-04T22:47:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079","variant_ids":[41895199408227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129657-YB11","featured_media":{"alt":null,"id":23884827820131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e9446f1e2a3c3f5b430ea9bf418265e7e9e510f_5d6bfa00-b67f-4474-a960-7d6dae24c130.webp?v=1714834079"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895199277155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31479576100963,"product_id":7411123191907,"position":4,"created_at":"2024-05-04T22:47:45+08:00","updated_at":"2024-05-04T22:47:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065","variant_ids":[41895199277155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 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":"MPB0129624-YB11","featured_media":{"alt":null,"id":23884823855203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e0384428beeeaed80f191e8564d30c982f476a0_ee524703-0a8a-40c4-820c-d42e4cb54357.webp?v=1714834065"}},"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: "停產" }