diff --git a/LICENSE.html b/LICENSE.html new file mode 100644 index 0000000000..e2315f6a41 --- /dev/null +++ b/LICENSE.html @@ -0,0 +1,42 @@ +
This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+ +Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+ +Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+ +External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+ +Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+ +Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+ +Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+ +Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+ +Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+ +Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+ +Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+ +Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+ +Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+ +Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+ +Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under Open Software License ("OSL") v. 3.0" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
diff --git a/app/Mage.php b/app/Mage.php index 4720e398ae..482bd1172d 100644 --- a/app/Mage.php +++ b/app/Mage.php @@ -82,7 +82,7 @@ final class Mage { public static function getVersion() { - return '1.3.0'; + return '1.3.1'; } /** diff --git a/app/code/core/Mage/Admin/Model/Mysql4/User.php b/app/code/core/Mage/Admin/Model/Mysql4/User.php index 3c7061ff7c..3f129d3927 100644 --- a/app/code/core/Mage/Admin/Model/Mysql4/User.php +++ b/app/code/core/Mage/Admin/Model/Mysql4/User.php @@ -279,4 +279,12 @@ public function userExists(Mage_Core_Model_Abstract $user) $select->where("({$usersTable}.username = '{$user->getUsername()}' OR {$usersTable}.email = '{$user->getEmail()}') AND {$usersTable}.user_id != '{$user->getId()}'"); return $this->_getReadAdapter()->fetchRow($select); } + + public function saveExtra($object, $data) + { + if ($object->getId()) { + $this->_getWriteAdapter()->update($this->getMainTable(), array('extra'=>$data)); + } + return $this; + } } diff --git a/app/code/core/Mage/Admin/Model/Observer.php b/app/code/core/Mage/Admin/Model/Observer.php index a205c1d872..9fc1e39724 100644 --- a/app/code/core/Mage/Admin/Model/Observer.php +++ b/app/code/core/Mage/Admin/Model/Observer.php @@ -53,6 +53,7 @@ public function actionPreDispatchAdmin($event) $username = $postLogin['username']; $password = $postLogin['password']; $user = $session->login($username, $password, $request); + $request->setPost('login', null); } if (!$request->getParam('forwarded')) { if ($request->getParam('isIframe')) { diff --git a/app/code/core/Mage/Admin/Model/Session.php b/app/code/core/Mage/Admin/Model/Session.php index d6a5d1e391..c1061326b0 100644 --- a/app/code/core/Mage/Admin/Model/Session.php +++ b/app/code/core/Mage/Admin/Model/Session.php @@ -70,6 +70,7 @@ public function login($username, $password, $request = null) $user = Mage::getModel('admin/user'); $user->login($username, $password); if ($user->getId()) { + if (Mage::getSingleton('adminhtml/url')->useSecretKey()) { Mage::getSingleton('adminhtml/url')->renewSecretUrls(); } @@ -78,6 +79,7 @@ public function login($username, $password, $request = null) $session->setUser($user); $session->setAcl(Mage::getResourceModel('admin/acl')->loadAcl()); if ($requestUri = $this->_getRequestUri($request)) { + Mage::dispatchEvent('admin_session_user_login_success', array('user'=>$user)); header('Location: ' . $requestUri); exit; } @@ -87,6 +89,7 @@ public function login($username, $password, $request = null) } } catch (Mage_Core_Exception $e) { + Mage::dispatchEvent('admin_session_user_login_failed', array('user_name'=>$username)); if ($request && !$request->getParam('messageSent')) { Mage::getSingleton('adminhtml/session')->addError($e->getMessage()); $request->setParam('messageSent', true); diff --git a/app/code/core/Mage/Admin/Model/User.php b/app/code/core/Mage/Admin/Model/User.php index 3ac0b2878c..a0b6e712bf 100644 --- a/app/code/core/Mage/Admin/Model/User.php +++ b/app/code/core/Mage/Admin/Model/User.php @@ -97,6 +97,21 @@ public function save() return $this; } + /** + * Save admin user extra data (like configuration sections state) + * + * @param array $data + * @return Mage_Admin_Model_User + */ + public function saveExtra($data) + { + if (is_array($data)) { + $data = serialize($data); + } + $this->_getResource()->saveExtra($this, $data); + return $this; + } + /** * Delete user * @@ -227,25 +242,22 @@ public function authenticate($username, $password) $result = false; try { $this->loadByUsername($username); - if ($this->getId()) { + if ($this->getId() && Mage::helper('core')->validateHash($password, $this->getPassword())) { if ($this->getIsActive() != '1') { Mage::throwException(Mage::helper('adminhtml')->__('This account is inactive.')); } - if (Mage::helper('core')->validateHash($password, $this->getPassword())) { - $result = true; + if (!$this->hasAssigned2Role($this->getId())) { + Mage::throwException(Mage::helper('adminhtml')->__('Access Denied.')); } + $result = true; } - Mage::dispatchEvent('admin_user_authenticated', array( + Mage::dispatchEvent('admin_user_authenticate_after', array( 'username' => $username, 'password' => $password, 'user' => $this, 'result' => $result, )); - - if (!$this->hasAssigned2Role($this->getId())) { - Mage::throwException(Mage::helper('adminhtml')->__('Access Denied.')); - } } catch (Mage_Core_Exception $e) { $this->unsetData(); @@ -270,14 +282,6 @@ public function login($username, $password) if ($this->authenticate($username, $password)) { $this->getResource()->recordLogin($this); } - - // dispatch event regardless the user was logged in or not - Mage::dispatchEvent('admin_user_on_login', array( - 'user' => $this, - 'username' => $username, - 'password' => $password, - )); - return $this; } diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php index 7a75f02e5e..67e7171cf5 100644 --- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php +++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit.php @@ -76,7 +76,11 @@ public function __construct() public function getHeaderText() { if (Mage::registry('entity_attribute')->getId()) { - return Mage::helper('catalog')->__('Edit Product Attribute "%s"', $this->htmlEscape(Mage::registry('entity_attribute')->getFrontendLabel())); + $frontendLabel = Mage::registry('entity_attribute')->getFrontendLabel(); + if (is_array($frontendLabel)) { + $frontendLabel = $frontendLabel[0]; + } + return Mage::helper('catalog')->__('Edit Product Attribute "%s"', $this->htmlEscape($frontendLabel)); } else { return Mage::helper('catalog')->__('New Product Attribute'); diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php index bfd321e185..19a85a6668 100644 --- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php +++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config.php @@ -1,212 +1,310 @@ - - */ - -class Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config extends Mage_Adminhtml_Block_Widget implements Mage_Adminhtml_Block_Widget_Tab_Interface -{ - public function __construct() - { - parent::__construct(); - $this->setProductId($this->getRequest()->getParam('id')); - $this->setTemplate('catalog/product/edit/super/config.phtml'); - $this->setId('config_super_product'); - } - - public function getTabClass() - { - return 'ajax'; - } - - protected function _prepareLayout() - { - $this->setChild('grid', - $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_super_config_grid') - ); - - - - $this->setChild('create_empty', - $this->getLayout()->createBlock('adminhtml/widget_button') - ->setData(array( - 'label' => Mage::helper('catalog')->__('Create Empty'), - 'class' => 'add', - 'onclick' => 'superProduct.createEmptyProduct()' - )) - ); - - if ($this->_getProduct()->getId()) { - $this->setChild('simple', - $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_super_config_simple') - ); - - $this->setChild('create_from_configurable', - $this->getLayout()->createBlock('adminhtml/widget_button') - ->setData(array( - 'label' => Mage::helper('catalog')->__('Copy From Configurable'), - 'class' => 'add', - 'onclick' => 'superProduct.createNewProduct()' - )) - ); - } - - return parent::_prepareLayout(); - } - - /** - * Retrieve currently edited product object - * - * @return Mage_Catalog_Model_Product - */ - protected function _getProduct() - { - return Mage::registry('current_product'); - } - - public function getAttributesJson() - { - $attributes = $this->_getProduct()->getTypeInstance(true)->getConfigurableAttributesAsArray($this->_getProduct()); - if(!$attributes) { - return '[]'; - } - return Zend_Json::encode($attributes); - } - - public function getLinksJson() - { - $products = $this->_getProduct()->getTypeInstance(true)->getUsedProducts(null, $this->_getProduct()); - if(!$products) { - return '{}'; - } - $data = array(); - foreach ($products as $product) { - $data[$product->getId()] = $this->getConfigurableSettings($product); - } - return Zend_Json::encode($data); - } - - public function getConfigurableSettings($product) { - $data = array(); - foreach ($this->_getProduct()->getTypeInstance(true)->getUsedProductAttributes($this->_getProduct()) as $attribute) { - $data[] = array( - 'attribute_id' => $attribute->getId(), - 'label' => $product->getAttributeText($attribute->getAttributeCode()), - 'value_index' => $product->getData($attribute->getAttributeCode()) - ); - } - - return $data; - } - - public function getGridHtml() - { - return $this->getChildHtml('grid'); - } - - public function getGridJsObject() - { - return $this->getChild('grid')->getJsObjectName(); - } - - public function getNewEmptyProductUrl() - { - return $this->getUrl( - '*/*/new', - array( - 'set' => $this->_getProduct()->getAttributeSetId(), - 'type' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, - 'required' => $this->_getRequiredAttributesIds(), - 'popup' => 1 - ) - ); - } - - public function getNewProductUrl() - { - return $this->getUrl( - '*/*/new', - array( - 'set' => $this->_getProduct()->getAttributeSetId(), - 'type' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, - 'required' => $this->_getRequiredAttributesIds(), - 'popup' => 1, - 'product' => $this->_getProduct()->getId() - ) - ); - } - - - - public function getQuickCreationUrl() - { - return $this->getUrl( - '*/*/quickCreate', - array( - 'product' => $this->_getProduct()->getId() - ) - ); - } - - - protected function _getRequiredAttributesIds() - { - $attributesIds = array(); - foreach ($this->_getProduct()->getTypeInstance(true)->getConfigurableAttributes($this->_getProduct()) as $attribute) { - $attributesIds[] = $attribute->getProductAttribute()->getId(); - } - - return implode(',', $attributesIds); - } - - public function escapeJs($string) - { - return addcslashes($string, "'\r\n\\"); - } - - public function getTabLabel() - { - return Mage::helper('catalog')->__('Associated Products'); - } - public function getTabTitle() - { - return Mage::helper('catalog')->__('Associated Products'); - } - public function canShowTab() - { - return true; - } - public function isHidden() - { - return false; - } - -}// Class Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config END \ No newline at end of file + + */ +class Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config extends Mage_Adminhtml_Block_Widget implements Mage_Adminhtml_Block_Widget_Tab_Interface +{ + /** + * Initialize block + * + */ + public function __construct() + { + parent::__construct(); + $this->setProductId($this->getRequest()->getParam('id')); + $this->setTemplate('catalog/product/edit/super/config.phtml'); + $this->setId('config_super_product'); + } + + /** + * Retrieve Tab class (for loading) + * + * @return string + */ + public function getTabClass() + { + return 'ajax'; + } + + /** + * Prepare Layout data + * + * @return Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Super_Config + */ + protected function _prepareLayout() + { + $this->setChild('grid', + $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_super_config_grid') + ); + + $this->setChild('create_empty', + $this->getLayout()->createBlock('adminhtml/widget_button') + ->setData(array( + 'label' => Mage::helper('catalog')->__('Create Empty'), + 'class' => 'add', + 'onclick' => 'superProduct.createEmptyProduct()' + )) + ); + + if ($this->_getProduct()->getId()) { + $this->setChild('simple', + $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_super_config_simple') + ); + + $this->setChild('create_from_configurable', + $this->getLayout()->createBlock('adminhtml/widget_button') + ->setData(array( + 'label' => Mage::helper('catalog')->__('Copy From Configurable'), + 'class' => 'add', + 'onclick' => 'superProduct.createNewProduct()' + )) + ); + } + + return parent::_prepareLayout(); + } + + /** + * Retrieve currently edited product object + * + * @return Mage_Catalog_Model_Product + */ + protected function _getProduct() + { + return Mage::registry('current_product'); + } + + /** + * Retrieve attributes data in JSON format + * + * @return string + */ + public function getAttributesJson() + { + $attributes = $this->_getProduct()->getTypeInstance(true) + ->getConfigurableAttributesAsArray($this->_getProduct()); + if(!$attributes) { + return '[]'; + } + return Zend_Json::encode($attributes); + } + + /** + * Retrieve Links in JSON format + * + * @return string + */ + public function getLinksJson() + { + $products = $this->_getProduct()->getTypeInstance(true) + ->getUsedProducts(null, $this->_getProduct()); + if(!$products) { + return '{}'; + } + $data = array(); + foreach ($products as $product) { + $data[$product->getId()] = $this->getConfigurableSettings($product); + } + return Zend_Json::encode($data); + } + + /** + * Retrieve configurable settings + * + * @param Mage_Catalog_Model_Product $product + * @return array + */ + public function getConfigurableSettings($product) { + $data = array(); + $attributes = $this->_getProduct()->getTypeInstance(true) + ->getUsedProductAttributes($this->_getProduct()); + foreach ($attributes as $attribute) { + $data[] = array( + 'attribute_id' => $attribute->getId(), + 'label' => $product->getAttributeText($attribute->getAttributeCode()), + 'value_index' => $product->getData($attribute->getAttributeCode()) + ); + } + + return $data; + } + + /** + * Retrieve Grid child HTML + * + * @return string + */ + public function getGridHtml() + { + return $this->getChildHtml('grid'); + } + + /** + * Retrieve Grid JavaScript object name + * + * @return string + */ + public function getGridJsObject() + { + return $this->getChild('grid')->getJsObjectName(); + } + + /** + * Retrieve Create New Empty Product URL + * + * @return string + */ + public function getNewEmptyProductUrl() + { + return $this->getUrl( + '*/*/new', + array( + 'set' => $this->_getProduct()->getAttributeSetId(), + 'type' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, + 'required' => $this->_getRequiredAttributesIds(), + 'popup' => 1 + ) + ); + } + + /** + * Retrieve Create New Product URL + * + * @return string + */ + public function getNewProductUrl() + { + return $this->getUrl( + '*/*/new', + array( + 'set' => $this->_getProduct()->getAttributeSetId(), + 'type' => Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, + 'required' => $this->_getRequiredAttributesIds(), + 'popup' => 1, + 'product' => $this->_getProduct()->getId() + ) + ); + } + + /** + * Retrieve Quick create product URL + * + * @return string + */ + public function getQuickCreationUrl() + { + return $this->getUrl( + '*/*/quickCreate', + array( + 'product' => $this->_getProduct()->getId() + ) + ); + } + + /** + * Retrieve Required attributes Ids (comma separated) + * + * @return string + */ + protected function _getRequiredAttributesIds() + { + $attributesIds = array(); + foreach ($this->_getProduct()->getTypeInstance(true)->getConfigurableAttributes($this->_getProduct()) as $attribute) { + $attributesIds[] = $attribute->getProductAttribute()->getId(); + } + + return implode(',', $attributesIds); + } + + /** + * Escape JavaScript string + * + * @param string $string + * @return string + */ + public function escapeJs($string) + { + return addcslashes($string, "'\r\n\\"); + } + + /** + * Retrieve Tab label + * + * @return string + */ + public function getTabLabel() + { + return Mage::helper('catalog')->__('Associated Products'); + } + + /** + * Retrieve Tab title + * + * @return string + */ + public function getTabTitle() + { + return Mage::helper('catalog')->__('Associated Products'); + } + + /** + * Can show tab flag + * + * @return bool + */ + public function canShowTab() + { + return true; + } + + /** + * Check is a hidden tab + * + * @return bool + */ + public function isHidden() + { + return false; + } + + /** + * Show "Use default price" checkbox + * + * @return bool + */ + public function getShowUseDefaultPrice() + { + return !Mage::helper('catalog')->isPriceGlobal() + && $this->_getProduct()->getStoreId(); + } +} diff --git a/app/code/core/Mage/Adminhtml/Block/Extensions/Custom/Edit/Tab/Package.php b/app/code/core/Mage/Adminhtml/Block/Extensions/Custom/Edit/Tab/Package.php index 767930e44a..59b30122b7 100644 --- a/app/code/core/Mage/Adminhtml/Block/Extensions/Custom/Edit/Tab/Package.php +++ b/app/code/core/Mage/Adminhtml/Block/Extensions/Custom/Edit/Tab/Package.php @@ -71,7 +71,6 @@ public function initForm() 'name' => 'channel', 'label' => Mage::helper('adminhtml')->__('Channel'), 'required' => true, - 'value' => 'var-dev.varien.com', )); $fieldset->addField('summary', 'textarea', array( diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Window.php b/app/code/core/Mage/Adminhtml/Block/Notification/Window.php index 830bdc985f..833af7c051 100644 --- a/app/code/core/Mage/Adminhtml/Block/Notification/Window.php +++ b/app/code/core/Mage/Adminhtml/Block/Notification/Window.php @@ -75,6 +75,11 @@ protected function _construct() */ public function canShow() { + if (!$this->_isObjectReadable()) { + $this->_available = false; + return false; + } + if (!$this->_isAllowed()) { $this->_available = false; return false; @@ -124,4 +129,17 @@ protected function _isAllowed() return true; } } + + /** + * Check whether or not the remote flash file is available + * + * @return boolean + */ + protected function _isObjectReadable() + { + if (@fopen($this->getObjectUrl() . '.swf', 'r') || @fopen($this->getObjectUrl() . '.dcr', 'r')) { + return true; + } + return false; + } } diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Main.php index 66ed859db9..61bf5d2432 100644 --- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Main.php +++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Main.php @@ -94,7 +94,7 @@ protected function _prepareForm() 'label' => Mage::helper('adminhtml')->__('New Password'), 'id' => 'new_pass', 'title' => Mage::helper('adminhtml')->__('New Password'), - 'class' => 'input-text validate-password', + 'class' => 'input-text validate-admin-password', )); $fieldset->addField('confirmation', 'password', array( diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php new file mode 100644 index 0000000000..10f02d5f63 --- /dev/null +++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php @@ -0,0 +1,48 @@ + + */ +class Mage_Adminhtml_Block_Report_Product_Sold extends Mage_Adminhtml_Block_Widget_Grid_Container +{ + /** + * Initialize container block settings + * + */ + public function __construct() + { + $this->_controller = 'report_product_sold'; + $this->_headerText = Mage::helper('reports')->__('Products Ordered'); + parent::__construct(); + $this->_removeButton('add'); + } +} diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold/Grid.php new file mode 100644 index 0000000000..5c3815e025 --- /dev/null +++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold/Grid.php @@ -0,0 +1,93 @@ + + */ +class Mage_Adminhtml_Block_Report_Product_Sold_Grid extends Mage_Adminhtml_Block_Report_Grid +{ + /** + * Sub report size + * + * @var int + */ + protected $_subReportSize = 0; + + /** + * Initialize Grid settings + * + */ + public function __construct() + { + parent::__construct(); + $this->setId('gridProductsSold'); + } + + /** + * Prepare collection object for grid + * + * @return Mage_Adminhtml_Block_Report_Product_Sold_Grid + */ + protected function _prepareCollection() + { + parent::_prepareCollection(); + $this->getCollection() + ->initReport('reports/product_sold_collection'); + return $this; + } + + /** + * Prepare Grid columns + * + * @return Mage_Adminhtml_Block_Report_Product_Sold_Grid + */ + protected function _prepareColumns() + { + $this->addColumn('name', array( + 'header' =>Mage::helper('reports')->__('Product Name'), + 'index' =>'name' + )); + + $this->addColumn('ordered_qty', array( + 'header' =>Mage::helper('reports')->__('Quantity Ordered'), + 'width' =>'120px', + 'align' =>'right', + 'index' =>'ordered_qty', + 'total' =>'sum', + 'type' =>'number' + )); + + $this->addExportType('*/*/exportSoldCsv', Mage::helper('reports')->__('CSV')); + $this->addExportType('*/*/exportSoldExcel', Mage::helper('reports')->__('Excel')); + + return parent::_prepareColumns(); + } +} diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Search.php b/app/code/core/Mage/Adminhtml/Block/Report/Search.php index 5bab3a0a8f..253c693cf5 100644 --- a/app/code/core/Mage/Adminhtml/Block/Report/Search.php +++ b/app/code/core/Mage/Adminhtml/Block/Report/Search.php @@ -34,7 +34,10 @@ class Mage_Adminhtml_Block_Report_Search extends Mage_Adminhtml_Block_Widget_Grid_Container { - + /** + * Initialize Grid Container + * + */ public function __construct() { $this->_controller = 'report_search'; @@ -42,5 +45,4 @@ public function __construct() parent::__construct(); $this->_removeButton('add'); } - } \ No newline at end of file diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Search/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Search/Grid.php index d7e39321fd..0c52a8f155 100644 --- a/app/code/core/Mage/Adminhtml/Block/Report/Search/Grid.php +++ b/app/code/core/Mage/Adminhtml/Block/Report/Search/Grid.php @@ -20,7 +20,7 @@ * * @category Mage * @package Mage_Adminhtml - * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) + * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ @@ -29,11 +29,14 @@ * * @category Mage * @package Mage_Adminhtml - * @author Magento Core Team{$this->__('Thank you for your purchase!') }
\n"; + echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.INTERNAL_SERVER_ERROR
'."\n"
+ .' 0
diff --git a/app/code/core/Mage/Bundle/Model/Product/Type.php b/app/code/core/Mage/Bundle/Model/Product/Type.php
index ee45cc8161..985fa184fc 100644
--- a/app/code/core/Mage/Bundle/Model/Product/Type.php
+++ b/app/code/core/Mage/Bundle/Model/Product/Type.php
@@ -692,7 +692,7 @@ public function getOptionsByIds($optionIds, $product = null)
->setPositionOrder()
->joinValues(Mage::app()->getStore()->getId())
->setIdFilter($optionIds);
- $this->getProduct($product)->setData($this->_keyUsedOptions, $usedOptionsIds);
+ $this->getProduct($product)->setData($this->_keyUsedOptions, $usedOptions);
$this->getProduct($product)->setData($this->_keyUsedOptionsIds, $optionIds);
}
return $usedOptions;
diff --git a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Creditmemo.php b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Creditmemo.php
index 336245725e..c239582049 100644
--- a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Creditmemo.php
+++ b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Creditmemo.php
@@ -134,7 +134,8 @@ public function draw()
}
$this->_setFontRegular();
if ($option['value']) {
- $values = explode(', ', strip_tags($option['value']));
+ $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
+ $values = explode(', ', $_printValue);
foreach ($values as $value) {
foreach (Mage::helper('core/string')->str_split($value, 50,true,true) as $_value) {
$page->drawText($_value, $leftBound + 5, $pdf->y-$shift[1], 'UTF-8');
diff --git a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php
index 69c10aa204..a8b593fb75 100644
--- a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php
+++ b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php
@@ -125,7 +125,8 @@ public function draw()
}
$this->_setFontRegular();
if ($option['value']) {
- $values = explode(', ', strip_tags($option['value']));
+ $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
+ $values = explode(', ', $_printValue);
foreach ($values as $value) {
foreach (Mage::helper('core/string')->str_split($value, 70, true, true) as $_value) {
$page->drawText($_value, 40, $pdf->y-$shift[1], 'UTF-8');
diff --git a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Shipment.php b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Shipment.php
index 2d3d714608..51c90c2c35 100644
--- a/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Shipment.php
+++ b/app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Shipment.php
@@ -115,7 +115,8 @@ public function draw()
$this->_setFontRegular();
if ($option['value']) {
- $values = explode(', ', strip_tags($option['value']));
+ $_printValue = isset($option['print_value']) ? $option['print_value'] : strip_tags($option['value']);
+ $values = explode(', ', $_printValue);
foreach ($values as $value) {
foreach (Mage::helper('core/string')->str_split($value, 70,true,true) as $_value) {
$page->drawText($_value, 65, $pdf->y-$shift[1], 'UTF-8');
diff --git a/app/code/core/Mage/Catalog/Block/Product/List.php b/app/code/core/Mage/Catalog/Block/Product/List.php
index 1114cac4b3..d659498bb8 100644
--- a/app/code/core/Mage/Catalog/Block/Product/List.php
+++ b/app/code/core/Mage/Catalog/Block/Product/List.php
@@ -1,251 +1,251 @@
-
- */
-class Mage_Catalog_Block_Product_List extends Mage_Catalog_Block_Product_Abstract
-{
- /**
- * Default toolbar block name
- *
- * @var string
- */
- protected $_defaultToolbarBlock = 'catalog/product_list_toolbar';
-
- /**
- * Product Collection
- *
- * @var Mage_Eav_Model_Entity_Collection_Abstract
- */
- protected $_productCollection;
-
- /**
- * Retrieve loaded category collection
- *
- * @return Mage_Eav_Model_Entity_Collection_Abstract
- */
- protected function _getProductCollection()
- {
- if (is_null($this->_productCollection)) {
- $layer = Mage::getSingleton('catalog/layer');
- /* @var $layer Mage_Catalog_Model_Layer */
- if ($this->getShowRootCategory()) {
- $this->setCategoryId(Mage::app()->getStore()->getRootCategoryId());
- }
-
- // if this is a product view page
- if (Mage::registry('product')) {
- // get collection of categories this product is associated with
- $categories = Mage::registry('product')->getCategoryCollection()
- ->setPage(1, 1)
- ->load();
- // if the product is associated with any category
- if ($categories->count()) {
- // show products from this category
- $this->setCategoryId(current($categories->getIterator()));
- }
- }
-
- $origCategory = null;
- if ($this->getCategoryId()) {
- $category = Mage::getModel('catalog/category')->load($this->getCategoryId());
- if ($category->getId()) {
- $origCategory = $layer->getCurrentCategory();
- $layer->setCurrentCategory($category);
- }
- }
- $this->_productCollection = $layer->getProductCollection();
-
- $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());
-
- if ($origCategory) {
- $layer->setCurrentCategory($origCategory);
- }
- }
- return $this->_productCollection;
- }
-
- /**
- * Retrieve loaded category collection
- *
- * @return Mage_Eav_Model_Entity_Collection_Abstract
- */
- public function getLoadedProductCollection()
- {
- return $this->_getProductCollection();
- }
-
- /**
- * Retrieve current view mode
- *
- * @return string
- */
- public function getMode()
- {
- return $this->getChild('toolbar')->getCurrentMode();
- }
-
- /**
- * Need use as _prepareLayout - but problem in declaring collection from
- * another block (was problem with search result)
- */
- protected function _beforeToHtml()
- {
- /*$toolbar = $this->getLayout()->createBlock('catalog/product_list_toolbar', microtime());
- if ($toolbarTemplate = $this->getToolbarTemplate()) {
- $toolbar->setTemplate($toolbarTemplate);
- }*/
- $toolbar = $this->getToolbarBlock();
-
- // called prepare sortable parameters
- $collection = $this->_getProductCollection();
-
- // use sortable parameters
- if ($orders = $this->getAvailableOrders()) {
- $toolbar->setAvailableOrders($orders);
- }
- if ($sort = $this->getSortBy()) {
- $toolbar->setDefaultOrder($sort);
- }
- if ($modes = $this->getModes()) {
- $toolbar->setModes($modes);
- }
-
- // set collection to tollbar and apply sort
- $toolbar->setCollection($collection);
-
- $this->setChild('toolbar', $toolbar);
- Mage::dispatchEvent('catalog_block_product_list_collection', array(
- 'collection'=>$this->_getProductCollection(),
- ));
-
- $this->_getProductCollection()->load();
- Mage::getModel('review/review')->appendSummary($this->_getProductCollection());
- return parent::_beforeToHtml();
- }
-
- /**
- * Retrieve Toolbar block
- *
- * @return Mage_Catalog_Block_Product_List_Toolbar
- */
- public function getToolbarBlock()
- {
- if ($blockName = $this->getToolbarBlockName()) {
- if ($block = $this->getLayout()->getBlock($blockName)) {
- return $block;
- }
- }
- $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
- return $block;
- }
-
- /**
- * Retrieve list toolbar HTML
- *
- * @return string
- */
- public function getToolbarHtml()
- {
- return $this->getChildHtml('toolbar');
- }
-
- public function setCollection($collection)
- {
- $this->_productCollection = $collection;
- return $this;
- }
-
- public function addAttribute($code)
- {
- $this->_getProductCollection()->addAttributeToSelect($code);
- return $this;
- }
-
- public function getPriceBlockTemplate()
- {
- return $this->_getData('price_block_template');
- }
-
- /**
- * Retrieve Catalog Config object
- *
- * @return Mage_Catalog_Model_Config
- */
- protected function _getConfig()
- {
- return Mage::getSingleton('catalog/config');
- }
-
- /**
- * Prepare Sort By fields from Category Data
- *
- * @param Mage_Catalog_Model_Category $category
- * @return Mage_Catalog_Block_Product_List
- */
- public function prepareSortableFieldsByCategory($category) {
- if (!$this->getAvailableOrders()) {
- $this->setAvailableOrders($category->getAvailableSortByOptions());
- }
- $availableOrders = $this->getAvailableOrders();
- if (!$this->getSortBy()) {
- if ($categorySortBy = $category->getDefaultSortBy()) {
- if (!$availableOrders) {
- $availableOrders = $this->_getConfig()->getAttributeUsedForSortByArray();
- }
- if (isset($availableOrders[$categorySortBy])) {
- $this->setSortBy($categorySortBy);
- }
- }
- }
-
- return $this;
- }
-
- /**
- * Retrieve url for add product to cart
- * Rewrited for Product List and has required options products
- *
- * @param Mage_Catalog_Model_Product $product
- * @param array $additional
- * @return string
- */
- public function getAddToCartUrl($product, $additional = array())
- {
- if ($product->hasRequiredOptions()) {
- $url = $product->getProductUrl();
- $link = (strpos($url, '?') !== false) ? '&' : '?';
- return $url . $link . 'options=cart';
- }
- return parent::getAddToCartUrl($product, $additional);
- }
-}
+
+ */
+class Mage_Catalog_Block_Product_List extends Mage_Catalog_Block_Product_Abstract
+{
+ /**
+ * Default toolbar block name
+ *
+ * @var string
+ */
+ protected $_defaultToolbarBlock = 'catalog/product_list_toolbar';
+
+ /**
+ * Product Collection
+ *
+ * @var Mage_Eav_Model_Entity_Collection_Abstract
+ */
+ protected $_productCollection;
+
+ /**
+ * Retrieve loaded category collection
+ *
+ * @return Mage_Eav_Model_Entity_Collection_Abstract
+ */
+ protected function _getProductCollection()
+ {
+ if (is_null($this->_productCollection)) {
+ $layer = Mage::getSingleton('catalog/layer');
+ /* @var $layer Mage_Catalog_Model_Layer */
+ if ($this->getShowRootCategory()) {
+ $this->setCategoryId(Mage::app()->getStore()->getRootCategoryId());
+ }
+
+ // if this is a product view page
+ if (Mage::registry('product')) {
+ // get collection of categories this product is associated with
+ $categories = Mage::registry('product')->getCategoryCollection()
+ ->setPage(1, 1)
+ ->load();
+ // if the product is associated with any category
+ if ($categories->count()) {
+ // show products from this category
+ $this->setCategoryId(current($categories->getIterator()));
+ }
+ }
+
+ $origCategory = null;
+ if ($this->getCategoryId()) {
+ $category = Mage::getModel('catalog/category')->load($this->getCategoryId());
+ if ($category->getId()) {
+ $origCategory = $layer->getCurrentCategory();
+ $layer->setCurrentCategory($category);
+ }
+ }
+ $this->_productCollection = $layer->getProductCollection();
+
+ $this->prepareSortableFieldsByCategory($layer->getCurrentCategory());
+
+ if ($origCategory) {
+ $layer->setCurrentCategory($origCategory);
+ }
+ }
+ return $this->_productCollection;
+ }
+
+ /**
+ * Retrieve loaded category collection
+ *
+ * @return Mage_Eav_Model_Entity_Collection_Abstract
+ */
+ public function getLoadedProductCollection()
+ {
+ return $this->_getProductCollection();
+ }
+
+ /**
+ * Retrieve current view mode
+ *
+ * @return string
+ */
+ public function getMode()
+ {
+ return $this->getChild('toolbar')->getCurrentMode();
+ }
+
+ /**
+ * Need use as _prepareLayout - but problem in declaring collection from
+ * another block (was problem with search result)
+ */
+ protected function _beforeToHtml()
+ {
+ /*$toolbar = $this->getLayout()->createBlock('catalog/product_list_toolbar', microtime());
+ if ($toolbarTemplate = $this->getToolbarTemplate()) {
+ $toolbar->setTemplate($toolbarTemplate);
+ }*/
+ $toolbar = $this->getToolbarBlock();
+
+ // called prepare sortable parameters
+ $collection = $this->_getProductCollection();
+
+ // use sortable parameters
+ if ($orders = $this->getAvailableOrders()) {
+ $toolbar->setAvailableOrders($orders);
+ }
+ if ($sort = $this->getSortBy()) {
+ $toolbar->setDefaultOrder($sort);
+ }
+ if ($modes = $this->getModes()) {
+ $toolbar->setModes($modes);
+ }
+
+ // set collection to tollbar and apply sort
+ $toolbar->setCollection($collection);
+
+ $this->setChild('toolbar', $toolbar);
+ Mage::dispatchEvent('catalog_block_product_list_collection', array(
+ 'collection'=>$this->_getProductCollection(),
+ ));
+
+ $this->_getProductCollection()->load();
+ Mage::getModel('review/review')->appendSummary($this->_getProductCollection());
+ return parent::_beforeToHtml();
+ }
+
+ /**
+ * Retrieve Toolbar block
+ *
+ * @return Mage_Catalog_Block_Product_List_Toolbar
+ */
+ public function getToolbarBlock()
+ {
+ if ($blockName = $this->getToolbarBlockName()) {
+ if ($block = $this->getLayout()->getBlock($blockName)) {
+ return $block;
+ }
+ }
+ $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
+ return $block;
+ }
+
+ /**
+ * Retrieve list toolbar HTML
+ *
+ * @return string
+ */
+ public function getToolbarHtml()
+ {
+ return $this->getChildHtml('toolbar');
+ }
+
+ public function setCollection($collection)
+ {
+ $this->_productCollection = $collection;
+ return $this;
+ }
+
+ public function addAttribute($code)
+ {
+ $this->_getProductCollection()->addAttributeToSelect($code);
+ return $this;
+ }
+
+ public function getPriceBlockTemplate()
+ {
+ return $this->_getData('price_block_template');
+ }
+
+ /**
+ * Retrieve Catalog Config object
+ *
+ * @return Mage_Catalog_Model_Config
+ */
+ protected function _getConfig()
+ {
+ return Mage::getSingleton('catalog/config');
+ }
+
+ /**
+ * Prepare Sort By fields from Category Data
+ *
+ * @param Mage_Catalog_Model_Category $category
+ * @return Mage_Catalog_Block_Product_List
+ */
+ public function prepareSortableFieldsByCategory($category) {
+ if (!$this->getAvailableOrders()) {
+ $this->setAvailableOrders($category->getAvailableSortByOptions());
+ }
+ $availableOrders = $this->getAvailableOrders();
+ if (!$this->getSortBy()) {
+ if ($categorySortBy = $category->getDefaultSortBy()) {
+ if (!$availableOrders) {
+ $availableOrders = $this->_getConfig()->getAttributeUsedForSortByArray();
+ }
+ if (isset($availableOrders[$categorySortBy])) {
+ $this->setSortBy($categorySortBy);
+ }
+ }
+ }
+
+ return $this;
+ }
+
+ /**
+ * Retrieve url for add product to cart
+ * Rewrited for Product List and has required options products
+ *
+ * @param Mage_Catalog_Model_Product $product
+ * @param array $additional
+ * @return string
+ */
+ public function getAddToCartUrl($product, $additional = array())
+ {
+ if ($product->hasRequiredOptions()) {
+ $url = $product->getProductUrl();
+ $link = (strpos($url, '?') !== false) ? '&' : '?';
+ return $url . $link . 'options=cart';
+ }
+ return parent::getAddToCartUrl($product, $additional);
+ }
+}
diff --git a/app/code/core/Mage/Catalog/Block/Product/List/Crosssell.php b/app/code/core/Mage/Catalog/Block/Product/List/Crosssell.php
index aa5f2e0402..39e43d12a9 100644
--- a/app/code/core/Mage/Catalog/Block/Product/List/Crosssell.php
+++ b/app/code/core/Mage/Catalog/Block/Product/List/Crosssell.php
@@ -24,18 +24,29 @@
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
+
/**
* Catalog product related items block
*
* @category Mage
* @package Mage_Catalog
- * @author Magento Core Team Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede.
\r\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede. Cras vel libero id lectus rhoncus porta.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit.
\r\nVivamus tortor nisl, lobortis in, faucibus et, tempus at, dui. Nunc risus. Proin scelerisque augue. Nam ullamcorper. Phasellus id massa. Pellentesque nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc augue. Aenean sed justo non leo vehicula laoreet. Praesent ipsum libero, auctor ac, tempus nec, tempor nec, justo.
\r\nMaecenas ullamcorper, odio vel tempus egestas, dui orci faucibus orci, sit amet aliquet lectus dolor et quam. Pellentesque consequat luctus purus. Nunc et risus. Etiam a nibh. Phasellus dignissim metus eget nisi. Vestibulum sapien dolor, aliquet nec, porta ac, malesuada a, libero. Praesent feugiat purus eget est. Nulla facilisi. Vestibulum tincidunt sapien eu velit. Mauris purus. Maecenas eget mauris eu orci accumsan feugiat. Pellentesque eget velit. Nunc tincidunt.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede. Cras vel libero id lectus rhoncus porta. Suspendisse convallis felis ac enim. Vivamus tortor nisl, lobortis in, faucibus et, tempus at, dui. Nunc risus. Proin scelerisque augue. Nam ullamcorper
\r\nMaecenas ullamcorper, odio vel tempus egestas, dui orci faucibus orci, sit amet aliquet lectus dolor et quam. Pellentesque consequat luctus purus.
\r\nNunc et risus. Etiam a nibh. Phasellus dignissim metus eget nisi.
\r\n\r\nTo all of you, from all of us at Magento Demo Store - Thank you and Happy eCommerce!
\r\nJohn Doe
Some important guy
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede.
\r\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede. Cras vel libero id lectus rhoncus porta.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit.
\r\nVivamus tortor nisl, lobortis in, faucibus et, tempus at, dui. Nunc risus. Proin scelerisque augue. Nam ullamcorper. Phasellus id massa. Pellentesque nisl. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc augue. Aenean sed justo non leo vehicula laoreet. Praesent ipsum libero, auctor ac, tempus nec, tempor nec, justo.
\r\nMaecenas ullamcorper, odio vel tempus egestas, dui orci faucibus orci, sit amet aliquet lectus dolor et quam. Pellentesque consequat luctus purus. Nunc et risus. Etiam a nibh. Phasellus dignissim metus eget nisi. Vestibulum sapien dolor, aliquet nec, porta ac, malesuada a, libero. Praesent feugiat purus eget est. Nulla facilisi. Vestibulum tincidunt sapien eu velit. Mauris purus. Maecenas eget mauris eu orci accumsan feugiat. Pellentesque eget velit. Nunc tincidunt.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi luctus. Duis lobortis. Nulla nec velit. Mauris pulvinar erat non massa. Suspendisse tortor turpis, porta nec, tempus vitae, iaculis semper, pede. Cras vel libero id lectus rhoncus porta. Suspendisse convallis felis ac enim. Vivamus tortor nisl, lobortis in, faucibus et, tempus at, dui. Nunc risus. Proin scelerisque augue. Nam ullamcorper
\r\nMaecenas ullamcorper, odio vel tempus egestas, dui orci faucibus orci, sit amet aliquet lectus dolor et quam. Pellentesque consequat luctus purus.
\r\nNunc et risus. Etiam a nibh. Phasellus dignissim metus eget nisi.
\r\n\r\nTo all of you, from all of us at Magento Demo Store - Thank you and Happy eCommerce!
\r\nJohn Doe
Some important guy
__('Thank you for your purchase!') ?>
+__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?>
+ \ No newline at end of file diff --git a/app/design/frontend/default/default/template/amazonpayments/form.phtml b/app/design/frontend/default/default/template/amazonpayments/form.phtml new file mode 100644 index 0000000000..a82b2f28a6 --- /dev/null +++ b/app/design/frontend/default/default/template/amazonpayments/form.phtml @@ -0,0 +1,34 @@ + + \ No newline at end of file diff --git a/app/design/frontend/default/default/template/amazonpayments/link.phtml b/app/design/frontend/default/default/template/amazonpayments/link.phtml new file mode 100644 index 0000000000..2b82425b07 --- /dev/null +++ b/app/design/frontend/default/default/template/amazonpayments/link.phtml @@ -0,0 +1,49 @@ + + +