Quickly solved with a custom-liquid block in the theme editor ~> product template ~> product form section.theme settings inserting a trigger element:
Notify Me When Available
Or using the in alternate_anchor parameter in the trigger script in the above documentation.
Layout positioning of apps widgets is generally solved by changing the block positions in the theme editor > product template > product form section.
If an app does not have this behavior merchants should submit a feature request to that apps developers to support saner setup behavior.
If you’ve already manually edited theme code to insert the button instead test using a custom-liquid block in the aforementioned product section; excluding as they often must be inserted at the end of the source code before the closing tag.
Injected button behavior for products is generally done by appending itself to a products form element it finds with the CSS selector [action=“/cart/add”] , so not much to do about that if not overridable in some way.
General troubleshooting problems:
Always check troubleshooting urls you are referencing as another person would see them by using an incognito window.
Always provide direct urls to an example problem such as the full url to a product, don’t make others dig and guess as to which urls may have the probelm.
Preview urls cannot get past a currency selection modal it forces a redirect back to the password protected mainsite. Forcing any contributor to do even more work bypassing such things.
No storefront password provided to use on the redirect destination mainsite so if a contributor cannot bypass the popups in the preview they cannot even help you.
Reread my post it addresses using custom-liquid blocks instead of editing theme code.
If using the alternate_anchor your will need to inspect the theme and find and ID selector to use. Either find a browser extenion that helps find CSS selectors or use devtools ctrl+shift+c to inspect elements.
For fully unavailable products in a custom-liquid block.
{%- unless product.available -%}
Notify Me When Available
{%- endunless -%}
Note this is for the product not induvial variants dynamically selected by customers, that requires an advanced customization afaik.
If you need this customization then contact me directly by mail for services.
Please always provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.
You have to make a custom liquid on each productpage where you want to have the ‘get notify me’ button. Just add “custom liquid” underneath the buy button and put this code on the right side. It is my design so you can change the colours if you want
{%- unless product.available -%}
NOTIFY ME WHEN AVAILABLE
{%- endunless -%}
Hi Paul, I would like help with this: “Note this is for the product not induvial variants dynamically selected by customers, that requires an advanced customization afaik.” Thank you
Any idea how this works for product variants? I have tried to replace {%- unless product.available -%} with {%- unless product.variants.available -%} but it doesn’t display as a button and on mobile it doesn’t work. On desktop it does.