Return Store Variables (Phone Number, Address, E-Mail etc)
Name:
Mage::getStoreConfig('general/store_information/name')
Phone number:
Mage::getStoreConfig('general/store_information/phone')
Address:
Mage::getStoreConfig('general/store_information/address')
E-Mail:
Mage::getStoreConfig('trans_email/ident_general/email')
Related cards:
Fetching Store Contact E-Mail Addresses
// General Contact
$name = Mage::getStoreConfig('trans_email/ident_general/name');
$email = Mage::getStoreConfig('trans_email/ident_general/email');
// Sales Representative
$name = Mage::getStoreConfig('trans_email/ident_sa...
Sending Transactional E-Mails
$email = Mage::getModel('core/email_template');
$email->sendTransactional(
'some_email_template', // template
array('name' => 'Your Company', 'email' => 'contact@yourcompany....
Nginx Virtual Store Subdirectories
Note - this article only applies to nginx and PHP-FPM!
If you want to have stores which are accessed via subdirectories as opposed to domain names, the standard method I've found is to make a directory with a copy of index.php
in it, using ...
Collection Manipulation (Filtering, Limiting, etc)
A list of collection methods, similar to this
Where
OR:
You have to first specify an array of attributes in the filter, then a two dimensi...
Creating a Datetime attribute that stores time
Magento has a Datetime backend model but formats a Zend_Date
object without the time. So if you want to store datetime (actually with time) you will need to setup your own backend model.
Here is how i've done it:
class Namespace_Module_Mod...
Websites, Stores, Store Views
Here is what can be set at each level:
Default | Web Site | Store | Store View | |
---|---|---|---|---|
Product attributes | X | X | ||
Product prices | X | X | ||
Product tax ... |
Limiting The Number of Autocomplete Results
SweetTooth details how to limit the number of autocomplete entries, as by default this list is not limited whatsoever, not good on a store with lots of products!
 have the concept of a
store scope, whereby you can set the default value for all stores, or you can
set a value on a per-store basis.
You could do it this way, and this is probably how most ...
Dataflow Per-Store Import Causing Copy of All Attributes
Fancy importing a subset of some product attributes on a per-store basis, whilst keeping the attributes that weren't imported using the defaults?
Tough, you can't!
Well, not with dataflow anyway. [This card](https://makandracards.com/magento...