Solved

How can I completely remove AfterPay from my online store?

Aaronjcraig
Visitor
2 0 0

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.

Accepted Solution (1)

Moira
Shopify Staff
2061 225 327

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:

 

dddd.gif

 

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

View solution in original post

Replies 13 (13)

Moira
Shopify Staff
2061 225 327

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:

 

dddd.gif

 

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

Howard_E
Shopify Partner
3 0 2

I'm not sure if things have changed since this but I can't find that code there. 

Moira
Shopify Staff
2061 225 327

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

Danny_Blue
Visitor
1 0 0

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!

Moira
Shopify Staff
2061 225 327

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

sahduff
Visitor
2 0 1

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"

Moira
Shopify Staff
2061 225 327

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

Fi50
Visitor
3 0 0

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 🙂 

Moira
Shopify Staff
2061 225 327

Hey @Fi50,

 

Under your Layout folder you should see theme.liquid, otherwise you can search theme.liquid in the bar as shown here:

 23-09-by3nr-6hzm0

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

JHS
Excursionist
31 0 16

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) -->

Moira
Shopify Staff
2061 225 327

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

JHS
Excursionist
31 0 16

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.

Moira
Shopify Staff
2061 225 327

@JHS 

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