Buy me a coffee

Click button in Announcement Bar >> Open Checkout Page

Suppose you have a button: Checkout on Announcement Bar, and a product on your site. You want: When users click on this Checkout button >> It will add the product to the cart and open the checkout page.

#1. First, you need to follow this code to add a button to the Announcement Bar

#2. Next, enable Express Checkout

#3. Add a Product Block (you can add it to Site Footer)

#4. Use this code to Code Injection – Footer

<script src=""></script>
$(document).on('click', '#announcement-bar-text-inner-id p a', function(event) { 

Click Button In Announcement Bar Open Checkout Page 01 Min