Quick & dirty, comme disent nos amis anglais :) mais fonctionnel !
Créer temporairement un fichier custom.php gentillement déposé à la racine de votre magento qui contient quelque chose comme ça
<?php require_once('app/Mage.php'); Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); $installer = new Mage_Sales_Model_Mysql4_Setup; $attribute = array( 'type' => 'text', 'label'=> 'Numero Abonne', 'input' => 'text', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => false, 'default' => "", 'group' => "General Information" ); $installer->addAttribute('customer', 'numabonne', $attribute); $installer->endSetup(); ?>
Read more: Rajouter un attribut client / commande.. ou autre très rapidement :)
Magento can easily allow to publish/unpublish a payment method from the frontend. Usually payments extension have a simple Yes/No configuration option for this purpose. But this does not exist, almost never, to have same configuration option in admin.
Why do that ?
It can be used when you renew, or edit an order. At this time you will have a list a payment option you can choose from. Some aren't accured and need to be disabled, some are not visible and need be enabled, so you can select them.
Read more: Select/deselect payment method to be used in backoffice
In Joomla you can easily tweak the ouput of our Breadcrumb. This is simply don by editing the "Breadrumbs" module. Module option allows to hide the last breadrumb element where is often the active article.
Magento gives you the oppurtunity to log almast everything in the /var/log/system.log file. All datas you usually get by using print_r or var_dump can be logued there.
Mage::log('Message'); Mage::log('Message:' . $variable); Mage::log($array); Mage::log($object); Mage::logException($e);
This is a simple and quick method to move magento from an host to another. It would be prefereable to have enough skills in mysql and in linux command line to do that properly. Also direct acces in console to your both host can be helpfull but it's not required.
Read more: 7 Steps to migrate Magento to a new host / server
© 2023 UniDeal
© 2023 UniDeal