Advertisement
sathyashrayan

Observer.php

Apr 5th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1.  $customerLoad = Mage::getModel("customer/customer")->load(1234); // sample cust id
  2.       $customerLoad->setWebsiteId(Mage::app()->getWebsite()->getId());
  3.       $customerLoad->setStore(Mage::app()->getStore());
  4.       $customerLoad->setGroupId(4);
  5.       $customerLoad->setLatitude(123);
  6.       $customerLoad->setLongitude(456);
  7.      try{
  8.                                    $customerLoad->save();
  9.                                 } catch (Exception $ex) {
  10.                                     echo $ex;
  11.                                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement