$product = {"id":7408387522659,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-12-mini-mod-nx-printable-pb72","description":null,"published_at":"2024-06-11T16:35:51+08:00","created_at":"2024-05-03T15:16:28+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 mini","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":41884916318307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31472133177443,"product_id":7408387522659,"position":10,"created_at":"2024-05-03T15:16:55+08:00","updated_at":"2024-05-03T15:16:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615","variant_ids":[41884916318307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0118424-PB72","featured_media":{"alt":null,"id":23877048729699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e95c5f20d96532b2b6e4f56468e730896dea686_eb251b48-5fba-4f01-bf38-eef31f8e397f.webp?v=1714720590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bddecddd5abfd255ea66a2d6fbd8ff67eefcd5b_bfceb6f8-7c12-42eb-9d33-eee04f4f5417.webp?v=1714720593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0921b84a133332aac9b7f373616c03b555ddb4_a79d273b-6a26-4b41-a083-0bbbadd52b71.webp?v=1714720595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee41001dfee13466c6a5161f278a19dd3fb78cdd_5036e536-cd8b-46c9-84e1-ffce16421d50.webp?v=1714720601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d294b721c54379acc5b780809d2e5b8ec1bf468_54c9102a-cb1b-428c-8e53-e5c6aa047553.webp?v=1714720603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b2639d03201e1e4ee1c3d7fd3f61a9a8e2c5ae_e22cb6c9-223a-47ce-a2a2-ea44578f7cc6.webp?v=1714720606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6161b663f5f5e63a3d9b952198554cd83304916_29788531-02ae-47b3-bae2-cdfa0fe7a8fe.webp?v=1714720608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e1163cf2f86eb3d0261db9911423d980bc801c_7c3a3b5a-888c-4bab-a3b0-e81c0dc9fa18.webp?v=1714720610","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49f5f3868d9fb3221be9fd6e773454ff7f3aeb7_39d59e81-5f85-4232-b143-5733c10e7f8b.webp?v=1714720613","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc51aa773549fdc6228606034054b37aacf7670f_4f88060d-01b1-4230-912e-d9c70e8e0ab2.webp?v=1714720617"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e95c5f20d96532b2b6e4f56468e730896dea686_eb251b48-5fba-4f01-bf38-eef31f8e397f.webp?v=1714720590","options":["color"],"media":[{"alt":null,"id":23877043880035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e95c5f20d96532b2b6e4f56468e730896dea686_eb251b48-5fba-4f01-bf38-eef31f8e397f.webp?v=1714720590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e95c5f20d96532b2b6e4f56468e730896dea686_eb251b48-5fba-4f01-bf38-eef31f8e397f.webp?v=1714720590","width":2000},{"alt":null,"id":23877044469859,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bddecddd5abfd255ea66a2d6fbd8ff67eefcd5b_bfceb6f8-7c12-42eb-9d33-eee04f4f5417.webp?v=1714720593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bddecddd5abfd255ea66a2d6fbd8ff67eefcd5b_bfceb6f8-7c12-42eb-9d33-eee04f4f5417.webp?v=1714720593","width":2000},{"alt":null,"id":23877044895843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0921b84a133332aac9b7f373616c03b555ddb4_a79d273b-6a26-4b41-a083-0bbbadd52b71.webp?v=1714720595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c0921b84a133332aac9b7f373616c03b555ddb4_a79d273b-6a26-4b41-a083-0bbbadd52b71.webp?v=1714720595","width":2000},{"alt":null,"id":23877045387363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee41001dfee13466c6a5161f278a19dd3fb78cdd_5036e536-cd8b-46c9-84e1-ffce16421d50.webp?v=1714720601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee41001dfee13466c6a5161f278a19dd3fb78cdd_5036e536-cd8b-46c9-84e1-ffce16421d50.webp?v=1714720601","width":2000},{"alt":null,"id":23877045616739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d294b721c54379acc5b780809d2e5b8ec1bf468_54c9102a-cb1b-428c-8e53-e5c6aa047553.webp?v=1714720603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d294b721c54379acc5b780809d2e5b8ec1bf468_54c9102a-cb1b-428c-8e53-e5c6aa047553.webp?v=1714720603","width":2000},{"alt":null,"id":23877046173795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b2639d03201e1e4ee1c3d7fd3f61a9a8e2c5ae_e22cb6c9-223a-47ce-a2a2-ea44578f7cc6.webp?v=1714720606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0b2639d03201e1e4ee1c3d7fd3f61a9a8e2c5ae_e22cb6c9-223a-47ce-a2a2-ea44578f7cc6.webp?v=1714720606","width":2000},{"alt":null,"id":23877046763619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6161b663f5f5e63a3d9b952198554cd83304916_29788531-02ae-47b3-bae2-cdfa0fe7a8fe.webp?v=1714720608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6161b663f5f5e63a3d9b952198554cd83304916_29788531-02ae-47b3-bae2-cdfa0fe7a8fe.webp?v=1714720608","width":2000},{"alt":null,"id":23877047353443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e1163cf2f86eb3d0261db9911423d980bc801c_7c3a3b5a-888c-4bab-a3b0-e81c0dc9fa18.webp?v=1714720610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e1163cf2f86eb3d0261db9911423d980bc801c_7c3a3b5a-888c-4bab-a3b0-e81c0dc9fa18.webp?v=1714720610","width":2000},{"alt":null,"id":23877047713891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49f5f3868d9fb3221be9fd6e773454ff7f3aeb7_39d59e81-5f85-4232-b143-5733c10e7f8b.webp?v=1714720613"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49f5f3868d9fb3221be9fd6e773454ff7f3aeb7_39d59e81-5f85-4232-b143-5733c10e7f8b.webp?v=1714720613","width":2000},{"alt":null,"id":23877048729699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615","width":2000},{"alt":null,"id":23877049253987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc51aa773549fdc6228606034054b37aacf7670f_4f88060d-01b1-4230-912e-d9c70e8e0ab2.webp?v=1714720617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc51aa773549fdc6228606034054b37aacf7670f_4f88060d-01b1-4230-912e-d9c70e8e0ab2.webp?v=1714720617","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884916318307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31472133177443,"product_id":7408387522659,"position":10,"created_at":"2024-05-03T15:16:55+08:00","updated_at":"2024-05-03T15:16:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615","variant_ids":[41884916318307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0118424-PB72","featured_media":{"alt":null,"id":23877048729699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884916318307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31472133177443,"product_id":7408387522659,"position":10,"created_at":"2024-05-03T15:16:55+08:00","updated_at":"2024-05-03T15:16:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615","variant_ids":[41884916318307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0118424-PB72","featured_media":{"alt":null,"id":23877048729699,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8702dd50e5e78074c45949c00c1d4a1c5f36bc_b06754f3-21dc-4837-b320-1a8f6db23289.webp?v=1714720615"}},"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: "停產" }