This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Element.prototype.triggerEvent = function(eventName) | |
| { | |
| if (document.createEvent) | |
| { | |
| var evt = document.createEvent('HTMLEvents'); | |
| evt.initEvent(eventName, true, true); | |
| return this.dispatchEvent(evt); | |
| } | |
| if (this.fireEvent) | |
| return this.fireEvent('on' + eventName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $attributeId = Mage::getModel('eav/entity_attribute')->getResource()->getIdByCode('catalog_product','attrinute_code'); | |
| $collection =Mage::getResourceModel('eav/entity_attribute_option_collection') | |
| ->setPositionOrder('asc') | |
| ->setAttributeFilter($attributeId) | |
| ->setStoreFilter(0) | |
| ->load(); | |
| $collection->getAllIds(); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by Nick Howard, Magento Developer. | |
| */ | |
| class Mage_Catalog_Model_Convert_Adapter_Extend_UpdateImages extends Mage_Dataflow_Model_Convert_Adapter_Abstract | |
| { | |
| public function load() | |
| { | |
| // you have to create this method, enforced by Mage_Dataflow_Model_Convert_Adapter_Interface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; | |
| if (typeof Forix == "undefined") { | |
| var Forix = {}; | |
| } | |
| Forix.FilterState = { | |
| clearFiltersBtn: null, | |
| clearAllBtn: null, | |
| clearCancelBtn: null, | |
| filterApplylBtn: null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: chan | |
| * Date: 21/09/2015 | |
| * Time: 16:04 | |
| */ | |
| require_once 'Mage/Cms/controllers/IndexController.php'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Forix_ApiExt_Model_Sales_Order_Api extends Mage_Sales_Model_Order_Api { | |
| /** | |
| * Retrieve list of orders. Filtration could be applied | |
| * | |
| * @param null|object|array $filters | |
| * @return array | |
| */ | |
| public function items($filters = null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Admin layout XML file | |
| <sales_order_grid_update_handle> | |
| <reference name="sales_order.grid"> | |
| <action method="addColumnAfter"> | |
| <columnId>forix_order_type</columnId> | |
| <arguments helper="salesext/admin_render/getOrderTypeOption"/> | |
| <after>shipping_name</after> | |
| </action> | |
| </reference> | |
| </sales_order_grid_update_handle> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Used for multi select | |
| $installer->addAttribute('catalog_product', "hair_style", array( | |
| 'group' => 'Your Group', | |
| 'type' => 'varchar', | |
| 'input' => 'multiselect', | |
| 'label' => 'Hair Style', | |
| 'visible' => 1, | |
| 'sort_order' => 20, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* @var $collection Mage_Catalog_Model_Resource_Product_Collection */ | |
| $collection = Mage::getModel('catalog/product')->getCollection(); | |
| $collection->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes()); | |
| //Remove filter default by root category by set flag | |
| $collection->setFlag('disable_root_category_filter', true); | |
| //Check visible | |
| Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); |