Add component to shopify slider cart using Jquery

230 Views Asked by At

I want to append a custom component to the Shopify cart slider. For example, I want to add "hello world" text above the checkout button. I don't have access to the code of the shop since I am building a Shopify app so I need to append it using Jquery.

    $("<h1>Hello world</h1>").insertBefore(button[name='checkout']);

I select the correct button somehow the jquery doesn't work with Shopify slider cart. If I want to append the text somewhere else, everything works just fine. Could you guy show me how to do it?

enter image description here

0

There are 0 best solutions below