\FireGento_MageSetup_Model_Observer
Observer class
- Author: FireGento Team <team@firegento.com>
- Copyright: 2013 FireGento Team (http://www.firegento.com)
- License: http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
Methods
-
publicaddIsVisibleOnCheckoutOption( Varien_Event_Observer $observer )
- Add "Visible on Checkout Review on Front-end" Option to Attribute Settings
Event: <adminhtml_catalog_product_attribute_edit_prepare_form>
$observer
- Observer- Observer
-
publicaddOptionsForAgreements( Varien_Event_Observer $observer )
- Add "Required" and "Visible on Custom Creation" Option to Checkout Agreements
Event: <adminhtml_block_html_before>
$observer
- Observer- Observer
-
publicautogenerateMetaInformation( Varien_Event_Observer $observer )
- Auto-Generates the meta information of a product.
Event: <catalog_product_save_before>
$observer
- Observer- Observer
-
publiccustomerCreatePreDispatch( Varien_Event_Observer $observer )
- Check if there are required agreements for the customer registration and validate them if applicable.
Event: <controller_action_predispatch_customer_account_createpost>
$observer
- Observer-
publicfilterAgreements( Varien_Event_Observer $observer )
- Filters all agreements
Filters all agreements against the Magento template filter. This enables the Magento administrator define a cms static block as the content of the checkout agreements.. Event: <core_block_abstract_to_html_before>
$observer
- Observer- Observer
-
publicrecollectAfterQuoteItemUpdate( Varien_Event_Observer $observer )
- After updating the quantities of cart items, it might be needed to recalculate the shipping tax
Event: <checkout_cart_update_items_after>
$observer
- Observer-
protected_buildKeywords( array $categoryTypes )
- Processes the category array and generates a string
$categoryTypes
- Categories- Keywords
-
protected_fetchCategoryNames( array $categories )
- Fetches all category names via category path; adds first the assigned categories and second all categories via path.
$categories
- Category Ids- Categories
-
protected_filterString( string $string )
- Calls the Magento template filter to transform {{block type="cms/block" block_id="xyz"}} into the specific html code
$string
- Agreement to filter- Processed String
-
protected_getCategoryKeywords( Mage_Catalog_Model_Product $product )
- Get the categories of the current product
$product
- Product- Categories
-
protected_getCustomerCreateAgreements( )
- Get required agreements on custom registration
- Customer agreement ids