Using Events

evoShop(js) has lots of events that allow you to customize and modify the core functionality. You can add a callback to an event by using the evoShop.bind() function:

evoShop.bind( 'afterAdd' , function( item ){
    alert( + " has been added to the cart!");

Custom events

You can trigger custom evoShop(js) events using the .trigger() function:

evoShop.trigger( 'awesomeEvent' );

You can optionally send arguments to a triggered event by passing an array of values to .trigger():

evoShop.trigger( 'awesomeEvent' , [ myfirstarg, mysecondarg ] );