Shipping policy different on product page to actual shipping policy page

Solved

Shipping policy different on product page to actual shipping policy page

bellandrew96
Tourist
9 0 4

On inidvidual product pages the shipping policy link is different to the actual shipping policy page. How do I update the shipping policy link. 

 

marrabellclothing.com

 

Theme: debut.Screenshot 2025-02-22 at 16.42.41.png

Accepted Solution (1)

CodingFifty
Shopify Partner
901 133 164

This is an accepted solution.

Hi @bellandrew96,


Go to Online Store, then Theme, and select Edit Code.
Search for global.js/theme.js file Add the provided code at the end of the file.

document.addEventListener("DOMContentLoaded", function () {
    var policyLink = document.querySelector(".product__policies.rte a");
    if (policyLink) {
        policyLink.setAttribute("href", "https://marrabellclothing.com/pages/shipping-policy");
    }
});
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com

View solution in original post

Reply 1 (1)

CodingFifty
Shopify Partner
901 133 164

This is an accepted solution.

Hi @bellandrew96,


Go to Online Store, then Theme, and select Edit Code.
Search for global.js/theme.js file Add the provided code at the end of the file.

document.addEventListener("DOMContentLoaded", function () {
    var policyLink = document.querySelector(".product__policies.rte a");
    if (policyLink) {
        policyLink.setAttribute("href", "https://marrabellclothing.com/pages/shipping-policy");
    }
});
Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com