$product = {"id":7884313395299,"title":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常","handle":"iphone-15-plus-solidx-ifc14","description":null,"published_at":"2025-09-19T09:32:58+08:00","created_at":"2025-09-16T12:42:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-sakamoto-days","device-iPhone 15 Plus","merge","reseller-sakamoto-days"],"price":125000,"price_min":125000,"price_max":125000,"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":43697703223395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-IFC14","requires_shipping":true,"taxable":true,"featured_image":{"id":34475404329059,"product_id":7884313395299,"position":10,"created_at":"2025-09-16T12:42:43+08:00","updated_at":"2025-09-16T12:42:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766","variant_ids":[43697703223395]},"available":true,"name":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-IFC14","featured_media":{"alt":null,"id":26047009914979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697703354467,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-IFC14","requires_shipping":true,"taxable":true,"featured_image":{"id":34475402494051,"product_id":7884313395299,"position":2,"created_at":"2025-09-16T12:42:39+08:00","updated_at":"2025-09-16T12:42:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761","variant_ids":[43697703354467]},"available":true,"name":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-IFC14","featured_media":{"alt":null,"id":26047008079971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57cab9c2e32001525d2eea521749f65f216801.webp?v=1757997760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/170b5a8808f78149fe272fbd21593df2f8a34be1.webp?v=1757997762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faea4aa1869001d89f5a2f8e0b8558868c87d775.webp?v=1757997762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe1a01951a0da20d3ce2ca7e0a1ac70e8d8266c.webp?v=1757997762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a8003cd1927c8703f87572c66b17e0a1223d157.webp?v=1757997763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/857dfef9ec14fb0f7d417ad7445defbda89401d7.webp?v=1757997764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550b10ce3d594bbe27d137ed850cfd9d1e2ed70f.webp?v=1757997764","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff23d0de83211ae8f6a4e69b950804dafa2b468.webp?v=1757997765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57cab9c2e32001525d2eea521749f65f216801.webp?v=1757997760","options":["color"],"media":[{"alt":null,"id":26047007916131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57cab9c2e32001525d2eea521749f65f216801.webp?v=1757997760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e57cab9c2e32001525d2eea521749f65f216801.webp?v=1757997760","width":2000},{"alt":null,"id":26047008079971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761","width":2000},{"alt":null,"id":26047008374883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/170b5a8808f78149fe272fbd21593df2f8a34be1.webp?v=1757997762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/170b5a8808f78149fe272fbd21593df2f8a34be1.webp?v=1757997762","width":2000},{"alt":null,"id":26047008571491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faea4aa1869001d89f5a2f8e0b8558868c87d775.webp?v=1757997762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faea4aa1869001d89f5a2f8e0b8558868c87d775.webp?v=1757997762","width":2000},{"alt":null,"id":26047008833635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe1a01951a0da20d3ce2ca7e0a1ac70e8d8266c.webp?v=1757997762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fe1a01951a0da20d3ce2ca7e0a1ac70e8d8266c.webp?v=1757997762","width":2000},{"alt":null,"id":26047009030243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a8003cd1927c8703f87572c66b17e0a1223d157.webp?v=1757997763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a8003cd1927c8703f87572c66b17e0a1223d157.webp?v=1757997763","width":2000},{"alt":null,"id":26047009161315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/857dfef9ec14fb0f7d417ad7445defbda89401d7.webp?v=1757997764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/857dfef9ec14fb0f7d417ad7445defbda89401d7.webp?v=1757997764","width":2000},{"alt":null,"id":26047009390691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550b10ce3d594bbe27d137ed850cfd9d1e2ed70f.webp?v=1757997764"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550b10ce3d594bbe27d137ed850cfd9d1e2ed70f.webp?v=1757997764","width":2000},{"alt":null,"id":26047009554531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff23d0de83211ae8f6a4e69b950804dafa2b468.webp?v=1757997765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ff23d0de83211ae8f6a4e69b950804dafa2b468.webp?v=1757997765","width":2000},{"alt":null,"id":26047009914979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43697703223395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-IFC14","requires_shipping":true,"taxable":true,"featured_image":{"id":34475404329059,"product_id":7884313395299,"position":10,"created_at":"2025-09-16T12:42:43+08:00","updated_at":"2025-09-16T12:42:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766","variant_ids":[43697703223395]},"available":true,"name":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-IFC14","featured_media":{"alt":null,"id":26047009914979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43697703354467,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-IFC14","requires_shipping":true,"taxable":true,"featured_image":{"id":34475402494051,"product_id":7884313395299,"position":2,"created_at":"2025-09-16T12:42:39+08:00","updated_at":"2025-09-16T12:42:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761","variant_ids":[43697703354467]},"available":true,"name":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-IFC14","featured_media":{"alt":null,"id":26047008079971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b9ab7fabb1c74993d61fad6c11cc94949873ed.webp?v=1757997761"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43697703223395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-IFC14","requires_shipping":true,"taxable":true,"featured_image":{"id":34475404329059,"product_id":7884313395299,"position":10,"created_at":"2025-09-16T12:42:43+08:00","updated_at":"2025-09-16T12:42:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766","variant_ids":[43697703223395]},"available":true,"name":"iPhone 15 Plus SolidX 坂本日常 坂本商店 - 泡麵日常 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-IFC14","featured_media":{"alt":null,"id":26047009914979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51af1c6dc86b4baf052ee89acb023b49b43290db.webp?v=1757997766"}},"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: "停產" }