$product = {"id":7411100352611,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Care Bears - 粉紫樂園","handle":"iphone-15-plus-mod-nx-magsafe-printable-yb13","description":null,"published_at":"2024-06-11T17:36:18+08:00","created_at":"2024-05-04T22:42:52+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":41894971998307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511548003,"product_id":7411100352611,"position":4,"created_at":"2024-05-04T22:43:02+08:00","updated_at":"2024-05-04T22:43:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782","variant_ids":[41894971998307]},"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-YB13","featured_media":{"alt":null,"id":23884759236707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894972162147,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479514071139,"product_id":7411100352611,"position":9,"created_at":"2024-05-04T22:43:14+08:00","updated_at":"2024-05-04T22:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794","variant_ids":[41894972162147]},"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-YB13","featured_media":{"alt":null,"id":23884761759843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d86800d6c70fa17cbbad7f3ccae8fa78db2552_2911e773-d35e-4183-863e-4bc7ec2c6fd2.webp?v=1714833774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98768b6765d652a918b280246924b4061d82f2cb_de7c7c67-95a6-468c-8097-5a640f37a2e3.webp?v=1714833777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421cc96d58c71d3c51b92f96d56097783eac684e_bca1ce39-b379-4f21-b63b-28bde9c553be.webp?v=1714833779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b3902cdb47bf29d4ee3f609db535fb8460ea48_498bd6b3-c95b-49b7-b253-0c5cc0ee2b7a.webp?v=1714833784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff70d0430a37981329efc1141f874fe7a0f8a17f_1222d976-f78f-4195-82dc-2558a70a5fc5.webp?v=1714833786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17d47dd0446c982728bbb766c6b410ff5e4384a_00b9e4cb-d369-454c-b85b-d53e0747d484.webp?v=1714833789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8226bfd6aee4fc7bf65da8a8169e7231bd86af6e_ef12c994-c755-48de-b126-6c6a2ff580d4.webp?v=1714833791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f7ad0c6a65754dbb957db971077c992f5764595_4660476c-c041-462c-bf54-cf1a0b0eaadb.webp?v=1714833796"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d86800d6c70fa17cbbad7f3ccae8fa78db2552_2911e773-d35e-4183-863e-4bc7ec2c6fd2.webp?v=1714833774","options":["color"],"media":[{"alt":null,"id":23884757893219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d86800d6c70fa17cbbad7f3ccae8fa78db2552_2911e773-d35e-4183-863e-4bc7ec2c6fd2.webp?v=1714833774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00d86800d6c70fa17cbbad7f3ccae8fa78db2552_2911e773-d35e-4183-863e-4bc7ec2c6fd2.webp?v=1714833774","width":2000},{"alt":null,"id":23884758122595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98768b6765d652a918b280246924b4061d82f2cb_de7c7c67-95a6-468c-8097-5a640f37a2e3.webp?v=1714833777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98768b6765d652a918b280246924b4061d82f2cb_de7c7c67-95a6-468c-8097-5a640f37a2e3.webp?v=1714833777","width":2000},{"alt":null,"id":23884758384739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421cc96d58c71d3c51b92f96d56097783eac684e_bca1ce39-b379-4f21-b63b-28bde9c553be.webp?v=1714833779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/421cc96d58c71d3c51b92f96d56097783eac684e_bca1ce39-b379-4f21-b63b-28bde9c553be.webp?v=1714833779","width":2000},{"alt":null,"id":23884759236707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782","width":2000},{"alt":null,"id":23884759826531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b3902cdb47bf29d4ee3f609db535fb8460ea48_498bd6b3-c95b-49b7-b253-0c5cc0ee2b7a.webp?v=1714833784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b3902cdb47bf29d4ee3f609db535fb8460ea48_498bd6b3-c95b-49b7-b253-0c5cc0ee2b7a.webp?v=1714833784","width":2000},{"alt":null,"id":23884760252515,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff70d0430a37981329efc1141f874fe7a0f8a17f_1222d976-f78f-4195-82dc-2558a70a5fc5.webp?v=1714833786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff70d0430a37981329efc1141f874fe7a0f8a17f_1222d976-f78f-4195-82dc-2558a70a5fc5.webp?v=1714833786","width":2000},{"alt":null,"id":23884760678499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17d47dd0446c982728bbb766c6b410ff5e4384a_00b9e4cb-d369-454c-b85b-d53e0747d484.webp?v=1714833789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17d47dd0446c982728bbb766c6b410ff5e4384a_00b9e4cb-d369-454c-b85b-d53e0747d484.webp?v=1714833789","width":2000},{"alt":null,"id":23884761268323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8226bfd6aee4fc7bf65da8a8169e7231bd86af6e_ef12c994-c755-48de-b126-6c6a2ff580d4.webp?v=1714833791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8226bfd6aee4fc7bf65da8a8169e7231bd86af6e_ef12c994-c755-48de-b126-6c6a2ff580d4.webp?v=1714833791","width":2000},{"alt":null,"id":23884761759843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794","width":2000},{"alt":null,"id":23884762153059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f7ad0c6a65754dbb957db971077c992f5764595_4660476c-c041-462c-bf54-cf1a0b0eaadb.webp?v=1714833796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f7ad0c6a65754dbb957db971077c992f5764595_4660476c-c041-462c-bf54-cf1a0b0eaadb.webp?v=1714833796","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41894971998307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511548003,"product_id":7411100352611,"position":4,"created_at":"2024-05-04T22:43:02+08:00","updated_at":"2024-05-04T22:43:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782","variant_ids":[41894971998307]},"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-YB13","featured_media":{"alt":null,"id":23884759236707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894972162147,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479514071139,"product_id":7411100352611,"position":9,"created_at":"2024-05-04T22:43:14+08:00","updated_at":"2024-05-04T22:43:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794","variant_ids":[41894972162147]},"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-YB13","featured_media":{"alt":null,"id":23884761759843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d364a8b9971aedc657f90b078b17592fc16e3b2_46d266f3-e613-47cd-9657-34a2d830adf8.webp?v=1714833794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41894971998307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YB13","requires_shipping":true,"taxable":true,"featured_image":{"id":31479511548003,"product_id":7411100352611,"position":4,"created_at":"2024-05-04T22:43:02+08:00","updated_at":"2024-05-04T22:43:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782","variant_ids":[41894971998307]},"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-YB13","featured_media":{"alt":null,"id":23884759236707,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00a767fb83a0578e805daeabf6a7e2df2ca78ffe_07a3dcac-d4f0-4995-97c6-d0e9377d3ac6.webp?v=1714833782"}},"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: "停產" }