How to call checkout_cart_product_add_after Event in Magento

Magento Provides Many Events which are very much helpful to us for customizing as per client requirement.
Same way one of the best Event is Checkout Cart Product Add After which is called when on the checkout step cart has been loaded and if we want to make any changes we can use this event.
But for that we need to do two things , First thing we need to handle event from module config file and then we need to call a function into our Observer file.
Please have a look to below code to call a event :-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>How to call checkout_cart_product_add_after Event in Magento</title>
</head>
<body>
<!--Call Observer Event :- checkout_cart_product_add_after -->
<global>
  <events>
    <checkout_cart_product_add_after>
      <observers>
        <cwiser_rewardpoint_observer_add_to_cart_after>
          <type>singleton</type>
          <class>Cwiser_RewardPoint_Model_Observer</class>
          <method>rewardpointToAddToCartAfter</method>
        </cwiser_rewardpoint_observer_add_to_cart_after>
      </observers>
    </checkout_cart_product_add_after>
  </events>
</global>
Posted in Uncategorized