Posts tagged with: magento

Display name of Magento controller-action-router-model-blocktype

Here is a snippet of code you can add to your phtml to display the names of your controller, action, router, model en blocktype. <?php $ctrl_name = Mage::app()->getRequest()->getControllerName(); ?> <?php echo(‘controller name : ‘.$ctrl_name.'<br>’); ?> <?php $act_name = Mage::app()->getRequest()->getActionName(); ?> <?php echo(‘action name : ‘.$act_name.'<br>’); ?> <?php $route_name = Mage::app()->getRequest()->getRouteName(); ?> <?php echo(‘route name : […]



Magento CMS creates duplicate customer on save

We encoutered a weird issue on a website running Magento 1.9.2.2. When saving a change on an existing customer, the Magento CMS would create a duplicate customer. Duh? Generally magento doesn’t allow duplicate email addresses, and Magento still doesn’t! For the Dynamics Nav integration with this Magento website we edited the email check to generate […]


Magento API WDSL

For some customers we integrated Microsoft Dynamics with Magento with the Magento Connector for Dynamics Nav by Tinx-IT. This uses the Magento API and webservices to communicate external applications. Clear the wsdl cache SSH: /tmp > rm wsdl-* $client = new SoapClient(‘http://somewhere.com/?wsdl’, array(‘cache_wsdl’ => WSDL_CACHE_NONE) ); During development or to debug issues it is handy […]





Magento hide or remove Delete Customer button in admin

For a customer we had to hide or remove the Delete customer button for non administrators. Just to avoid that CMS users could delete customers by accident. This is done by extending the Mage_Adminhtml_Block_Customer_Edit clas File: app/code/core/Mage/Adminhtml/Block/Customer/Edit.php Code used to get current users role: $admin_user_session = Mage::getSingleton(‘admin/session’); $adminuserId = $admin_user_session->getUser()->getUserId(); $role_data = Mage::getModel(‘admin/user’)->load($adminuserId)->getRole()->getData(); $role_name = $role_data[‘role_name’]; […]



Template Hints guide

Template hints are a useful feature during development. Template hints for CMS back-end Visit your system.xml and correct following code app > code > Mage > core > etc > system.xml <template_hints translate=”label”> <label>Template Path Hints</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>20</sort_order> <show_in_default>0</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> </template_hints> Turn on template hints via database


Magento Index process is working now and won’t re-index (solved)

Via the Magento CMS I got the message: This is the general message when trying to index. The message will be specific if you try to index a specific table: Stock Status Index process is working now Product Attributes Index process is working now Product Prices Index process is working now My Magento installation was moved 24H […]



Turnkey Linux Magento install with Redis

For a customer we need a fast webserver which we can completely configure to run Magento smoothly. We have chosen a Turnkeylinux Magento installlation with hosting provider YourHosting in the Netherlands. The unmanaged server is VPS4 with 4 GB ram. There are many dedicated Magento hosting parties available but we wanted to completely maintain the server […]


Bulk update Magento attributen

Als je attributen gebruikt kan je die instellen voor het hele systeem (Global), per website of per winkelzicht (store). Er is geen functie om een groot aantal artikelen het vinkje “winkelzicht” aan of uit te zetten. In mijn geval moest op alle artikelen het vinkje (weer) aan en de bulk update kan je zo doen: […]


Magento group attributes on product page

For a Magento project I was looking for a way to group the attributes so the visitor can view the ‘Product features’ and ‘Technical features’ grouped together. The project involves the Magento Connector by Tinx-IT which synchronizes the data from Microsoft Dynamics to a Magento database. Magento has default functionality to create attributes groups. Goto […]


Magento webshop in het Nederlands

Het Magento platform is eenvoudig in het Nederlands om te zetten. Je kan zowel je Magento webshop als het Magento CMS vertalen met vertaalbestanden. Als je zelf je Magento webshop vertaling aan wilt passen dan kan dat ook. In dit artikel sommen we de mogelijkheden op: Vertaalbestanden installeren Nederlandse vertaling installeren via Magento Connect Nederlandse […]