Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

groups:129:data.php

Last modified by CrashTest on Tue, December 18, 2007 23:42
Source|Old Revisions  |  Back To Group

This helper will, eventually, let you access the points functions from anywhere in Magento.

  1. <?php
  2.  
  3. class Mage_Points_Helper_Data extends Mage_Core_Helper_Abstract
  4. {
  5.     public function getCustomerPoints()
  6.     {
  7.         $currentPoints = Mage::getModel('points/points')->getCustomerPoints(Mage::getSingleton('customer/session')->getCustomerId());
  8.         return $currentPoints;
  9.     }
  10. }



 

Popular Wiki Tags  |  View all

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien