$product = {"id":7411243057251,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb07","description":null,"published_at":"2024-06-11T17:39:43+08:00","created_at":"2024-05-04T23:52:15+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":41896436367459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479943790691,"product_id":7411243057251,"position":10,"created_at":"2024-05-04T23:52:38+08:00","updated_at":"2024-05-04T23:52:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958","variant_ids":[41896436367459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23885194264675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342f42b3cd97e606b4c1117d150c9e4e8e5bef0c_db086fdc-a500-4030-9a09-51340c3cf164.webp?v=1714837937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613f440286291b5c4c1ca7560f2e33bf3f6ba826_e2731a4c-d261-4203-a315-09d8c98eba45.webp?v=1714837939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e8637d95fa38597014330d31505b13d3562db7_79b8fa05-a913-458f-bc4a-c12928c8c7b4.webp?v=1714837942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bcb81868c556aeb009993753520e47f282ed04_ccc2fcbc-73cb-45a2-af47-7fc0fdddcd57.webp?v=1714837944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd45a777880b1a3d5f03ae4e6d697a231bc0eb54_ec4bf8ba-591e-4e64-898c-03fe4f321159.webp?v=1714837946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eac0c8a4aa174adbb688c548a4ac4ed57fe4cf6_51bc18eb-5a9e-481a-8ee4-e62ee13eef1e.webp?v=1714837948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52073aa4cd0dca98d3baa15a7a5a22f196de0339_55d08003-52f8-4d36-a57a-848aa63d3312.webp?v=1714837951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be461fd340665787c4971beed61258cb531ad12e_0bd78e90-c792-4324-9963-e6f5c3afad58.webp?v=1714837953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927555d20df04a3d72c795569cabd7c6e8378266_60398950-e364-4738-a600-a760a7d74560.webp?v=1714837956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342f42b3cd97e606b4c1117d150c9e4e8e5bef0c_db086fdc-a500-4030-9a09-51340c3cf164.webp?v=1714837937","options":["color"],"media":[{"alt":null,"id":23885189644387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342f42b3cd97e606b4c1117d150c9e4e8e5bef0c_db086fdc-a500-4030-9a09-51340c3cf164.webp?v=1714837937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342f42b3cd97e606b4c1117d150c9e4e8e5bef0c_db086fdc-a500-4030-9a09-51340c3cf164.webp?v=1714837937","width":2000},{"alt":null,"id":23885190103139,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613f440286291b5c4c1ca7560f2e33bf3f6ba826_e2731a4c-d261-4203-a315-09d8c98eba45.webp?v=1714837939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/613f440286291b5c4c1ca7560f2e33bf3f6ba826_e2731a4c-d261-4203-a315-09d8c98eba45.webp?v=1714837939","width":2000},{"alt":null,"id":23885190627427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e8637d95fa38597014330d31505b13d3562db7_79b8fa05-a913-458f-bc4a-c12928c8c7b4.webp?v=1714837942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66e8637d95fa38597014330d31505b13d3562db7_79b8fa05-a913-458f-bc4a-c12928c8c7b4.webp?v=1714837942","width":2000},{"alt":null,"id":23885191118947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bcb81868c556aeb009993753520e47f282ed04_ccc2fcbc-73cb-45a2-af47-7fc0fdddcd57.webp?v=1714837944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3bcb81868c556aeb009993753520e47f282ed04_ccc2fcbc-73cb-45a2-af47-7fc0fdddcd57.webp?v=1714837944","width":2000},{"alt":null,"id":23885191479395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd45a777880b1a3d5f03ae4e6d697a231bc0eb54_ec4bf8ba-591e-4e64-898c-03fe4f321159.webp?v=1714837946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd45a777880b1a3d5f03ae4e6d697a231bc0eb54_ec4bf8ba-591e-4e64-898c-03fe4f321159.webp?v=1714837946","width":2000},{"alt":null,"id":23885192298595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eac0c8a4aa174adbb688c548a4ac4ed57fe4cf6_51bc18eb-5a9e-481a-8ee4-e62ee13eef1e.webp?v=1714837948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eac0c8a4aa174adbb688c548a4ac4ed57fe4cf6_51bc18eb-5a9e-481a-8ee4-e62ee13eef1e.webp?v=1714837948","width":2000},{"alt":null,"id":23885192724579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52073aa4cd0dca98d3baa15a7a5a22f196de0339_55d08003-52f8-4d36-a57a-848aa63d3312.webp?v=1714837951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52073aa4cd0dca98d3baa15a7a5a22f196de0339_55d08003-52f8-4d36-a57a-848aa63d3312.webp?v=1714837951","width":2000},{"alt":null,"id":23885193379939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be461fd340665787c4971beed61258cb531ad12e_0bd78e90-c792-4324-9963-e6f5c3afad58.webp?v=1714837953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be461fd340665787c4971beed61258cb531ad12e_0bd78e90-c792-4324-9963-e6f5c3afad58.webp?v=1714837953","width":2000},{"alt":null,"id":23885193740387,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927555d20df04a3d72c795569cabd7c6e8378266_60398950-e364-4738-a600-a760a7d74560.webp?v=1714837956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/927555d20df04a3d72c795569cabd7c6e8378266_60398950-e364-4738-a600-a760a7d74560.webp?v=1714837956","width":2000},{"alt":null,"id":23885194264675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896436367459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479943790691,"product_id":7411243057251,"position":10,"created_at":"2024-05-04T23:52:38+08:00","updated_at":"2024-05-04T23:52:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958","variant_ids":[41896436367459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23885194264675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896436367459,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479943790691,"product_id":7411243057251,"position":10,"created_at":"2024-05-04T23:52:38+08:00","updated_at":"2024-05-04T23:52:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958","variant_ids":[41896436367459]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - R2D2-噴漆黑 - 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-PB07","featured_media":{"alt":null,"id":23885194264675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a704514e2466bcdc4d603594a86f1efb8840212_434b4f46-78b0-4445-a033-4709d57c4e5d.webp?v=1714837958"}},"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: "停產" }