magento setdata custom module - magento

I've got a problem when i want to set data in a custom module, i add a field in my database call "test".
the module is ok, all my other attributes work perfectly.
when i do :
Mage::getModel('point/point')->load(1)->setUrl('test')->save();
it's ok, the value is save in the DB but with my new field
Mage::getModel('point/point')->load(1)->setTest('test')->save();
nothing... The value isn't saved, i don't know why, i try to create other field in my table and it's the same. It's not the first time i do that usually it's ok.
I use magento 1.7.
If someone have an idea ?

Ok, I found the problem, I updated my magento and now it's good. Probably it was a fixed bug.

try this
cache clear
Mage::getModel('point/point')->load(1)->setData('test','testvalue')->save();

Guys I have faced same problem in my custom module.
I checked this steps and solved the problem
Step1:- check your table Engine type if it's InnoDB than change it to MyISAM and than check.
For More info Click Here

Related

Products not appearing under admin grid

I imported products via API calls successfully. After sync, products not appearing under admin->grid... I can see under table "catalog_product_entity".
I flushed cache, reindex and run cron manually.
Still getting the same issue.
Please help.
Thanks,
Solution:
Seems Magento-2 bug.
Please sort the product grid via "ID". It must work.
Thanks,

How to make custom options for any product in magento

One of my client want to have this kind of custom attributes in magneto, i tried making attributes and all, but can't get succeed, can anyone here guide me on making these ? do i have make attribute sets or attributes or i have to code custom ?
magento
In default Magento you can have some thing like pic attached.. please view if this solve your problem ?

need to save all the records at once to get url identifier in magento. Any efficient way or script available?

I have started work in magento last week, i have never worked before in magento. Recently i imported more than 8,000 records in it using csv file. Now i can see all that records in magento admin panel so it's done successfully.
Problem: But it is not displaying at frontend.
I found problem in url identifiers, to solve this problem i need to go in each record category and save it then url identifier showing and also displaying in frontend. So i have to do it for each record.
I think it will take more time and also i have to add 31,000 records more.
Do you have any suggestion to do it quickly? any efficient way available for me? can i use any script to save all record at once?
This question may have duplicate but it will pleasure if you give answer or suggestion to me.
Thank you.
Why don't you just re-index all your indexes ?

What is the role of applyDesign in magento

I am using magento 1.7. I am working on extension for quick view of product. I am unable to understand the following code.
Mage::getModel('catalog/design')->applyDesign($product, Mage_Catalog_Model_Design::APPLY_FOR_PRODUCT);
can anybody tell me what is the purpose of this function applyDesign because i have tried comment this line but no change happened so i am wondering why this code used for ????
Ref. Mage_Catalog_Model_Design::applyDesign() (link).
It's a deprecated method for applying the package+theme design settings which can be set at the product level. If you are not seeing a change, it is because there is no entity-level data set for that entity (which is normal).

how to rename a joomla component?

I want to change the component name build by me , i have tried changing the xml file but it does not help also tried changing the component name through datbase but same result .can anybody help me in this ?
any help would be appriciated .
thanks in advance .
I know this is old, but there's a lot involved in renaming a component if you want to do it properly, you have to change the class names, folder name, the xml.. etc.. you also would need to edit the database OR uninstall and re install it once you've made all of your changes.
The same applies to modules, plugins and templates.. though those tend to be a little easier..
I would guess that you need to change it in the database, AS WELL AS in the xml, AS WELL AS you need to change the directory and file names to match the new component's name.
Using PhpMyAdmin go to the MySQL database table named jos_components and browse the data. Find the component name under Field you want to change... edit & save the entry.

Resources