$product = {"id":7408423993443,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 一天又平安的過去了","handle":"iphone-12-pro-max-mod-nx-printable-sr01","description":null,"published_at":"2024-06-11T16:36:51+08:00","created_at":"2024-05-03T15:23:58+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-the-power-puff-girls","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41885318316131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239116387,"product_id":7408423993443,"position":5,"created_at":"2024-05-03T15:24:09+08:00","updated_at":"2024-05-03T15:24:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050","variant_ids":[41885318316131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR01","featured_media":{"alt":null,"id":23877155225699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0422640e7debaaba68f2488896ce35cc16b5d653_ceb10ea3-60ea-47a7-b4e8-271e5c9aee90.webp?v=1714721040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a0c570f32fac3a72d5dc1c84c7bb37e17fb5e0f_21c357cf-a21b-41d4-bd27-2120202a2864.webp?v=1714721043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfeb31ebe3dce155d8f0e9517abf5fc859c487e7_f0f66d39-7eb5-4a45-8d73-c303e37358f4.webp?v=1714721045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fea1031056338ca29843b8f753f5f543f9b9f38_e9a655ef-5028-4ffc-9c68-26a886706c7c.webp?v=1714721047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc8d687036838a96696a8afc47ca35f5dd289c_4543c98a-5692-4cb3-9f54-33850f10f0d7.webp?v=1714721052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e48e434f09110f0ee3c6b5e48ad292748de0c39_a7cf75d8-52ae-4bb6-b504-b739954b51ea.webp?v=1714721054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc42f410f75849a0de75112eb1a488bba1bca7d_13a741c2-0bdf-41f2-81fa-0994aea934cd.webp?v=1714721057","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758306a71e52ed82c4fe630e8e176d79fe1bdb3a_f7812922-273d-4a73-800c-1ff01f519435.webp?v=1714721059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e235a0df8a02f182f78e15eca32d95e095832eaa_b0be9e66-3cb3-4088-a2c5-4361b80b5b22.webp?v=1714721061"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0422640e7debaaba68f2488896ce35cc16b5d653_ceb10ea3-60ea-47a7-b4e8-271e5c9aee90.webp?v=1714721040","options":["color"],"media":[{"alt":null,"id":23877153128547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0422640e7debaaba68f2488896ce35cc16b5d653_ceb10ea3-60ea-47a7-b4e8-271e5c9aee90.webp?v=1714721040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0422640e7debaaba68f2488896ce35cc16b5d653_ceb10ea3-60ea-47a7-b4e8-271e5c9aee90.webp?v=1714721040","width":2000},{"alt":null,"id":23877153685603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a0c570f32fac3a72d5dc1c84c7bb37e17fb5e0f_21c357cf-a21b-41d4-bd27-2120202a2864.webp?v=1714721043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a0c570f32fac3a72d5dc1c84c7bb37e17fb5e0f_21c357cf-a21b-41d4-bd27-2120202a2864.webp?v=1714721043","width":2000},{"alt":null,"id":23877154177123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfeb31ebe3dce155d8f0e9517abf5fc859c487e7_f0f66d39-7eb5-4a45-8d73-c303e37358f4.webp?v=1714721045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfeb31ebe3dce155d8f0e9517abf5fc859c487e7_f0f66d39-7eb5-4a45-8d73-c303e37358f4.webp?v=1714721045","width":2000},{"alt":null,"id":23877154701411,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fea1031056338ca29843b8f753f5f543f9b9f38_e9a655ef-5028-4ffc-9c68-26a886706c7c.webp?v=1714721047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fea1031056338ca29843b8f753f5f543f9b9f38_e9a655ef-5028-4ffc-9c68-26a886706c7c.webp?v=1714721047","width":2000},{"alt":null,"id":23877155225699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050","width":2000},{"alt":null,"id":23877155749987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc8d687036838a96696a8afc47ca35f5dd289c_4543c98a-5692-4cb3-9f54-33850f10f0d7.webp?v=1714721052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc8d687036838a96696a8afc47ca35f5dd289c_4543c98a-5692-4cb3-9f54-33850f10f0d7.webp?v=1714721052","width":2000},{"alt":null,"id":23877156307043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e48e434f09110f0ee3c6b5e48ad292748de0c39_a7cf75d8-52ae-4bb6-b504-b739954b51ea.webp?v=1714721054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e48e434f09110f0ee3c6b5e48ad292748de0c39_a7cf75d8-52ae-4bb6-b504-b739954b51ea.webp?v=1714721054","width":2000},{"alt":null,"id":23877156733027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc42f410f75849a0de75112eb1a488bba1bca7d_13a741c2-0bdf-41f2-81fa-0994aea934cd.webp?v=1714721057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efc42f410f75849a0de75112eb1a488bba1bca7d_13a741c2-0bdf-41f2-81fa-0994aea934cd.webp?v=1714721057","width":2000},{"alt":null,"id":23877157257315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758306a71e52ed82c4fe630e8e176d79fe1bdb3a_f7812922-273d-4a73-800c-1ff01f519435.webp?v=1714721059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/758306a71e52ed82c4fe630e8e176d79fe1bdb3a_f7812922-273d-4a73-800c-1ff01f519435.webp?v=1714721059","width":2000},{"alt":null,"id":23877157945443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e235a0df8a02f182f78e15eca32d95e095832eaa_b0be9e66-3cb3-4088-a2c5-4361b80b5b22.webp?v=1714721061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e235a0df8a02f182f78e15eca32d95e095832eaa_b0be9e66-3cb3-4088-a2c5-4361b80b5b22.webp?v=1714721061","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885318316131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239116387,"product_id":7408423993443,"position":5,"created_at":"2024-05-03T15:24:09+08:00","updated_at":"2024-05-03T15:24:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050","variant_ids":[41885318316131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR01","featured_media":{"alt":null,"id":23877155225699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885318316131,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SR01","requires_shipping":true,"taxable":true,"featured_image":{"id":31472239116387,"product_id":7408423993443,"position":5,"created_at":"2024-05-03T15:24:09+08:00","updated_at":"2024-05-03T15:24:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050","variant_ids":[41885318316131]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max The Powerpuff Girls - 一天又平安的過去了 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SR01","featured_media":{"alt":null,"id":23877155225699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7737b524abec9d7c9dbcd453ba5d7977fc2d323_0eec59ac-a327-4964-9d78-9015ea8e7894.webp?v=1714721050"}},"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: "停產" }