I have a customer attribute named "tescoclubcard_number", the attribute is not displayed in customer model whereas is displayed in collection.
Can anyone please let me know how i can save the customer attribute value. To load the customer data i have done below:
$custData = $order->getData(); $custEmail = $custData['customer_email']; $customer = Mage::getModel("customer/customer"); $customer->setWebsiteId(Mage::app()->getWebsite()->getId()); $data = $customer->loadByEmail($custEmail);
in data i am not getting the attribute "tescoclubcard_number" whereas it is there in collection.
Please let me know how i can save it.
Another problem i am facing is, when i store tescoclubcard_number value in session and complete the payment using sagepay server the session values are destroyed. Is there a way to keep sessions in tact and use them on success page?