$product = {"id":7411447988323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern BB8-Galaxy","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb59","description":null,"published_at":"2024-06-11T17:45:17+08:00","created_at":"2024-05-05T00:31:46+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":41899015667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB59","requires_shipping":true,"taxable":true,"featured_image":{"id":31480453496931,"product_id":7411447988323,"position":10,"created_at":"2024-05-05T00:32:09+08:00","updated_at":"2024-05-05T00:32:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329","variant_ids":[41899015667811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern BB8-Galaxy - 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-PB59","featured_media":{"alt":null,"id":23885705248867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66b72e331b3c7ca9ecee87b44ca33c1850c0514_4a08c622-46ae-44fd-bd40-4464ab4c503a.webp?v=1714840308","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7664259aa4a577262d2588ddf835b49aaea1cdca_37a15559-f6af-4695-ab3f-bae6626ecf4c.webp?v=1714840310","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecfb4ffbc41291e61ffb0ef0d8a8285aaf11c858_0c186a58-f483-438e-84b9-ee3337833c38.webp?v=1714840313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb316981e97df79635f1bba311bd4f74fcdf662_7fcec22b-94a5-4d4c-b9fe-0b7ab96d3bc9.webp?v=1714840315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22a0ed0c7176f6a779292f972a334532e967f3d3_b907387a-8ee4-45d8-88c1-ab7a52b5455e.webp?v=1714840318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f815390085f21ec5d3defff2a924ad754497f535_70615f66-6cb3-48a7-a5b7-63815071860c.webp?v=1714840320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/061808a4ca4a35bcbac01deb5b556e57e428d972_0a867d3f-8464-45a7-80f7-19ccf3707750.webp?v=1714840322","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f571cf026dc8f1710171cb291f220082b6f523_43bdf5f4-e1da-43c5-a979-5f5fba8526a3.webp?v=1714840324","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26df76543113379ed4f2ceba579cad36ffee2ec_1e3b1882-8aa6-47d4-9ec2-a4e166261794.webp?v=1714840327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66b72e331b3c7ca9ecee87b44ca33c1850c0514_4a08c622-46ae-44fd-bd40-4464ab4c503a.webp?v=1714840308","options":["color"],"media":[{"alt":null,"id":23885700890723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66b72e331b3c7ca9ecee87b44ca33c1850c0514_4a08c622-46ae-44fd-bd40-4464ab4c503a.webp?v=1714840308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b66b72e331b3c7ca9ecee87b44ca33c1850c0514_4a08c622-46ae-44fd-bd40-4464ab4c503a.webp?v=1714840308","width":2000},{"alt":null,"id":23885701218403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7664259aa4a577262d2588ddf835b49aaea1cdca_37a15559-f6af-4695-ab3f-bae6626ecf4c.webp?v=1714840310"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7664259aa4a577262d2588ddf835b49aaea1cdca_37a15559-f6af-4695-ab3f-bae6626ecf4c.webp?v=1714840310","width":2000},{"alt":null,"id":23885701709923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecfb4ffbc41291e61ffb0ef0d8a8285aaf11c858_0c186a58-f483-438e-84b9-ee3337833c38.webp?v=1714840313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecfb4ffbc41291e61ffb0ef0d8a8285aaf11c858_0c186a58-f483-438e-84b9-ee3337833c38.webp?v=1714840313","width":2000},{"alt":null,"id":23885702234211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb316981e97df79635f1bba311bd4f74fcdf662_7fcec22b-94a5-4d4c-b9fe-0b7ab96d3bc9.webp?v=1714840315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/efb316981e97df79635f1bba311bd4f74fcdf662_7fcec22b-94a5-4d4c-b9fe-0b7ab96d3bc9.webp?v=1714840315","width":2000},{"alt":null,"id":23885702692963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22a0ed0c7176f6a779292f972a334532e967f3d3_b907387a-8ee4-45d8-88c1-ab7a52b5455e.webp?v=1714840318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22a0ed0c7176f6a779292f972a334532e967f3d3_b907387a-8ee4-45d8-88c1-ab7a52b5455e.webp?v=1714840318","width":2000},{"alt":null,"id":23885703217251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f815390085f21ec5d3defff2a924ad754497f535_70615f66-6cb3-48a7-a5b7-63815071860c.webp?v=1714840320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f815390085f21ec5d3defff2a924ad754497f535_70615f66-6cb3-48a7-a5b7-63815071860c.webp?v=1714840320","width":2000},{"alt":null,"id":23885703708771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/061808a4ca4a35bcbac01deb5b556e57e428d972_0a867d3f-8464-45a7-80f7-19ccf3707750.webp?v=1714840322"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/061808a4ca4a35bcbac01deb5b556e57e428d972_0a867d3f-8464-45a7-80f7-19ccf3707750.webp?v=1714840322","width":2000},{"alt":null,"id":23885704298595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f571cf026dc8f1710171cb291f220082b6f523_43bdf5f4-e1da-43c5-a979-5f5fba8526a3.webp?v=1714840324"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71f571cf026dc8f1710171cb291f220082b6f523_43bdf5f4-e1da-43c5-a979-5f5fba8526a3.webp?v=1714840324","width":2000},{"alt":null,"id":23885704757347,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26df76543113379ed4f2ceba579cad36ffee2ec_1e3b1882-8aa6-47d4-9ec2-a4e166261794.webp?v=1714840327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e26df76543113379ed4f2ceba579cad36ffee2ec_1e3b1882-8aa6-47d4-9ec2-a4e166261794.webp?v=1714840327","width":2000},{"alt":null,"id":23885705248867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41899015667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB59","requires_shipping":true,"taxable":true,"featured_image":{"id":31480453496931,"product_id":7411447988323,"position":10,"created_at":"2024-05-05T00:32:09+08:00","updated_at":"2024-05-05T00:32:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329","variant_ids":[41899015667811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern BB8-Galaxy - 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-PB59","featured_media":{"alt":null,"id":23885705248867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41899015667811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB59","requires_shipping":true,"taxable":true,"featured_image":{"id":31480453496931,"product_id":7411447988323,"position":10,"created_at":"2024-05-05T00:32:09+08:00","updated_at":"2024-05-05T00:32:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329","variant_ids":[41899015667811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Pattern BB8-Galaxy - 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-PB59","featured_media":{"alt":null,"id":23885705248867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444862d03bcc458ae55440db73c71fea8f3fccf4_4a811928-fb56-4bbf-aff9-3af01cf5802f.webp?v=1714840329"}},"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: "停產" }