$product = {"id":7415982358627,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-xs-max-mod-nx-printable-pb61","description":null,"published_at":"2024-06-11T16:49:35+08:00","created_at":"2024-05-06T12:36:29+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 XS Max","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":41916186525795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31490900164707,"product_id":7415982358627,"position":3,"created_at":"2024-05-06T12:36:36+08:00","updated_at":"2024-05-06T12:36:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196","variant_ids":[41916186525795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0108624-PB61","featured_media":{"alt":null,"id":23896307171427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f11dfeb7b35781273a5c95dce186c4eca40c4c3_035f90a9-5d5a-4915-9e1b-72f0db0aa70e.webp?v=1714970191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a121e8809d1260259009cde4c6936fa21ed754ff_675a6eea-27ad-44ce-b94b-4b97b2399bba.webp?v=1714970194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae457d15e74e7c9e66274d27879e0949fec806c_b27fd563-4b1e-4ebc-aaa7-03b04e6de3f9.webp?v=1714970198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9a88d3e02f501a084d79f3320e5e93361418f3_14543a1f-7309-41d0-947f-31abed7368b1.webp?v=1714970201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60574a92d4055bde891245973d77aae76b5b7fc0_a382be5e-23be-434e-8616-48828b0958f7.webp?v=1714970203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7577c80b3c27e8a3e35daf0a1b68bddda53fb7f6_2ec8389c-22b8-4891-ad33-4abcd270c05f.webp?v=1714970206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d10a4cf121937f436cc0f10c31773816e7c73e_2a98071b-c90e-43ab-a1d2-a292b3197db5.webp?v=1714970208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8fa5b7bd56ea4c452b3a3022c777ef9b44928d_a51df63c-a01e-46d7-b661-8b86541b4321.webp?v=1714970211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2ab9ee1805c0eaefb87f3d7037daf05308e1a3_40a6f31d-aee7-4fb0-be45-3775b6e7c860.webp?v=1714970213"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f11dfeb7b35781273a5c95dce186c4eca40c4c3_035f90a9-5d5a-4915-9e1b-72f0db0aa70e.webp?v=1714970191","options":["color"],"media":[{"alt":null,"id":23896306057315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f11dfeb7b35781273a5c95dce186c4eca40c4c3_035f90a9-5d5a-4915-9e1b-72f0db0aa70e.webp?v=1714970191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f11dfeb7b35781273a5c95dce186c4eca40c4c3_035f90a9-5d5a-4915-9e1b-72f0db0aa70e.webp?v=1714970191","width":2000},{"alt":null,"id":23896306843747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a121e8809d1260259009cde4c6936fa21ed754ff_675a6eea-27ad-44ce-b94b-4b97b2399bba.webp?v=1714970194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a121e8809d1260259009cde4c6936fa21ed754ff_675a6eea-27ad-44ce-b94b-4b97b2399bba.webp?v=1714970194","width":2000},{"alt":null,"id":23896307171427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196","width":2000},{"alt":null,"id":23896307761251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae457d15e74e7c9e66274d27879e0949fec806c_b27fd563-4b1e-4ebc-aaa7-03b04e6de3f9.webp?v=1714970198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bae457d15e74e7c9e66274d27879e0949fec806c_b27fd563-4b1e-4ebc-aaa7-03b04e6de3f9.webp?v=1714970198","width":2000},{"alt":null,"id":23896308154467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9a88d3e02f501a084d79f3320e5e93361418f3_14543a1f-7309-41d0-947f-31abed7368b1.webp?v=1714970201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a9a88d3e02f501a084d79f3320e5e93361418f3_14543a1f-7309-41d0-947f-31abed7368b1.webp?v=1714970201","width":2000},{"alt":null,"id":23896308645987,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60574a92d4055bde891245973d77aae76b5b7fc0_a382be5e-23be-434e-8616-48828b0958f7.webp?v=1714970203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60574a92d4055bde891245973d77aae76b5b7fc0_a382be5e-23be-434e-8616-48828b0958f7.webp?v=1714970203","width":2000},{"alt":null,"id":23896309432419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7577c80b3c27e8a3e35daf0a1b68bddda53fb7f6_2ec8389c-22b8-4891-ad33-4abcd270c05f.webp?v=1714970206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7577c80b3c27e8a3e35daf0a1b68bddda53fb7f6_2ec8389c-22b8-4891-ad33-4abcd270c05f.webp?v=1714970206","width":2000},{"alt":null,"id":23896309891171,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d10a4cf121937f436cc0f10c31773816e7c73e_2a98071b-c90e-43ab-a1d2-a292b3197db5.webp?v=1714970208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81d10a4cf121937f436cc0f10c31773816e7c73e_2a98071b-c90e-43ab-a1d2-a292b3197db5.webp?v=1714970208","width":2000},{"alt":null,"id":23896310841443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8fa5b7bd56ea4c452b3a3022c777ef9b44928d_a51df63c-a01e-46d7-b661-8b86541b4321.webp?v=1714970211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c8fa5b7bd56ea4c452b3a3022c777ef9b44928d_a51df63c-a01e-46d7-b661-8b86541b4321.webp?v=1714970211","width":2000},{"alt":null,"id":23896311529571,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2ab9ee1805c0eaefb87f3d7037daf05308e1a3_40a6f31d-aee7-4fb0-be45-3775b6e7c860.webp?v=1714970213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f2ab9ee1805c0eaefb87f3d7037daf05308e1a3_40a6f31d-aee7-4fb0-be45-3775b6e7c860.webp?v=1714970213","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916186525795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31490900164707,"product_id":7415982358627,"position":3,"created_at":"2024-05-06T12:36:36+08:00","updated_at":"2024-05-06T12:36:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196","variant_ids":[41916186525795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0108624-PB61","featured_media":{"alt":null,"id":23896307171427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916186525795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31490900164707,"product_id":7415982358627,"position":3,"created_at":"2024-05-06T12:36:36+08:00","updated_at":"2024-05-06T12:36:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196","variant_ids":[41916186525795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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":"NPB0108624-PB61","featured_media":{"alt":null,"id":23896307171427,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b849df37c7835eb5424562116bad4acac1558e38_8dca9847-2544-4c79-b541-2a0c286231bc.webp?v=1714970196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }