2

I have inserted the customer data in Magento(1.9) pro-grammatically,in my custom table.But the telephone number is not get inserted

My data:
Array
(
    [firstname] => Marc L
    [lastname] => Kruger
    [email] => mkruger@morrisonfenske.com
    [street] => 5125 County Road 101, Suite 102
    [city] => Minnetonka
    [state] => MN
    [country] => US
    [telephone] => 952-975-0050
)
$csv = Mage::getModel('flsearch/csv');
$csv->setData($customer)->save() 
  • but in the array you printed it shows telephone number. – Pradeep Sanku Jul 23 '15 at 13:37
  • 1
    make sure you you have the column telephone in your table, that has the type varchar or text. If that's ok. Clear the cache. Maybe you added the phone column later and the table schema is still cached. This happens even if your cache is disabled. – Marius Jul 23 '15 at 13:38
  • @Marius : thanks for your answer, after clear the catch its working now. – senthil Jul 23 '15 at 13:43
4

Based on the comments...

make sure you you have the column telephone in your table, that has the type varchar or text. If that's OK, clear the cache. Maybe you added the phone column later and the table schema is still cached. This happens even if your cache is disabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.