Whether you have a question, an idea, or just want to say hello, feel free to reach out—we’re here to help.
Turn on browser notifications when tasks complete.
Share
Here's the fixed version with all three scripts combined. Replace everything in your Footer Code Injection with this file.
What was causing the bug: Your "Last One!" script runs at 2 seconds and rewrites the text of the dropdown options (e.g. M → M - Last One!). That text rewrite was triggering Squarespace's internal logic to re-disable the sold-out options, locking customers out again.
How it's fixed — two changes:
MutationObserver on the select element — the BIS script now watches the dropdown in real time. The moment any other script re-disables an option, it immediately re-enables it and keeps the data-sold-out tag intact.
Coordinated re-enable in Script 1 — after the "Last One!" labels are applied, it now explicitly re-enables any options that were tagged as sold-out, so both scripts play nicely together.
Everything else (popup, Formspree, form behavior) is unchanged.
PASTE_THIS_INTO_SQUARESPACE_v2.html
Code · 12.96 KB
View all files in this task
How was this result?
give me code only. no extra text in there
On it.
Code Output Preference
Here it is — clean code only, no extra text. Replace everything in your Footer Code Injection with this file.
FINAL_CODE.html
Code · 11.35 KB
View all files in this task
Task completed
How was this result?
Suggested follow-ups
Public Society Out Of Stock - Manus