*/ \Isotope\Model\Shipping::registerModelType('flat', 'Isotope\\Model\\Shipping\\Flat'); \Isotope\Model\Shipping::registerModelType('group', 'Isotope\\Model\\Shipping\\Group'); /** * Documents */ \Isotope\Model\Document::registerModelType('standard', 'Isotope\\Model\\Document\\Standard'); /** * Galleries */ \Isotope\Model\Gallery::registerModelType('standard', 'Isotope\\Model\\Gallery\\Standard'); \Isotope\Model\Gallery::registerModelType('inline', 'Isotope\\Model\\Gallery\\Inline'); /** * Products */ \Isotope\Model\Product::registerModelType('standard', 'Isotope\\Model\\Product\\Standard'); /** * Product collections */ \Isotope\Model\ProductCollection::registerModelType('cart', 'Isotope\\Model\\ProductCollection\\Cart'); \Isotope\Model\ProductCollection::registerModelType('order', 'Isotope\\Model\\ProductCollection\\Order'); /** * Product collection surcharge */ \Isotope\Model\ProductCollectionSurcharge::registerModelType('payment', 'Isotope\\Model\\ProductCollectionSurcharge\\Payment'); \Isotope\Model\ProductCollectionSurcharge::registerModelType('shipping', 'Isotope\\Model\\ProductCollectionSurcharge\\Shipping'); \Isotope\Model\ProductCollectionSurcharge::registerModelType('tax', 'Isotope\\Model\\ProductCollectionSurcharge\\Tax'); /** * Attributes */ \Isotope\Model\Attribute::registerModelType('text', 'Isotope\\Model\\Attribute\\TextField');
<?php /** * Copyright (C) 2015 Rhyme Digital, LLC. * * @author Blair Winans <*****@*****.**> * @author Adam Fisher <*****@*****.**> * @link http://rhyme.digital * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL */ /** * Product classes */ \Isotope\Model\Product::registerModelType('gift', 'Rhyme\\Model\\Product\\Gift'); /** * Hooks */ $GLOBALS['ISO_HOOKS']['calculatePrice'][] = array('Rhyme\\Hooks\\CalculatePrice\\CalculateGiftProductPrice', 'run');