For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?


HOME ยป Databases

I searched for an image's file name in my mysql database for Magento, and I couldn't find it. Also the images are stored inside alphabetical folders as well as a cache folder.


Should I do the same for my Magento module? Is there any existing code in the Magento core that I should re-use?


If not, I'll stick to storing the image's file name in the database, and all uploads going in one folder without subfolders.


Now that I think about it, it's time for question number 2. Where should modules upload images to?


Related to : For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?
Magento Custom Module database query
Databases

I have written a module to add my own events, and in the home page i would like to show only latest events. So in that case i have to add order by to query but i couldnot do that, it always throws fatal error.


This is what i have done.


$_offers = Mage::getSingleton('offerings/offerings')->getCollection();

This returns all the records, here i could able to set filter options but i could not add sort order like this


$_offers = Mage::getModel('offerings/offerings')->getCollection()
->addAttributeToSort('offerings_id', 'DESC')
->setPageSize(5)

Magento Custom Module How to store variable in config.xml
Databases

I have a custom module that is working just fine but I would like to be able to store variables in the config so I can use them in my code. (For example a default error message)


I think I can access them by using Mage::getStoreConfig('/some/path/here'); but I don't know how to add them to the modules config.xml (myname/mymodule/etc/config.xml) so that I can use them in my code?


Anyone have a clue?
Thanks!


Magento custom module licensing - Magento Connect
Databases

I have created a custom payment gateway module which allows to integrate a particular bank's payment gateway into a person's Magento site. Now what I want to do is to upload this module as a commercial module so that other people can pay,download and can use it in their sites.


My problem is which licensing method should I use from below? Are there any coding standards to be followed to it be a commercial module? Are there any other procedures to be taken? How should I proceed?



Magento custom module - where to store includes
Databases

I am creating a custom magento module and cant decide the best place to store some config files i require with the module?


Anyone out there suggest the best place for this? Should it be in the root of the module or in with the helpers maybe?


Edit:
Along the same lines as this question: is it acceptable to have a folder in the root of the namespace for the modules for includes that will be shared amongst the modules?


Magento custom module with custom database table admin page
Databases

I have followed a wiki post to setup a custom module with a custom database table.


http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/custom_module_with_custom_database_table


One thing that I can't work out is how to display a list of database entries in the admin backend. Any ideas about what I'm missing would be greatly appreciated?


For a custom magento module, is it ideal to store images in a similar database/filesystem structure to how Magento does it?
Databases

I searched for an image's file name in my mysql database for Magento, and I couldn't find it. Also the images are stored inside alphabetical folders as well as a cache folder.


Should I do the same for my Magento module? Is there any existing code in the Magento core that I should re-use?


If not, I'll stick to storing the image's file name in the database, and all uploads going in one folder without subfolders.


Now that I think about it, it's time for question number 2. Where should modules upload images to?



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .