Calling an another Handler

Hi there,
I have two separate buttons: “Show Cart” (on each page) and “Add to Cart” (on the product page)

I am use Data Attributes API in both cases, something like (simplified):

"Show Cart" data-request="onShowCartHandler" data-request-update="CartModalList"
"Add to Cart" data-request="onAddToCartHandler" data-request-update="CartCounter"

Is it possible to call “Show Cart” from “Add to Cart”, using data-request-success="$('#Show Cart').click();"

I am tried to use click() or trigger('click') but in doesn’t work

Hi and welcome @IhorKo!

Try using request() instead of click() to trigger the AJAX request. For example:

`data-request-success="$('#ShowCart').request()"` 

Hi, thank you very match, it works!