$product = {"id":7416340938851,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-8-mod-nx-printable-pb79","description":null,"published_at":"2024-06-11T16:56:23+08:00","created_at":"2024-05-06T14:37:56+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 8","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":41918683021411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491887399011,"product_id":7416340938851,"position":1,"created_at":"2024-05-06T14:37:58+08:00","updated_at":"2024-05-06T14:37:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","variant_ids":[41918683021411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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":"NPB0105424-PB79","featured_media":{"alt":null,"id":23897300238435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777228a04be8068f1db2498ec2842aa721a54459_ca470963-39e6-4fca-a810-fe38e12872c1.webp?v=1714977481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef36f1ca89ea5934e882b9a54fc2d00dc121e92_00ed7e77-9d81-4e8d-8b50-9464294b040f.webp?v=1714977483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc86bd1999648e95211123d1b95a3e715c13563e_e51369a3-f8ea-4842-a03c-a1d8e37e54bd.webp?v=1714977485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ce5b293abded368e738d80c4c2dd83cc7ff21c_7fd5f34f-dcd7-44b7-b079-ce268e20133c.webp?v=1714977487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aabbe926b6a74f0a8ffce9667c326af6128c5c0_92bda584-7e8c-4bc7-a3f3-48646badd9bb.webp?v=1714977490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b0cb1e58f171d3dc263dc899c77eb2aacc4f4f_28cfc35d-36b9-4eb1-b221-f8e03c858a3d.webp?v=1714977492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a954622422371d6bb46c4d30bf84fc6c38e1be_36424274-c9eb-4702-ad7e-390b2f62e0f3.webp?v=1714977494","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11506b87dc4b015963acec4ba9079ecb25d675d_5ad39bad-64bf-462f-93c5-c3104fbe2d38.webp?v=1714977497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b098f7f400f9d57e63173e777d0a6e13468193c_526191d2-3964-4bd7-aed5-4bac3a8313b9.webp?v=1714977499"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","options":["color"],"media":[{"alt":null,"id":23897300238435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","width":2000},{"alt":null,"id":23897300697187,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777228a04be8068f1db2498ec2842aa721a54459_ca470963-39e6-4fca-a810-fe38e12872c1.webp?v=1714977481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777228a04be8068f1db2498ec2842aa721a54459_ca470963-39e6-4fca-a810-fe38e12872c1.webp?v=1714977481","width":2000},{"alt":null,"id":23897301024867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef36f1ca89ea5934e882b9a54fc2d00dc121e92_00ed7e77-9d81-4e8d-8b50-9464294b040f.webp?v=1714977483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef36f1ca89ea5934e882b9a54fc2d00dc121e92_00ed7e77-9d81-4e8d-8b50-9464294b040f.webp?v=1714977483","width":2000},{"alt":null,"id":23897301745763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc86bd1999648e95211123d1b95a3e715c13563e_e51369a3-f8ea-4842-a03c-a1d8e37e54bd.webp?v=1714977485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc86bd1999648e95211123d1b95a3e715c13563e_e51369a3-f8ea-4842-a03c-a1d8e37e54bd.webp?v=1714977485","width":2000},{"alt":null,"id":23897302106211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ce5b293abded368e738d80c4c2dd83cc7ff21c_7fd5f34f-dcd7-44b7-b079-ce268e20133c.webp?v=1714977487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32ce5b293abded368e738d80c4c2dd83cc7ff21c_7fd5f34f-dcd7-44b7-b079-ce268e20133c.webp?v=1714977487","width":2000},{"alt":null,"id":23897302630499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aabbe926b6a74f0a8ffce9667c326af6128c5c0_92bda584-7e8c-4bc7-a3f3-48646badd9bb.webp?v=1714977490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aabbe926b6a74f0a8ffce9667c326af6128c5c0_92bda584-7e8c-4bc7-a3f3-48646badd9bb.webp?v=1714977490","width":2000},{"alt":null,"id":23897303023715,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b0cb1e58f171d3dc263dc899c77eb2aacc4f4f_28cfc35d-36b9-4eb1-b221-f8e03c858a3d.webp?v=1714977492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b0cb1e58f171d3dc263dc899c77eb2aacc4f4f_28cfc35d-36b9-4eb1-b221-f8e03c858a3d.webp?v=1714977492","width":2000},{"alt":null,"id":23897303449699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a954622422371d6bb46c4d30bf84fc6c38e1be_36424274-c9eb-4702-ad7e-390b2f62e0f3.webp?v=1714977494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6a954622422371d6bb46c4d30bf84fc6c38e1be_36424274-c9eb-4702-ad7e-390b2f62e0f3.webp?v=1714977494","width":2000},{"alt":null,"id":23897303810147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11506b87dc4b015963acec4ba9079ecb25d675d_5ad39bad-64bf-462f-93c5-c3104fbe2d38.webp?v=1714977497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c11506b87dc4b015963acec4ba9079ecb25d675d_5ad39bad-64bf-462f-93c5-c3104fbe2d38.webp?v=1714977497","width":2000},{"alt":null,"id":23897304268899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b098f7f400f9d57e63173e777d0a6e13468193c_526191d2-3964-4bd7-aed5-4bac3a8313b9.webp?v=1714977499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b098f7f400f9d57e63173e777d0a6e13468193c_526191d2-3964-4bd7-aed5-4bac3a8313b9.webp?v=1714977499","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918683021411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491887399011,"product_id":7416340938851,"position":1,"created_at":"2024-05-06T14:37:58+08:00","updated_at":"2024-05-06T14:37:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","variant_ids":[41918683021411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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":"NPB0105424-PB79","featured_media":{"alt":null,"id":23897300238435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918683021411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491887399011,"product_id":7416340938851,"position":1,"created_at":"2024-05-06T14:37:58+08:00","updated_at":"2024-05-06T14:37:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478","variant_ids":[41918683021411]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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":"NPB0105424-PB79","featured_media":{"alt":null,"id":23897300238435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3298e70ee8041762de21f3911e0882b796464068_d8337c71-7581-49cb-bbb8-3bbe1151cddd.webp?v=1714977478"}},"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: "停產" }