Quantcast
Channel: DaniWeb Solved Topics
Viewing all articles
Browse latest Browse all 564

Change Trigger Link Add To Cart Woocomerce

$
0
0

Hi guys, its there any way to change the trigger of this button "add to cart" to run this link? I keep trying to figure out how to edit but it dosent work. :(.

Buttton: <button type="submit" name="add-to-cart" value="<?php echo esc_attr( $product->get_id() ); ?>" class="nm-simple-add-to-cart-button single_add_to_cart_button button alt">text1</button>

Link that i want to trigger from that button insted going to shop cart: `<a href="javascript:void(Tawk_API.toggle())"``

I really appreciated if I can be helped please, i know it is a simple code but i can't solve the code.


Viewing all articles
Browse latest Browse all 564

Trending Articles