$product = {"id":7411429671011,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb97","description":null,"published_at":"2024-06-11T17:44:46+08:00","created_at":"2024-05-05T00:28:17+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":41898787962979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407916643,"product_id":7411429671011,"position":9,"created_at":"2024-05-05T00:28:39+08:00","updated_at":"2024-05-05T00:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119","variant_ids":[41898787962979]},"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-PB97","featured_media":{"alt":null,"id":23885659570275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f53fa4256bd268bd3f2e137aa6f1a0b64831a6_858dabef-a251-4d2f-a6aa-752c53c3d6c1.webp?v=1714840099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addc4a885831bb776e2c3a912b58f28792cdb38c_a0b29768-66d4-4742-ab93-b922efbe4cce.webp?v=1714840102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493fdd2a81c0b9cf0f3b0fadf44acbb60945ff23_787db514-0a84-4f55-ba3b-9e6f65dc305f.webp?v=1714840104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040433a00a27f12bb6ff2f470407493f363406bd_48ddebd9-f907-4fcc-aa8c-e56cf7cd211c.webp?v=1714840107","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517e21524ab1fa24aa6773475941a575b16a1e1c_d8f7061a-b372-4306-93ae-3b189522710e.webp?v=1714840109","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b67a5d3e31f11f7c51124089f0f45f28d1b110f9_9dffdd6f-519e-4733-800e-8b6f3c3477d2.webp?v=1714840112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f4092cba9604e69b5abf1e3f50ef7bbd859171_b6905dde-24f0-4075-b190-ba7a8481668e.webp?v=1714840115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0375d13dd553cf051bd62cbcff9512af2537085_6cc70ddd-c377-49bd-b53c-df1b1fc487c6.webp?v=1714840117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5474f41b9e277a1ee2812b6984db4a3816827a5_9b4248e0-ed4d-41ca-a448-cc096ea974b2.webp?v=1714840121"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f53fa4256bd268bd3f2e137aa6f1a0b64831a6_858dabef-a251-4d2f-a6aa-752c53c3d6c1.webp?v=1714840099","options":["color"],"media":[{"alt":null,"id":23885655605347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f53fa4256bd268bd3f2e137aa6f1a0b64831a6_858dabef-a251-4d2f-a6aa-752c53c3d6c1.webp?v=1714840099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f53fa4256bd268bd3f2e137aa6f1a0b64831a6_858dabef-a251-4d2f-a6aa-752c53c3d6c1.webp?v=1714840099","width":2000},{"alt":null,"id":23885656162403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addc4a885831bb776e2c3a912b58f28792cdb38c_a0b29768-66d4-4742-ab93-b922efbe4cce.webp?v=1714840102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/addc4a885831bb776e2c3a912b58f28792cdb38c_a0b29768-66d4-4742-ab93-b922efbe4cce.webp?v=1714840102","width":2000},{"alt":null,"id":23885656588387,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493fdd2a81c0b9cf0f3b0fadf44acbb60945ff23_787db514-0a84-4f55-ba3b-9e6f65dc305f.webp?v=1714840104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/493fdd2a81c0b9cf0f3b0fadf44acbb60945ff23_787db514-0a84-4f55-ba3b-9e6f65dc305f.webp?v=1714840104","width":2000},{"alt":null,"id":23885657014371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040433a00a27f12bb6ff2f470407493f363406bd_48ddebd9-f907-4fcc-aa8c-e56cf7cd211c.webp?v=1714840107"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/040433a00a27f12bb6ff2f470407493f363406bd_48ddebd9-f907-4fcc-aa8c-e56cf7cd211c.webp?v=1714840107","width":2000},{"alt":null,"id":23885657505891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517e21524ab1fa24aa6773475941a575b16a1e1c_d8f7061a-b372-4306-93ae-3b189522710e.webp?v=1714840109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/517e21524ab1fa24aa6773475941a575b16a1e1c_d8f7061a-b372-4306-93ae-3b189522710e.webp?v=1714840109","width":2000},{"alt":null,"id":23885657866339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b67a5d3e31f11f7c51124089f0f45f28d1b110f9_9dffdd6f-519e-4733-800e-8b6f3c3477d2.webp?v=1714840112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b67a5d3e31f11f7c51124089f0f45f28d1b110f9_9dffdd6f-519e-4733-800e-8b6f3c3477d2.webp?v=1714840112","width":2000},{"alt":null,"id":23885658620003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f4092cba9604e69b5abf1e3f50ef7bbd859171_b6905dde-24f0-4075-b190-ba7a8481668e.webp?v=1714840115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1f4092cba9604e69b5abf1e3f50ef7bbd859171_b6905dde-24f0-4075-b190-ba7a8481668e.webp?v=1714840115","width":2000},{"alt":null,"id":23885659111523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0375d13dd553cf051bd62cbcff9512af2537085_6cc70ddd-c377-49bd-b53c-df1b1fc487c6.webp?v=1714840117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0375d13dd553cf051bd62cbcff9512af2537085_6cc70ddd-c377-49bd-b53c-df1b1fc487c6.webp?v=1714840117","width":2000},{"alt":null,"id":23885659570275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119","width":2000},{"alt":null,"id":23885660127331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5474f41b9e277a1ee2812b6984db4a3816827a5_9b4248e0-ed4d-41ca-a448-cc096ea974b2.webp?v=1714840121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5474f41b9e277a1ee2812b6984db4a3816827a5_9b4248e0-ed4d-41ca-a448-cc096ea974b2.webp?v=1714840121","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898787962979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407916643,"product_id":7411429671011,"position":9,"created_at":"2024-05-05T00:28:39+08:00","updated_at":"2024-05-05T00:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119","variant_ids":[41898787962979]},"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-PB97","featured_media":{"alt":null,"id":23885659570275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898787962979,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31480407916643,"product_id":7411429671011,"position":9,"created_at":"2024-05-05T00:28:39+08:00","updated_at":"2024-05-05T00:28:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119","variant_ids":[41898787962979]},"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-PB97","featured_media":{"alt":null,"id":23885659570275,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1096c9c98f8552fa701a26043330afb0e952294_b8c209db-467a-4257-9457-fe1cd4c7da72.webp?v=1714840119"}},"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: "停產" }