$product = {"id":7415063740515,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Care Bears - 美食派對","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yb11","description":null,"published_at":"2024-06-11T17:57:00+08:00","created_at":"2024-05-05T20:15:51+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 12 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":41911483465827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488062160995,"product_id":7415063740515,"position":9,"created_at":"2024-05-05T20:16:15+08:00","updated_at":"2024-05-05T20:16:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375","variant_ids":[41911483465827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YB11","featured_media":{"alt":null,"id":23893406548067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa3832f43b43e6fcfe8abe032eff0e62b7fbb99_4da10dee-347d-4bf0-853f-d154ac45991c.webp?v=1714911354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558bb4af1bc77f9f2388d5bdaec1c9e198f2382f_13934451-297f-4cba-a77b-b4a37b369781.webp?v=1714911356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5baccf3e4e4af7d82be1e77d4bd41a1f438a402_c45dfc00-4a55-47fb-b050-45ee702884bd.webp?v=1714911359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab819754a9986b8c14e25d14e39707f102f3e06_52a7c7fc-30d2-4943-ae0b-e3e73b33355a.webp?v=1714911362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fc6193b335fdd550e1a9c86f7a78939a6c5985_a352b56b-1562-4659-8bbc-be066f579f16.webp?v=1714911365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf0d500d82fa97910d4504c1282c041151aa7d4_d5b4dd27-c96c-4059-aabe-5bc5653bfc69.webp?v=1714911368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1e1b1b7eb94c1a16a82b840dd3eba89c90d2c3_531df86b-ed7b-4bb6-b6f4-6a256cd5f721.webp?v=1714911370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b98515e2630962f8f90198676154e842d6a405_6b0596a2-af3a-469b-8149-765c23a32f97.webp?v=1714911373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f026f8392ed0dc80f3c0f7040d1d485d5e89ee_f18987b1-0222-4325-8247-0e9ff9d01d4b.webp?v=1714911378"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa3832f43b43e6fcfe8abe032eff0e62b7fbb99_4da10dee-347d-4bf0-853f-d154ac45991c.webp?v=1714911354","options":["color"],"media":[{"alt":null,"id":23893401272419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa3832f43b43e6fcfe8abe032eff0e62b7fbb99_4da10dee-347d-4bf0-853f-d154ac45991c.webp?v=1714911354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa3832f43b43e6fcfe8abe032eff0e62b7fbb99_4da10dee-347d-4bf0-853f-d154ac45991c.webp?v=1714911354","width":2000},{"alt":null,"id":23893401796707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558bb4af1bc77f9f2388d5bdaec1c9e198f2382f_13934451-297f-4cba-a77b-b4a37b369781.webp?v=1714911356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/558bb4af1bc77f9f2388d5bdaec1c9e198f2382f_13934451-297f-4cba-a77b-b4a37b369781.webp?v=1714911356","width":2000},{"alt":null,"id":23893402288227,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5baccf3e4e4af7d82be1e77d4bd41a1f438a402_c45dfc00-4a55-47fb-b050-45ee702884bd.webp?v=1714911359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5baccf3e4e4af7d82be1e77d4bd41a1f438a402_c45dfc00-4a55-47fb-b050-45ee702884bd.webp?v=1714911359","width":2000},{"alt":null,"id":23893403467875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab819754a9986b8c14e25d14e39707f102f3e06_52a7c7fc-30d2-4943-ae0b-e3e73b33355a.webp?v=1714911362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab819754a9986b8c14e25d14e39707f102f3e06_52a7c7fc-30d2-4943-ae0b-e3e73b33355a.webp?v=1714911362","width":2000},{"alt":null,"id":23893404188771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fc6193b335fdd550e1a9c86f7a78939a6c5985_a352b56b-1562-4659-8bbc-be066f579f16.webp?v=1714911365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1fc6193b335fdd550e1a9c86f7a78939a6c5985_a352b56b-1562-4659-8bbc-be066f579f16.webp?v=1714911365","width":2000},{"alt":null,"id":23893404680291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf0d500d82fa97910d4504c1282c041151aa7d4_d5b4dd27-c96c-4059-aabe-5bc5653bfc69.webp?v=1714911368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf0d500d82fa97910d4504c1282c041151aa7d4_d5b4dd27-c96c-4059-aabe-5bc5653bfc69.webp?v=1714911368","width":2000},{"alt":null,"id":23893405597795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1e1b1b7eb94c1a16a82b840dd3eba89c90d2c3_531df86b-ed7b-4bb6-b6f4-6a256cd5f721.webp?v=1714911370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a1e1b1b7eb94c1a16a82b840dd3eba89c90d2c3_531df86b-ed7b-4bb6-b6f4-6a256cd5f721.webp?v=1714911370","width":2000},{"alt":null,"id":23893406089315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b98515e2630962f8f90198676154e842d6a405_6b0596a2-af3a-469b-8149-765c23a32f97.webp?v=1714911373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3b98515e2630962f8f90198676154e842d6a405_6b0596a2-af3a-469b-8149-765c23a32f97.webp?v=1714911373","width":2000},{"alt":null,"id":23893406548067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375","width":2000},{"alt":null,"id":23893407367267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f026f8392ed0dc80f3c0f7040d1d485d5e89ee_f18987b1-0222-4325-8247-0e9ff9d01d4b.webp?v=1714911378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f026f8392ed0dc80f3c0f7040d1d485d5e89ee_f18987b1-0222-4325-8247-0e9ff9d01d4b.webp?v=1714911378","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911483465827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488062160995,"product_id":7415063740515,"position":9,"created_at":"2024-05-05T20:16:15+08:00","updated_at":"2024-05-05T20:16:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375","variant_ids":[41911483465827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YB11","featured_media":{"alt":null,"id":23893406548067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911483465827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488062160995,"product_id":7415063740515,"position":9,"created_at":"2024-05-05T20:16:15+08:00","updated_at":"2024-05-05T20:16:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375","variant_ids":[41911483465827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 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":"MPB0118724-YB11","featured_media":{"alt":null,"id":23893406548067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e584a4d6982bc0ad9abed4693f80eabaa8c4dc60_d181f471-fe3d-429e-b1ba-0b875cb766f0.webp?v=1714911375"}},"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: "停產" }