I’m searching for something like
snipcart.api.theme.cart.open()
but to open the customer dashboard.
Only thing I found is <div class="snipcart-customer-signin">
and simulating a click on it, but that feels hacky.
I’m searching for something like
snipcart.api.theme.cart.open()
but to open the customer dashboard.
Only thing I found is <div class="snipcart-customer-signin">
and simulating a click on it, but that feels hacky.
You can achieve that with this simple JS line:
window.location.hash = '/dashboard/';