Hello, i’ve written this code:
By proceeding to checkout, you confirm that you have read and accept the Terms & Conditions and Privacy Policy .
vorrei indirizzare il click alla pagina Terms & Conditions e Privacy&Policy del mio tema e non quello standard come è scritto nel codice
but i’ve created the terms&conditions and Privacy Policy documents in pages of my theme. Calling “shop.terms_of_service.url” it gives me the basic one of the shopify store but the layout of it is wrong. so i would like that once i click on it, the link opens my page (the one in the footer)
<p class="cart-legal-note"> By proceeding to checkout, you confirm that you have read and accept the <a href="{{ shop.terms_of_service.url }}" target="\_blank" rel="noopener"> Terms & Conditions </a> and <a href="{{ shop.privacy_policy.url }}" target="\_blank" rel="noopener"> Privacy Policy </a>. </p> vorrei indirizzare il click alla pagina Terms & Conditions e Privacy&Policy del mio tema e non quello standard come è scritto nel codice
Try shopify://policies/terms-of-service and shopify://policies/privacy-policy
Change url handles as needed based on your pages.
i’ve tried it but i got this:
“Liquid syntax error (snippets/cart-summary line 106): Unexpected character / in “{{ shopify://policies/terms-conditions }}””
I’ve tried to delete a / where there was 2 of it but nothing changed.
Alternative:
Copy your policy page url. Paste it between the quotation marks:
href="https://YourStore.com/policies/privacy-policy"
1 Like
thank you very much. i really appreciate this
1 Like
You can use the internal Shopify links with your page handles instead of the default Liquid objects. For example, replace {{ shop.terms_of_service.url }} and {{ shop.privacy_policy.url }} with the URLs or handles of your custom pages in the theme footer so the links open your designed pages rather than the default Shopify policy pages.
1 Like