This is a short weblog of damodar bashyal

Posts Tagged: magento

Text

Magento core url helper allows you to get current url.
To get current url in magento you just need one line of code as below:
ref: public function getCurrentUrl()
$magentoCurrentUrl = Mage::helper(‘core/url’)->getCurrentUrl();
You can also get current url as base64 encoded url as: http://dlvr.it/3MjRqM

Text

Today’s another issue with magento: not displaying full breadcrumb i.e. categories not included in path. I’m not overriding this time as very little time was assigned to fix this. http://dlvr.it/3FHsXr

Text

For some reason I wasn’t getting product price including tax. So after googling around I found this: http://dlvr.it/3FHsXg

Text

Today ELi asked me why he couldn’t delete attribute that was used to create configurable product. After I went through the code, I found the database table `catalog_product_super_*` was still holding relationship between product and attribute although all products were deleted from admin’s product manager.
We decided to clean delete (truncate) all product related table’s old data. Here is the exact SQL that worked perfectly on magento 1.6 http://dlvr.it/3F356t

Text

Just upgraded my PHP to version 5.4 and I have magento version 1.3.2.4 but I encoutered this error:
Can’t retrieve entity config: core/store_group


http://dlvr.it/1gWPfY

Text

The task was to remove a menu item from the admin menu. I tried to do it through roles permissions but it wasn’t saving permission for few selected custom modules. So, I had to leave it as ‘All’ as i didn’t wanted to waste time researching and fixing other custom modules.
I removed menu items from menu node in config.xml but it didn’t work. Deleted cache folder, session folder nothing worked. After googling for a while I found people recommended to do it through javascript by adding display none to the item like this:


http://dlvr.it/1YxBh4