Liquid, JavaScript, themes, sales channels
Hi, I have cancelled AfterPay and unlinked it from my store but it still shows up on every item. I am not technically savvy. Can someone spell out simply how I would remove AfterPay from showing up when viewing an item in the store? Thank you.
Solved! Go to the solution
This is an accepted solution.
Hey @Aaronjcraig,
You have to remove the app and also remove the code from the bottom of your theme.liquid file.
I have linked the instructional help doc from AfterPay below which includes the code snippet that you would have added to your theme initially:
To access your theme.liquid from your Shopify Admin, head to online store > themes > actions > edit code > theme.liquid:
When you make changes to the original code and save the changes, we always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.
As this is your first post in the Shopify Community I would like to welcome you! I would recommend reading our guide on getting support from the Shopify Community here so you are best equipped when looking for support through these forum boards.
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
This is an accepted solution.
Hey @Aaronjcraig,
You have to remove the app and also remove the code from the bottom of your theme.liquid file.
I have linked the instructional help doc from AfterPay below which includes the code snippet that you would have added to your theme initially:
To access your theme.liquid from your Shopify Admin, head to online store > themes > actions > edit code > theme.liquid:
When you make changes to the original code and save the changes, we always suggest you first duplicate the theme and work in the duplicate. That way you can always go back to your previous version.
As this is your first post in the Shopify Community I would like to welcome you! I would recommend reading our guide on getting support from the Shopify Community here so you are best equipped when looking for support through these forum boards.
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
I'm not sure if things have changed since this but I can't find that code there.
Hey @Howard_E,
Are you wanting to remove Afterpay from your store? Do you mind sharing your website URL with me so I can check your themes code for you and let you know where to find the Afterpay code?
Look forward to hearing from you!
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
I'm actually having the same issue. Trying to remove Afterpay but I don't see that snippet in my theme.liquid code. Can you check my website and let me know as well? Thank you. www.omaearth.com
**Actually disregard, I found the code in a section titled "Snippets" at the bottom of the menu dashboard and deleted it from there. Thanks!
Thanks for sharing @Danny_Blue, don't hesitate to reach back out if you require any further assistance as you continue to work on your store.
All the best,
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Can you please advise what exact code I am to remove and where to find it? I am not clear what section of code to delete? The link above that is supposed to show the code says "page not found"
Hey @sahduff,
The updated document from Afterpay is linked below:
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Hi Moira,
I'm at a loss as to where the Afterpay code is on my theme.liquid to remove it from showing on the product pages?? (it is no longer available as a payment method via my payment settings etc)
Could it be under Templates, Snippets or Sections and if so what would it be associated with?
I am using Debut if that is of any assistance?
Any assistance would be greatly appreciated 🙂
Hey @Fi50,
Under your Layout folder you should see theme.liquid, otherwise you can search theme.liquid in the bar as shown here:
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
That was a very pretty animation but I couldn't really follow it.
Is it simply a matter of removing the following from the bottom
of the liquid page ???:
<!-- Begin Shopify-Afterpay JavaScript Snippet (v1.0.12) -->
<script type="text/javascript">
// Overrides:
// var afterpay_min = 0.04; // As per your Afterpay contract.
// var afterpay_max = 2000.00; // As per your Afterpay contract.
// var afterpay_cbt_enabled = false; // As per your Afterpay contract; change to true to display Cross-Border Trade artwork (for AU/NZ).
// var afterpay_logo_theme = 'colour'; // Can be 'colour', 'black' or 'white'.
// var afterpay_product_selector = '#product-price-selector';
// var afterpay_cart_integration_enabled = true;
// var afterpay_cart_static_selector = '#cart-subtotal-selector';
// Non-editable fields:
var afterpay_shop_currency = {{ shop.currency | json }};
var afterpay_cart_currency = {{ cart.currency.iso_code | json }};
var afterpay_shop_money_format = {{ shop.money_format | json }};
var afterpay_shop_permanent_domain = {{ shop.permanent_domain | json }};
var afterpay_theme_name = {{ theme.name | json }};
var afterpay_product = {{ product | json }};
var afterpay_current_variant = {{ product.selected_or_first_available_variant | json }};
var afterpay_cart_total_price = {{ cart.total_price | json }};
var afterpay_js_snippet_version = '1.0.12';
</script>
<script type="text/javascript" src="https://static.afterpay.com/shopify-afterpay-javascript.js"></script>
<!-- End Shopify-Afterpay JavaScript Snippet (v1.0.12) -->
Hey @JHS,
Yes you are correct! Once you remove the Afterpay coding that was injected into your theme, the branding should no longer appear on your product page or at checkout.
Let me know how you get on!
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
All good now regarding Afterpay. Latitude pay is proving too be a more difficult beast.
I have to approach them and have them remove the app etc.
Early days I guess.
After following the uninstall instructions listed in the help doc below, I suggest getting in direct contact with the Latitude team to ensure there is no residual code left in your theme as this can sometimes cause issues:
Moira | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
User | RANK |
---|---|
38 | |
28 | |
13 | |
13 | |
9 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023