$product = {"id":7411200098403,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:38:35+08:00","created_at":"2024-05-04T23:44:20+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41895898775651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836835939,"product_id":7411200098403,"position":8,"created_at":"2024-05-04T23:44:38+08:00","updated_at":"2024-05-04T23:44:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478","variant_ids":[41895898775651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB72","featured_media":{"alt":null,"id":23885087178851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f45b40f811efb162fefd99dc51b8184e63afeff_13857cf4-63d5-4cce-9bef-feb5c5595cb2.webp?v=1714837462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb0b1128e9b65cbffe13c02b96e0009f704518b_94c7c2a4-4a01-4412-8ccc-d65fc1fcea73.webp?v=1714837465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935440bda8a34005ca2ce729e7e4c7d34b2e5363_25bdbb88-db23-4a71-ac99-71e1b90cab0d.webp?v=1714837467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0281f323109e7edcaa3784d68b3f36fb40a300b_227c7c3a-290c-47e8-b91e-fa92c9683dc1.webp?v=1714837469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160db1862108a46d647f00b70ef088652b16019e_54183ac1-b4c5-4279-a32b-37c6625802e4.webp?v=1714837472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1afa02861d9d2bd93f818297cd2f028d102960b_1f1c338a-602f-4550-ba97-a0257fd5d96e.webp?v=1714837474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb14b692d11d236e2415d45ce5aeed566668e2_8d2217f4-953b-4cfc-97d1-9ec6eeaea7ae.webp?v=1714837476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5da70f59283d338b7490dc18fd3ff5e0755ecb7a_cb5792b3-9183-48cb-a9d8-91f02cf33dbc.webp?v=1714837480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9deef752fc9dfc94e61a8efbe30ddf3cce41d38_444402f8-95d6-4cf9-b9ee-fbb60f07a630.webp?v=1714837483"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f45b40f811efb162fefd99dc51b8184e63afeff_13857cf4-63d5-4cce-9bef-feb5c5595cb2.webp?v=1714837462","options":["color"],"media":[{"alt":null,"id":23885084131427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f45b40f811efb162fefd99dc51b8184e63afeff_13857cf4-63d5-4cce-9bef-feb5c5595cb2.webp?v=1714837462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f45b40f811efb162fefd99dc51b8184e63afeff_13857cf4-63d5-4cce-9bef-feb5c5595cb2.webp?v=1714837462","width":2000},{"alt":null,"id":23885084557411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb0b1128e9b65cbffe13c02b96e0009f704518b_94c7c2a4-4a01-4412-8ccc-d65fc1fcea73.webp?v=1714837465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/deb0b1128e9b65cbffe13c02b96e0009f704518b_94c7c2a4-4a01-4412-8ccc-d65fc1fcea73.webp?v=1714837465","width":2000},{"alt":null,"id":23885085016163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935440bda8a34005ca2ce729e7e4c7d34b2e5363_25bdbb88-db23-4a71-ac99-71e1b90cab0d.webp?v=1714837467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935440bda8a34005ca2ce729e7e4c7d34b2e5363_25bdbb88-db23-4a71-ac99-71e1b90cab0d.webp?v=1714837467","width":2000},{"alt":null,"id":23885085343843,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0281f323109e7edcaa3784d68b3f36fb40a300b_227c7c3a-290c-47e8-b91e-fa92c9683dc1.webp?v=1714837469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0281f323109e7edcaa3784d68b3f36fb40a300b_227c7c3a-290c-47e8-b91e-fa92c9683dc1.webp?v=1714837469","width":2000},{"alt":null,"id":23885085769827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160db1862108a46d647f00b70ef088652b16019e_54183ac1-b4c5-4279-a32b-37c6625802e4.webp?v=1714837472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/160db1862108a46d647f00b70ef088652b16019e_54183ac1-b4c5-4279-a32b-37c6625802e4.webp?v=1714837472","width":2000},{"alt":null,"id":23885086326883,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1afa02861d9d2bd93f818297cd2f028d102960b_1f1c338a-602f-4550-ba97-a0257fd5d96e.webp?v=1714837474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1afa02861d9d2bd93f818297cd2f028d102960b_1f1c338a-602f-4550-ba97-a0257fd5d96e.webp?v=1714837474","width":2000},{"alt":null,"id":23885086621795,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb14b692d11d236e2415d45ce5aeed566668e2_8d2217f4-953b-4cfc-97d1-9ec6eeaea7ae.webp?v=1714837476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7eb14b692d11d236e2415d45ce5aeed566668e2_8d2217f4-953b-4cfc-97d1-9ec6eeaea7ae.webp?v=1714837476","width":2000},{"alt":null,"id":23885087178851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478","width":2000},{"alt":null,"id":23885087572067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5da70f59283d338b7490dc18fd3ff5e0755ecb7a_cb5792b3-9183-48cb-a9d8-91f02cf33dbc.webp?v=1714837480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5da70f59283d338b7490dc18fd3ff5e0755ecb7a_cb5792b3-9183-48cb-a9d8-91f02cf33dbc.webp?v=1714837480","width":2000},{"alt":null,"id":23885088096355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9deef752fc9dfc94e61a8efbe30ddf3cce41d38_444402f8-95d6-4cf9-b9ee-fbb60f07a630.webp?v=1714837483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9deef752fc9dfc94e61a8efbe30ddf3cce41d38_444402f8-95d6-4cf9-b9ee-fbb60f07a630.webp?v=1714837483","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895898775651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836835939,"product_id":7411200098403,"position":8,"created_at":"2024-05-04T23:44:38+08:00","updated_at":"2024-05-04T23:44:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478","variant_ids":[41895898775651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB72","featured_media":{"alt":null,"id":23885087178851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895898775651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31479836835939,"product_id":7411200098403,"position":8,"created_at":"2024-05-04T23:44:38+08:00","updated_at":"2024-05-04T23:44:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478","variant_ids":[41895898775651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB72","featured_media":{"alt":null,"id":23885087178851,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d0f9caa5eadbc17651ee4617550630d41d9543_a33f0290-114e-4cc2-bb30-bf1fd738b83e.webp?v=1714837478"}},"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: "停產" }