$product = {"id":7407609086051,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha!","handle":"iphone-15-plus-mod-nx-printable-yf08","description":null,"published_at":"2024-06-11T16:20:28+08:00","created_at":"2024-05-03T10:19:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","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":41876754464867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470024818787,"product_id":7407609086051,"position":6,"created_at":"2024-05-03T10:19:51+08:00","updated_at":"2024-05-03T10:19:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791","variant_ids":[41876754464867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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":"NPB0129624-YF08","featured_media":{"alt":null,"id":23874927001699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876754661475,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470026293347,"product_id":7407609086051,"position":9,"created_at":"2024-05-03T10:19:58+08:00","updated_at":"2024-05-03T10:19:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798","variant_ids":[41876754661475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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":"NPB0129657-YF08","featured_media":{"alt":null,"id":23874928509027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b150c7ae80d50ce7b46dc4d6fe50d689f87563_80028612-6b86-443d-83d1-7fb096c4bef7.webp?v=1714702776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45503517ad57ab9d910435b3247e4f2bd00e26b4_ef3af15d-a9e3-4165-9dd2-517d07c8adfa.webp?v=1714702779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e885eccbb31456a4f5c1f390ea64562b134876ab_32fc6ba4-073a-4fa8-9bfd-ecd09d62389f.webp?v=1714702781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227de3ff4583b883a0ef22687c870a822b983bf2_3d9b831a-fd17-480a-acf0-353bd9f9f7ad.webp?v=1714702784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65dd55a1a6056f0a21d2b19cac3050fe6ba788db_679a3ce9-c8ed-4d92-af9c-1036e3b258c5.webp?v=1714702786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cce93df934a0c3f25eaa67e4aee50d8933f479f_8b50c5f4-f13a-4821-8ead-ebe570b32280.webp?v=1714702793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370b07188ea4fcbf4d0155923c7c3e00c137121_756b4f08-564b-4de5-accc-d3b63d39fe5e.webp?v=1714702796","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b150c7ae80d50ce7b46dc4d6fe50d689f87563_80028612-6b86-443d-83d1-7fb096c4bef7.webp?v=1714702776","options":["color"],"media":[{"alt":null,"id":23874923626595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b150c7ae80d50ce7b46dc4d6fe50d689f87563_80028612-6b86-443d-83d1-7fb096c4bef7.webp?v=1714702776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50b150c7ae80d50ce7b46dc4d6fe50d689f87563_80028612-6b86-443d-83d1-7fb096c4bef7.webp?v=1714702776","width":2000},{"alt":null,"id":23874924216419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45503517ad57ab9d910435b3247e4f2bd00e26b4_ef3af15d-a9e3-4165-9dd2-517d07c8adfa.webp?v=1714702779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45503517ad57ab9d910435b3247e4f2bd00e26b4_ef3af15d-a9e3-4165-9dd2-517d07c8adfa.webp?v=1714702779","width":2000},{"alt":null,"id":23874924871779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e885eccbb31456a4f5c1f390ea64562b134876ab_32fc6ba4-073a-4fa8-9bfd-ecd09d62389f.webp?v=1714702781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e885eccbb31456a4f5c1f390ea64562b134876ab_32fc6ba4-073a-4fa8-9bfd-ecd09d62389f.webp?v=1714702781","width":2000},{"alt":null,"id":23874925396067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227de3ff4583b883a0ef22687c870a822b983bf2_3d9b831a-fd17-480a-acf0-353bd9f9f7ad.webp?v=1714702784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/227de3ff4583b883a0ef22687c870a822b983bf2_3d9b831a-fd17-480a-acf0-353bd9f9f7ad.webp?v=1714702784","width":2000},{"alt":null,"id":23874926018659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65dd55a1a6056f0a21d2b19cac3050fe6ba788db_679a3ce9-c8ed-4d92-af9c-1036e3b258c5.webp?v=1714702786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65dd55a1a6056f0a21d2b19cac3050fe6ba788db_679a3ce9-c8ed-4d92-af9c-1036e3b258c5.webp?v=1714702786","width":2000},{"alt":null,"id":23874927001699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791","width":2000},{"alt":null,"id":23874927394915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cce93df934a0c3f25eaa67e4aee50d8933f479f_8b50c5f4-f13a-4821-8ead-ebe570b32280.webp?v=1714702793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cce93df934a0c3f25eaa67e4aee50d8933f479f_8b50c5f4-f13a-4821-8ead-ebe570b32280.webp?v=1714702793","width":2000},{"alt":null,"id":23874927919203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370b07188ea4fcbf4d0155923c7c3e00c137121_756b4f08-564b-4de5-accc-d3b63d39fe5e.webp?v=1714702796"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0370b07188ea4fcbf4d0155923c7c3e00c137121_756b4f08-564b-4de5-accc-d3b63d39fe5e.webp?v=1714702796","width":2000},{"alt":null,"id":23874928509027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876754464867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470024818787,"product_id":7407609086051,"position":6,"created_at":"2024-05-03T10:19:51+08:00","updated_at":"2024-05-03T10:19:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791","variant_ids":[41876754464867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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":"NPB0129624-YF08","featured_media":{"alt":null,"id":23874927001699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876754661475,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470026293347,"product_id":7407609086051,"position":9,"created_at":"2024-05-03T10:19:58+08:00","updated_at":"2024-05-03T10:19:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798","variant_ids":[41876754661475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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":"NPB0129657-YF08","featured_media":{"alt":null,"id":23874928509027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c509bcc719f12b293a0e953290808400f1e06b3f_4470a468-2e41-4858-bc54-d0c5051347d6.webp?v=1714702798"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876754464867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470024818787,"product_id":7407609086051,"position":6,"created_at":"2024-05-03T10:19:51+08:00","updated_at":"2024-05-03T10:19:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791","variant_ids":[41876754464867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-Aloha! - 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":"NPB0129624-YF08","featured_media":{"alt":null,"id":23874927001699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a39f56b9a657cef078338e1093bcec250a82ba2_3471881f-f6cf-42a0-8d6e-2ffc8e5474db.webp?v=1714702791"}},"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: "停產" }