Try the Demo

groups:129:data.php

Last modified by CrashTest on Tue, December 18, 2007 18: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. }



 

Magento Developer Certification

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs