$product = {"id":7408402137187,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-12-pro-max-mod-nx-printable-pb102","description":null,"published_at":"2024-06-11T16:36:15+08:00","created_at":"2024-05-03T15:19:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41885083664483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31472171941987,"product_id":7408402137187,"position":6,"created_at":"2024-05-03T15:19:49+08:00","updated_at":"2024-05-03T15:19:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789","variant_ids":[41885083664483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23877087625315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a728c5d42f8b6938e1554e5312e7e06b016e35_45ec7ad3-a75b-4fd0-8158-84a1cfa9ac8b.webp?v=1714720777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7afaa76b62c4d6ea3c6bca8873d91685b764d00d_085cffe9-0df9-496a-890d-8c9cb6c53c9c.webp?v=1714720779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d14d20d9eba80a5fec10441e909188904b22731_9492b666-05e3-4663-b75e-c48bafab6e68.webp?v=1714720781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a853d02ffc5f173bcb264acd0f218c8e9fac34_7a24a5ba-217a-4bd4-b0a0-cae380860d1d.webp?v=1714720784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdd526a7b87221a206b1eda5a1252905f18aaee_9087d4db-ddde-40d7-982c-bb531e989f13.webp?v=1714720786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b680a02eb5d36014110cbe22739644bbd325f5d6_39f6e5b0-193c-412c-baba-8a2ddf8cc21d.webp?v=1714720791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e02a761af3d6714c9f867f1adb5181b05c92e6_04bff5c1-e677-4b8f-8bb1-9101f1f7faa5.webp?v=1714720794","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad8c2b8217f042af4c423a3b4a94d8bd2dc095_2091b30d-28a1-4db3-9060-22056432028d.webp?v=1714720796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734d84e6f2955e7aa1285b143c722f29d7bf274e_05d5721f-7253-496b-81f8-b572196b4a1a.webp?v=1714720798"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a728c5d42f8b6938e1554e5312e7e06b016e35_45ec7ad3-a75b-4fd0-8158-84a1cfa9ac8b.webp?v=1714720777","options":["color"],"media":[{"alt":null,"id":23877084905571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a728c5d42f8b6938e1554e5312e7e06b016e35_45ec7ad3-a75b-4fd0-8158-84a1cfa9ac8b.webp?v=1714720777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a728c5d42f8b6938e1554e5312e7e06b016e35_45ec7ad3-a75b-4fd0-8158-84a1cfa9ac8b.webp?v=1714720777","width":2000},{"alt":null,"id":23877085298787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7afaa76b62c4d6ea3c6bca8873d91685b764d00d_085cffe9-0df9-496a-890d-8c9cb6c53c9c.webp?v=1714720779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7afaa76b62c4d6ea3c6bca8873d91685b764d00d_085cffe9-0df9-496a-890d-8c9cb6c53c9c.webp?v=1714720779","width":2000},{"alt":null,"id":23877085888611,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d14d20d9eba80a5fec10441e909188904b22731_9492b666-05e3-4663-b75e-c48bafab6e68.webp?v=1714720781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d14d20d9eba80a5fec10441e909188904b22731_9492b666-05e3-4663-b75e-c48bafab6e68.webp?v=1714720781","width":2000},{"alt":null,"id":23877086281827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a853d02ffc5f173bcb264acd0f218c8e9fac34_7a24a5ba-217a-4bd4-b0a0-cae380860d1d.webp?v=1714720784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4a853d02ffc5f173bcb264acd0f218c8e9fac34_7a24a5ba-217a-4bd4-b0a0-cae380860d1d.webp?v=1714720784","width":2000},{"alt":null,"id":23877086838883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdd526a7b87221a206b1eda5a1252905f18aaee_9087d4db-ddde-40d7-982c-bb531e989f13.webp?v=1714720786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecdd526a7b87221a206b1eda5a1252905f18aaee_9087d4db-ddde-40d7-982c-bb531e989f13.webp?v=1714720786","width":2000},{"alt":null,"id":23877087625315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789","width":2000},{"alt":null,"id":23877088116835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b680a02eb5d36014110cbe22739644bbd325f5d6_39f6e5b0-193c-412c-baba-8a2ddf8cc21d.webp?v=1714720791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b680a02eb5d36014110cbe22739644bbd325f5d6_39f6e5b0-193c-412c-baba-8a2ddf8cc21d.webp?v=1714720791","width":2000},{"alt":null,"id":23877088837731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e02a761af3d6714c9f867f1adb5181b05c92e6_04bff5c1-e677-4b8f-8bb1-9101f1f7faa5.webp?v=1714720794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61e02a761af3d6714c9f867f1adb5181b05c92e6_04bff5c1-e677-4b8f-8bb1-9101f1f7faa5.webp?v=1714720794","width":2000},{"alt":null,"id":23877089525859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad8c2b8217f042af4c423a3b4a94d8bd2dc095_2091b30d-28a1-4db3-9060-22056432028d.webp?v=1714720796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ad8c2b8217f042af4c423a3b4a94d8bd2dc095_2091b30d-28a1-4db3-9060-22056432028d.webp?v=1714720796","width":2000},{"alt":null,"id":23877089984611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734d84e6f2955e7aa1285b143c722f29d7bf274e_05d5721f-7253-496b-81f8-b572196b4a1a.webp?v=1714720798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/734d84e6f2955e7aa1285b143c722f29d7bf274e_05d5721f-7253-496b-81f8-b572196b4a1a.webp?v=1714720798","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885083664483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31472171941987,"product_id":7408402137187,"position":6,"created_at":"2024-05-03T15:19:49+08:00","updated_at":"2024-05-03T15:19:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789","variant_ids":[41885083664483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23877087625315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885083664483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31472171941987,"product_id":7408402137187,"position":6,"created_at":"2024-05-03T15:19:49+08:00","updated_at":"2024-05-03T15:19:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789","variant_ids":[41885083664483]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23877087625315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ade124845d404a2c2eead0dc63bd266d3c7cd192_22ce7b76-d090-4213-99a5-fd7627df8cc2.webp?v=1714720789"}},"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: "停產" }