How can I remove sync from a cloned ecommerce store?

DesignerJoe55–

Looking back at the original code that you posted, I noticed that you changed both occurrences of

"{{ shop.permanent_domain }}"

with

"{{ mystore.myshopify.com }}"

The double brackets cause Liquid to substitute the value of the variable into the output stream. The “shop.permanent_domain” variable contains your shop’s myshopify.com URL, but there is no value in a variable named “mystore.myshopify.com”, so having the double brackets around that causes it to evaluate to an empty string. In that case, it would do the redirect.

You might want to try it again with either the “shop.permanent_domain” value, or without the double brackets and spaces around the “mystore.myshopify.com” and see if that makes a difference for your permanent domain.