$product = {"id":7411314720867,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb28","description":null,"published_at":"2024-06-11T17:41:36+08:00","created_at":"2024-05-05T00:05:52+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":41897331392611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120049763,"product_id":7411314720867,"position":6,"created_at":"2024-05-05T00:06:07+08:00","updated_at":"2024-05-05T00:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767","variant_ids":[41897331392611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23885370916963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a54e222a48c2b722e68496ecc59d1d8b2e2ee2c_d83c3bcf-fd08-45a8-b8f0-5b4f35885fad.webp?v=1714838754","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4744757fe727decff4f207a4f3724d9e0c86572d_41ca3748-d675-4ed5-b21c-c42d6af26cb0.webp?v=1714838757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8795086f08e6a684d0e2663d3de4f1e40ed3fc58_a9a152ae-bbd4-493e-bf80-492e769fc3fb.webp?v=1714838759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abf1952ae0b696a5b30b4b1ac5df9930da4a90e_b350e8ba-b1be-44ee-83e0-831c9de53968.webp?v=1714838762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8141a3e23783be5de425510e0c3b100f349d87_460cea0e-7c0f-436b-a4a0-492c8a48a7c9.webp?v=1714838764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120c0174696f1364aa32427d4ebfeeea8ef41f1c_8367849c-246f-49cc-93c4-7f617fe486f3.webp?v=1714838769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491923817a06e018556bbe9c6e2f3fa3f5601f34_b4ec1e8d-f685-474e-bf5d-672239bf98b6.webp?v=1714838772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2d1b7882c41753843ce3472f5cf8af238b1065_abddbc25-116d-47ea-a64a-85899240ce44.webp?v=1714838774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f77c5222f98d4e6a840ea3ccf9c3a4010fe5a2_f3f3e0ad-722e-487c-9197-618f415e8b62.webp?v=1714838777"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a54e222a48c2b722e68496ecc59d1d8b2e2ee2c_d83c3bcf-fd08-45a8-b8f0-5b4f35885fad.webp?v=1714838754","options":["color"],"media":[{"alt":null,"id":23885368262755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a54e222a48c2b722e68496ecc59d1d8b2e2ee2c_d83c3bcf-fd08-45a8-b8f0-5b4f35885fad.webp?v=1714838754"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a54e222a48c2b722e68496ecc59d1d8b2e2ee2c_d83c3bcf-fd08-45a8-b8f0-5b4f35885fad.webp?v=1714838754","width":2000},{"alt":null,"id":23885368787043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4744757fe727decff4f207a4f3724d9e0c86572d_41ca3748-d675-4ed5-b21c-c42d6af26cb0.webp?v=1714838757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4744757fe727decff4f207a4f3724d9e0c86572d_41ca3748-d675-4ed5-b21c-c42d6af26cb0.webp?v=1714838757","width":2000},{"alt":null,"id":23885369376867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8795086f08e6a684d0e2663d3de4f1e40ed3fc58_a9a152ae-bbd4-493e-bf80-492e769fc3fb.webp?v=1714838759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8795086f08e6a684d0e2663d3de4f1e40ed3fc58_a9a152ae-bbd4-493e-bf80-492e769fc3fb.webp?v=1714838759","width":2000},{"alt":null,"id":23885369868387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abf1952ae0b696a5b30b4b1ac5df9930da4a90e_b350e8ba-b1be-44ee-83e0-831c9de53968.webp?v=1714838762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abf1952ae0b696a5b30b4b1ac5df9930da4a90e_b350e8ba-b1be-44ee-83e0-831c9de53968.webp?v=1714838762","width":2000},{"alt":null,"id":23885370490979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8141a3e23783be5de425510e0c3b100f349d87_460cea0e-7c0f-436b-a4a0-492c8a48a7c9.webp?v=1714838764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a8141a3e23783be5de425510e0c3b100f349d87_460cea0e-7c0f-436b-a4a0-492c8a48a7c9.webp?v=1714838764","width":2000},{"alt":null,"id":23885370916963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767","width":2000},{"alt":null,"id":23885371736163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120c0174696f1364aa32427d4ebfeeea8ef41f1c_8367849c-246f-49cc-93c4-7f617fe486f3.webp?v=1714838769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/120c0174696f1364aa32427d4ebfeeea8ef41f1c_8367849c-246f-49cc-93c4-7f617fe486f3.webp?v=1714838769","width":2000},{"alt":null,"id":23885372588131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491923817a06e018556bbe9c6e2f3fa3f5601f34_b4ec1e8d-f685-474e-bf5d-672239bf98b6.webp?v=1714838772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/491923817a06e018556bbe9c6e2f3fa3f5601f34_b4ec1e8d-f685-474e-bf5d-672239bf98b6.webp?v=1714838772","width":2000},{"alt":null,"id":23885373112419,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2d1b7882c41753843ce3472f5cf8af238b1065_abddbc25-116d-47ea-a64a-85899240ce44.webp?v=1714838774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2d1b7882c41753843ce3472f5cf8af238b1065_abddbc25-116d-47ea-a64a-85899240ce44.webp?v=1714838774","width":2000},{"alt":null,"id":23885373636707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f77c5222f98d4e6a840ea3ccf9c3a4010fe5a2_f3f3e0ad-722e-487c-9197-618f415e8b62.webp?v=1714838777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58f77c5222f98d4e6a840ea3ccf9c3a4010fe5a2_f3f3e0ad-722e-487c-9197-618f415e8b62.webp?v=1714838777","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897331392611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120049763,"product_id":7411314720867,"position":6,"created_at":"2024-05-05T00:06:07+08:00","updated_at":"2024-05-05T00:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767","variant_ids":[41897331392611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23885370916963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897331392611,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31480120049763,"product_id":7411314720867,"position":6,"created_at":"2024-05-05T00:06:07+08:00","updated_at":"2024-05-05T00:06:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767","variant_ids":[41897331392611]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23885370916963,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50a69cfdf33a6d7fe9d41d5e0046656858e401ee_fc00202a-396c-4348-ae38-56a718f7b5e5.webp?v=1714838767"}},"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: "停產" }