Hello - need a little help.
This code appeared in my theme.liquid file.
can anyone tell me what it does and should it be there. I can’t seem to match an app install date with when this code appeared.
{{ shop.metafields.email-sealapps-app.effective-time | json }}
thank you!
@Macomb636 - looks like it is code helping with the functionality of product variants and metafields
1 Like
@Macomb636
Hi,
It seems the script is for Abandoned cart recovery emails.
They are related to restore buyer’s email, product variant the buyer added to the cart, and the first available variant with email time stamp.
Hope it helps.
Thanks.
I don’t think it is. 
The <script src=‘{{ ‘product_restore_email.js’ | asset_url }}’ defer=‘defer’ > line in theme.liquid refers to product_restore_email.js.
Product_restore_email.js belongs to - by the looks of it - to Sealapps Back in Stock - Restock Alerts (there’s a reference to their API URL in the .js file).
I used that app months ago and uninstalled it, but it seems the uninstall was not clean and left that code. I have asked Sealapps to confirm it’s their code and whether it can be safely removed.
It looks like the other scripts also belong to that app - see references below:
Line 251 in product_restore_email.js:
let currentVariant = JSON.parse(document.querySelector(‘#em_product_selected_or_first_available_variant’).textContent);
line 253 in product_restore_email.js:
let variantData = JSON.parse(document.querySelector(‘#em_product_variants’).textContent);
Just waiting for Sealapps to confirm this.