I'm looking to change the Afterpay display location on the cart page

I’m looking to change the Afterpay display location on the cart page.

I tried doing the same as product page directions but with:
// var afterpay_cart_static_selector = ‘#cart-subtotal-selector’;

to

var afterpay_cart_static_selector = ‘#cart-subtotal-selector’;

then placing

in desired location.

but it’s not working. Any help would be appreciated.

Hey there, @nicolelemkebb . Thanks for taking the time to reach out to the Shopify Community with your question! It’s great to meet you!

I’d love to be able to help you get some support with this. I just have a few questions I’d like to ask you, so we can get some much needed info to determine our next steps:

  • Can you let us know what theme you’re using in your store?
  • Can you provide us with a link to your shop so we can see how this Afterpay information is appearing on your cart page?

Please, get back to me here when you can with the request information. I’ll keep a watch for your reply!

Hi there!

So after a few hours and clearing my cache a few times, it finally started working. Not sure why it took so long to move. I didn’t find any documentation explaining how to do this, but what I explained above did end up working for anyone else looking to do the same!

Nicole

Hey again, @nicolelemkebb aka Nicole!

Thanks for following up with us! Happy to hear that things started working for you!

It makes sense that a cache clear would have worked here. It’s likely that your browser was holding onto some older, saved data for your pages, and was presenting things on your device as if the Afterpay messaging hadn’t moved. I actually see this pretty often - just your internet browser doing funny, internet browser things!

Do you mind if I ask why you were looking to move the messaging? Was there a specific business goal you were looking to achieve by doing so?