Nov 30, 2011 -
So you want to import customer accounts but you’ve to generate the password hash? here you’ve the algorithm used by Magento Professional (which is different from Magento Community, but you can easily find that one in the net):
$passhash = hash("sha256", $salt . $password) . ":$salt";
By the way, for the community it’s
$passhash = md5($salt . $password) . ":$salt";
Filed in: PHP
Tags: Magento, PHP
Nov 15, 2011 -
I’ve run into a few posts about this thing but none of them was working out of the box so I took all the info and glued them together so…
if you’ve to create a custom attribute for a Magento order but you don’t have a module (and its installer script) simply create a php file in the project’s root with this code:
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',
'backend_type' => 'text',
'frontend_input' => 'text',
'is_user_defined' => true,
'label' => 'Your attribute label',
'visible' => true,
'required' => false,
'user_defined' => false,
'searchable' => false,
'filterable' => false,
'comparable' => false,
'default' => ''
);
$installer->addAttribute('order', 'your_attribute_code', $attribute);
$installer->endSetup();
This attribute is a “text” and it’s made not to be visible but just to use it as a container for some data you may need in your custom development, more info may come in comments if you need.
Filed in: PHP
Tags: Magento, PHP
Nov 10, 2011 -
A new maintainance release is ready just for you, giving you full oneiric compatibility (except for alternate, we need help), here’s the changelog:
———–
– 2.4.5 –
———–
* Frontend:
* new languages (zh-hans/zh-hant) are now correctly handled.
Fixes #770810
* hybrid image generation support was added to uck-gui (#830146)
* oneiric language packs support was added
* Backend:
* /etc/fstab is not mandatory in the squashfs file system (#808506)
* /var/run is now a symbolic link to /run (#812418)
* Oneiric alternate support was added (#842487)
* mkisofs calls were replaced with genisoimage (#836350)
* isohybrid support was added (uck-remaster-pack-iso -h) (#830146)
* manifest diff now checks if manifest files really exist
* lxterminal support was added (#865295)
* mksquashfs now uses XZ (lzma) compression if available
(squashfs-tool => 4.1 and guest kernel => 2.6.30)
(#654234)
* gfxboot-theme-ubuntu download method was rewritten
(question #157847)
* firefox locale auto-remove workaround was added (#886838)
* Package:
* suggestion for syslinux (isohybrid) installation was added
Download UCK 2.4.5 or use our stable PPA.
Filed in: Linux, Things I do, Ubuntu, UCK
Tags: Linux, Things I do, Ubuntu, UCK