Skip to content

Category: Magento

[Magento] Update category attributes programmatically

here you go

 

Continue reading [Magento] Update category attributes programmatically

Comments closed

Magento : SQL Directive to Get Products with attributes

here the sql…

 

Continue reading Magento : SQL Directive to Get Products with attributes

Comments closed

Magento : Add external JS & CSS from layout

here example layout script how to add external JS & CSS link use Magento way 😉

 

Continue reading Magento : Add external JS & CSS from layout

Comments closed

Magento : Filter product collection by multiple categories

this is an interesting post i found on StackExchange, how to filter product collection by multiple categories, here the code  

source : http://magento.stackexchange.com/questions/7094/filter-product-collection-by-multiple-categories

Continue reading Magento : Filter product collection by multiple categories

Comments closed

Magento : Add New Attribute & Attribute Set Programatically

Here short script to add new attributes & attributes set  

 

Continue reading Magento : Add New Attribute & Attribute Set Programatically

Comments closed

Magento : Get product collection has tier price only

here my script get product collection who has tier price only!!!!!!!!!!!!!!!!!! of course also in stock :p

 

Continue reading Magento : Get product collection has tier price only

Comments closed

Magento : Create Fake POST

 

Continue reading Magento : Create Fake POST

Comments closed

Magento : Render any XML doc on controller

here example script how to display custom xml on your custom magento plugin  

 

Continue reading Magento : Render any XML doc on controller

Leave a Comment

Magento : Infinite Scroll for WordPress Posts Integration on Magento

i wrote some jquery script to perform infinite scroll WordPress posts on magento site, here you go

 

Continue reading Magento : Infinite Scroll for WordPress Posts Integration on Magento

Leave a Comment

Magento : Execute Custom Module Cron Manually

let say we have cron setup on config.xml, like this

and then a functions ready to execute

we can execute manually by run…

Continue reading Magento : Execute Custom Module Cron Manually

Leave a Comment

Magento : Custom Email Template on Custom Module

here the XML guide

 

 

Continue reading Magento : Custom Email Template on Custom Module

Leave a Comment

Magento : Get All Customer Wishlist Items

here you go

  the results will be like this  

   

Continue reading Magento : Get All Customer Wishlist Items

Leave a Comment

Magento : Munculkeun Daftar Nilai Attribute ti Spesifik Attribute

jaga2 bisi poho..soalna sering dipake,….ieu carana keur munculkeun attribute value, mangga ah..haha   $name=’size’;  /*kode attribute na di dieu*/ $attributeInfo = Mage::getResourceModel(‘eav/entity_attribute_collection’)->setCodeFilter($name)->getFirstItem(); $attributeId = $attributeInfo->getAttributeId();…

Continue reading Magento : Munculkeun Daftar Nilai Attribute ti Spesifik Attribute

Leave a Comment

Magento : Fix Fatal error Call to a member function getName() on a non-object in ImportExport/Model/Export/Entity/Product.php on line 172

this is a dirty way to fix this issue, go to Fatal error: Call to a member function getName() on a non-object in app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line…

Continue reading Magento : Fix Fatal error Call to a member function getName() on a non-object in ImportExport/Model/Export/Entity/Product.php on line 172

Leave a Comment

Magento : List All Magento Cronjobs

here you go! echo ‘<pre>’; $kron = Mage::app()->getConfig()->getNode(‘crontab/jobs’); print_r($kron); here the example results

Continue reading Magento : List All Magento Cronjobs

Leave a Comment

Magento: How to Find Rewrite Class?

use this simple script to locate rewrite class   print_r(Mage::getConfig()->getNode()->xpath(‘//global//rewrite’));   example result :

 

Continue reading Magento: How to Find Rewrite Class?

Leave a Comment

Magento: Reopen Canceled or Complete Order

this is magento hack how to re-open or uncancel the order, use following script, here we go  

Continue reading Magento: Reopen Canceled or Complete Order

Leave a Comment

Magento: Get All Product Attributes

it took me 2 days to figure this out man!! hopes it help please:   $productAttrs = Mage::getResourceModel(‘catalog/product_attribute_collection’); print_r($productAttrs->toArray());   /* sample print out

Continue reading Magento: Get All Product Attributes

Leave a Comment