$product = {"id":7189509603427,"title":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版","handle":"iphone-12-mini-solidsuit-classic-sb01","description":null,"published_at":"2024-02-27T14:21:03+08:00","created_at":"2024-02-23T18:39:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師SolidSuit專區Batman","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-batman","device-iPhone 12 Mini","merge","reseller-batman"],"price":83000,"price_min":83000,"price_max":83000,"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":41312799621219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318884986979,"product_id":7189509603427,"position":17,"created_at":"2026-07-20T12:26:40+08:00","updated_at":"2026-07-20T12:26:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602","variant_ids":[41312799621219]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-SB01","featured_media":{"alt":null,"id":27822837334115,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312799752291,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318884823139,"product_id":7189509603427,"position":16,"created_at":"2026-07-20T12:26:40+08:00","updated_at":"2026-07-20T12:26:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602","variant_ids":[41312799752291]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-SB01","featured_media":{"alt":null,"id":27822837170275,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312799981667,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318885183587,"product_id":7189509603427,"position":18,"created_at":"2026-07-20T12:26:41+08:00","updated_at":"2026-07-20T12:26:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603","variant_ids":[41312799981667]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-SB01","featured_media":{"alt":null,"id":27822837530723,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22202a16a70d44931b2ab699aa46b66d44e21a62.webp?v=1708922359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1cfbf869b45b76413402c43a2c09f5499e123a.webp?v=1708922361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e09d7f6c769221625d5345635b680ee74f7422a.webp?v=1708922366","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd047c39f8191205b5a59c3abd8e6bce952844dc.webp?v=1708922368","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f2e1cf321f260365ed1057f859475e830ee813.webp?v=1708922370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f83fd5018df07f7453eecfc92667fab1eb33c0.webp?v=1708922373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39a92377049c902f3567908f169fee450b42aae.webp?v=1708922375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2490fc53dedb6200443a33cfc6685b84a7e6aa1.webp?v=1708922379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374dff3bfcb8ea40f3ae93e757e9fbcd8ef4d728.webp?v=1708922382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b0d76a6f30b105b9a66fea184327ea810ca024.webp?v=1708922384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a55f71de9204c917a97ecfad52dcc7aaa1f1dfb.webp?v=1708922386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f67279cf5cbccbe241f495f49ef7813d2eb6267.webp?v=1708922388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b98d77f01df9acf44a7ea3943b8103942d045b.webp?v=1708922390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763c650d666b7769a12b427d01b3ed6727e3b040.webp?v=1708922393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf7f1b001f630118e9268a52b8df18b1ef32148.webp?v=1784521601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de29afc64f680c1ee4132702287f4b1e942d8b5.webp?v=1784521603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387f76445ffe58cc545b76ea2335b12d360ace59.webp?v=1784521604"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22202a16a70d44931b2ab699aa46b66d44e21a62.webp?v=1708922359","options":["color"],"media":[{"alt":null,"id":23353840762979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22202a16a70d44931b2ab699aa46b66d44e21a62.webp?v=1708922359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22202a16a70d44931b2ab699aa46b66d44e21a62.webp?v=1708922359","width":2000},{"alt":null,"id":23353841451107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1cfbf869b45b76413402c43a2c09f5499e123a.webp?v=1708922361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc1cfbf869b45b76413402c43a2c09f5499e123a.webp?v=1708922361","width":2000},{"alt":null,"id":23353843318883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e09d7f6c769221625d5345635b680ee74f7422a.webp?v=1708922366"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e09d7f6c769221625d5345635b680ee74f7422a.webp?v=1708922366","width":2000},{"alt":null,"id":23353844039779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd047c39f8191205b5a59c3abd8e6bce952844dc.webp?v=1708922368"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd047c39f8191205b5a59c3abd8e6bce952844dc.webp?v=1708922368","width":2000},{"alt":null,"id":23353844924515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f2e1cf321f260365ed1057f859475e830ee813.webp?v=1708922370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36f2e1cf321f260365ed1057f859475e830ee813.webp?v=1708922370","width":2000},{"alt":null,"id":23353845809251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f83fd5018df07f7453eecfc92667fab1eb33c0.webp?v=1708922373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6f83fd5018df07f7453eecfc92667fab1eb33c0.webp?v=1708922373","width":2000},{"alt":null,"id":23353846661219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39a92377049c902f3567908f169fee450b42aae.webp?v=1708922375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f39a92377049c902f3567908f169fee450b42aae.webp?v=1708922375","width":2000},{"alt":null,"id":23353848332387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2490fc53dedb6200443a33cfc6685b84a7e6aa1.webp?v=1708922379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2490fc53dedb6200443a33cfc6685b84a7e6aa1.webp?v=1708922379","width":2000},{"alt":null,"id":23353849446499,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374dff3bfcb8ea40f3ae93e757e9fbcd8ef4d728.webp?v=1708922382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/374dff3bfcb8ea40f3ae93e757e9fbcd8ef4d728.webp?v=1708922382","width":2000},{"alt":null,"id":23353850167395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b0d76a6f30b105b9a66fea184327ea810ca024.webp?v=1708922384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b0d76a6f30b105b9a66fea184327ea810ca024.webp?v=1708922384","width":2000},{"alt":null,"id":23353851084899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a55f71de9204c917a97ecfad52dcc7aaa1f1dfb.webp?v=1708922386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a55f71de9204c917a97ecfad52dcc7aaa1f1dfb.webp?v=1708922386","width":2000},{"alt":null,"id":23353852002403,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f67279cf5cbccbe241f495f49ef7813d2eb6267.webp?v=1708922388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f67279cf5cbccbe241f495f49ef7813d2eb6267.webp?v=1708922388","width":2000},{"alt":null,"id":23353853116515,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b98d77f01df9acf44a7ea3943b8103942d045b.webp?v=1708922390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37b98d77f01df9acf44a7ea3943b8103942d045b.webp?v=1708922390","width":2000},{"alt":null,"id":23353853837411,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763c650d666b7769a12b427d01b3ed6727e3b040.webp?v=1708922393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/763c650d666b7769a12b427d01b3ed6727e3b040.webp?v=1708922393","width":2000},{"alt":null,"id":27822837006435,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf7f1b001f630118e9268a52b8df18b1ef32148.webp?v=1784521601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecf7f1b001f630118e9268a52b8df18b1ef32148.webp?v=1784521601","width":2000},{"alt":null,"id":27822837170275,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602","width":2000},{"alt":null,"id":27822837334115,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602","width":2000},{"alt":null,"id":27822837530723,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603","width":2000},{"alt":null,"id":27822837760099,"position":19,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de29afc64f680c1ee4132702287f4b1e942d8b5.webp?v=1784521603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7de29afc64f680c1ee4132702287f4b1e942d8b5.webp?v=1784521603","width":2000},{"alt":null,"id":27822838186083,"position":20,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387f76445ffe58cc545b76ea2335b12d360ace59.webp?v=1784521604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387f76445ffe58cc545b76ea2335b12d360ace59.webp?v=1784521604","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41312799621219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318884986979,"product_id":7189509603427,"position":17,"created_at":"2026-07-20T12:26:40+08:00","updated_at":"2026-07-20T12:26:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602","variant_ids":[41312799621219]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-SB01","featured_media":{"alt":null,"id":27822837334115,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312799752291,"title":"Cobalt Blue","option1":"Cobalt Blue","option2":null,"option3":null,"sku":"SST01184O9-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318884823139,"product_id":7189509603427,"position":16,"created_at":"2026-07-20T12:26:40+08:00","updated_at":"2026-07-20T12:26:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602","variant_ids":[41312799752291]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Cobalt Blue","public_title":"Cobalt Blue","options":["Cobalt Blue"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST01184O9-SB01","featured_media":{"alt":null,"id":27822837170275,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75df092fd695e29f4c38fd54d92a6d2e10dfaa.webp?v=1784521602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312799981667,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"SST011840B-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318885183587,"product_id":7189509603427,"position":18,"created_at":"2026-07-20T12:26:41+08:00","updated_at":"2026-07-20T12:26:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603","variant_ids":[41312799981667]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST011840B-SB01","featured_media":{"alt":null,"id":27822837530723,"position":18,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6de28376849f210376597582eb98dfca8719fd17.webp?v=1784521603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312799621219,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"SST0118452-SB01","requires_shipping":true,"taxable":true,"featured_image":{"id":36318884986979,"product_id":7189509603427,"position":17,"created_at":"2026-07-20T12:26:40+08:00","updated_at":"2026-07-20T12:26:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602","variant_ids":[41312799621219]},"available":true,"name":"iPhone 12 mini SolidSuit Batman 蝙蝠俠 復古版 - Black","public_title":"Black","options":["Black"],"price":83000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"SST0118452-SB01","featured_media":{"alt":null,"id":27822837334115,"position":17,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb8eede4e1a6858ca411f38f09fd192660b16ccc.webp?v=1784521602"}},"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: "停產" }