diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
new file mode 100644
index 0000000000..821277eeee
--- /dev/null
+++ b/RELEASE_NOTES.txt
@@ -0,0 +1,642 @@
+==== 1.4.1.0 ====
+
+=== Improvements ===
+* Added ability to use static URLs for media in WYSIWYG or image browser. Added ability to enable parsing {{store}} and {{media}} directives on catalog frontend.
+* URL rewrites history: ability to auto-generate custom rewrite with redirect from old to new URL when changing product URL-key
+* Added ability to exclude a category from navigation menu
+* Various improvements in system configuration UI. Introduced ability to make actual configuration structure to be independent on the system.xml structure
+* Added "Only X left" inventory feature
+* Implemented Centinel functionality in iphone theme
+* Upgraded TinyMCE to v.3.3.2
+* Improved PayPal integration, includes:
+** Recurring payment profiles entity and purchasing of "subscription" products. In checkout they are treated as "nominal" items.
+** Billing agreements
+** "Pending Review" order state, "Pending Review" and "Suspected Fraud" order statuses and logic related with this. Triggers by PayPal IPR, FMF and Unilateral payments.
+** Functionality of transactions listing/searching and fetching from gateway
+** Fetching PayPal settlement reports via SFTP
+** Various improvements of PayPal integration on the frontend and admin UI
+* Added notice about creating offline creditmemo from order view page.
+* Added getter for recurring payment methods in payment helper.
+* Implemented abstract block ability to have arbitrary groups of child blocks and a method that returns such a group. Implemented a method that fetches data from child block by specified alias.
+* Implemented ability to specify "sort_order" instead of "before" and "after" in the totals declaration. All nominal totals declaration utilize "sort_order"
+* Added getter for specified object data by key in core/template block: method getObjectData()
+* Defined payment methods grouping, implemented getter for payment method list (with option to group them). Added ability to render grouped options in the "select" grid filter.
+** Moneybookers: utilized the payment methods grouping for all its methods; removed redundant "translate" attribute in the methods definition in config.
+*** Utilized payment methods grouping for PayPal peyment methods.
+* Added more verbosity to PayPal NVP and IPN debugging
+
+=== Changes ===
+* Sales module database structure changed from EAV into flat tables
+* Product custom URL rewrites redirect to SEF URL, rather than to catalog/product/view/id/
+* Reimplemented frontend top menu rendering logic (cross-browser and usability improvements)
+* Reviewed [logic of the sales reports|http://www.magentocommerce.com/wiki/doc/sales_reports_specifications]: Orders, Tax, Invoiced, Shipping, Refunds, Coupons
+* Reimplemented bestsellers report
+* Implemented 3D Secure validation for Maestro International and JCB cards
+* (!) Changed Shopping cart methods output (top + bottom): removed
-dependance from templates in other modules \-> moved to Checkout module
+* Moved the Payflow Pro payment method to PayPal module
+* Refactored sales/service_quote model: instead of submit() method the submitAll() should be used. It can submit nominal items separately from the order. The methods for submitting nominal items and order separately - are available as well.
+* Refactored onepage checkout model to use the new method sales/service_quote::submitAll(), added recurring profiles and billing agreements passing through the process until the success page
+* Utilized child blocks grouping to improve flexibility of rendering additional information in catalog/product/view template. The group is called "detailed_info"; any block from layout may insert itself to this group.
+* Removed redundant wrappers hard-coded into some catalog templates. Template of parent block is responsible for wrapping.
+* Refactored onepage checkout success block and template: simplified fetching related checkout information, added ability to render billing agreement and recurring profiles that might be created with the payment placement.
+
+=== Fixes ===
+* Fixed read/write connection issue during new customer order place. See http://www.magentocommerce.com/boards/viewthread/19363/P0/
+* Fixed tax rule ZIP range matching (numeric values were matched as strings)
+* Various tax fixes
+* Optimized search reindex process
+
+=== Known Issues ===
+* PayPal and Payflow pro modules are officially backwards incompatible.
+* The `sales_order_aggregated_created` table was re-created with new columns, it is not backwards compatible.
+
+=== Upgrade Path ===
+* Once upgraded, go to system configuration section and re-enter all PayPal-related settings carefully. Make sure to specify the proper merchant country and email.
+
+
+
+
+==== 1.4.x-devel-69025 ====
+
+=== Improvements ===
+* PayPal integration:
+** Settlement reports fetching from SFTP
+** Billing Agreements
+* Added website and store data to backend model when invoking in system configuration block
+* Added "original_data" key to elements when generating system configuration form
+
+=== Changes ===
+* Mage_Sales_Model_Order_Payment::canCapture() - move methodInstance::_canCapture before authorization transaction check
+* Sales/Payment changes:
+** Implemented pending payment review functionality. Includes "Payment Review" order state and statuses "Payment Review" and "Suspected Fraud". In this state the order cannot be fulfilled until the payment is approved.
+** Holding orders on pending transactions was replaced in favor of "Payment Review" state. The 'fraud' status was removed from 'holded' order state.
+** Transactions resource model unsets the "isObjectNew" if it had a lookup of autoincrement key before saving
+** Payment capture and capture notification mark invoice as paid only if needed: when it is pending and the transaction is not pending
+** fixed float casting error in Mage_Sales_Model_Order_Payment::_isCaptureFinal()
+** fixed showing up credit card type in CC payment block, if there is no credit card type information
+* PayPal Instant Payment Review and Fraud Management:
+** implemented methods for handling PayPal-specific payment statuses
+** added more data importing to payment info in PayPal: payment status, pending reason, "is_fraud_detected"
+** added importing of all required for payment processing information in different points of WPP API calls
+** implemented IPR and FMF handling for Website Payments Pro methods family (Express Checkout, Direct Payments)
+* Fixed PayPal payment info block to not render redundant CC-related information (it extends CC info block)
+* (!) Changed Shopping cart methods output (top + bottom): removed
-dependance from templates in other modules -> moved to Checkout module
+* Added throwing exception on an incorrect attempt of unholding order (TRJ-148987).
+
+
+
+
+==== 1.4.x-devel-68590 ====
+
+=== Improvements ===
+ * Implemented serializing/unserializing model fields on abstract level. See Mage_Core_Model_Mysql4_Abstract::$_serializableFields
+ * Implemented recurring payment profiles entity and purchasing of "subscription" products. In checkout they are treated as "nominal" items
+ * Implemented functionality of transactions listing/searching and fetching from gateway
+ * Upgraded TinyMCE to v.3.3.2
+ * Added ability to parse "{{media}}" and "{{store}}" CMS directives in the catalog
+ * Added ability to insert media content as static URLs in WYSIWYG or media browser mode
+ * Implemented "Pending Review" order state, "Pending Review" and "Suspected Fraud" order statuses and logic related with this
+ * Added ability to set fieldset always expanded ( node in system configuration for fieldset)
+ * Added ability to set number of "levels up" to form javascript dependencies controller block
+ * EAV: implemented a 'serialized' backend model
+ * Added ability to separate actual configuration path and form field path in system.xml - use node
+ * Added ability to render "tooltips" in system configuration fieldsets - use node
+ * Enhanced PayPal integration:
+ * frontend and backend UI experience of PayPal solutions
+ * Instant update API integrataion
+ * Recurring payments integration
+ * Instant Payment Review and Fraud Management Filters integration
+ * EC unilateral payments integration
+ * Transactions fetching for PayPal WPP methods
+
+=== Changes ===
+ * Reimplemented PayPal system configuration in a dedicated section.
+ * Moved Payflow Pro payment method into PayPal module. Got rid of obsolete system configuration fields of this method.
+ * Refactored implementation of serializing 'additional_information' field in sales/order_payment, sales/quote_payment and sales/order_payment_transaction
+ * Introduced "Is Nominal" term in sales logic:
+ * Nominal items participate in catalog, but during checkout and order processing they have zero row total.
+ * Implemented separate shopping cart and address totals for nominal items: nominal totals, various changes/adjustments in existing totals
+ * Added ability to calculate shipping charges for a quote/address item individually (on code level, utilized by the nominal items)
+ * Reviewed credit card types supported by PayPal payment methods
+ * Changed skin styles from "tax-total" to more generic "summary-total" (it is used now not only for tax totals, but for nominal items as well)
+ * Moved field comments (aka "notes") of the product edit form from the last column under the field element.
+ * Varien_Data_Form_Element_Time: added a hidden element with ID to maintain HTML consistency
+ * Varien_Data_Form - changed logic of adding suffix/prefix to an element: when element doesn't have a name, the suffix will be result
+ * Varien_Data_Form_Abstract and Varien_Data_Form_Element_Abstract: moved adding 'required-entry' class to the element to the moment of its generation instead of the moment of its adding. It adds more flexibility to change properties when the object is not yet rendered.
+ * Added to Varien_Data_Collection_Db::_beforeLoad(), moved 'core_collection_abstract_load_before' event dispatching to Mage_Core_Model_Mysql4_Collection_Abstract::_beforeLoad()
+
+=== Fixes ===
+ * Fixed #21225: catalogProductUpdate / catalogProductCreate and tier_price attribute
+ * Fixed #16596: category.assignedProducts always returns an empty result
+ * Fixed js reference to non-existing element when CVV verification disabled and gateway supports SS-type credit cards
+
+=== Known Issues ===
+ * PayPal modules and Payflow Pro payment method backwards compatibility is officially not retained.
+ * Nominal item total calculations do not work properly for multishipping checkout.
+
+
+
+
+==== 1.4.x-devel-67099 ====
+
+=== Improvements ===
+ * Added isModuleEnabled() to core helper; Added ability to hide configuration fields if related module is not enabled (use 'if_module_enabled' node in system.xml)
+ * Implemented IDNA domains support in registration and login forms (see also #20203)
+
+=== Fixes ===
+ * Fixed #22490: .Biz domain email addresses cause checkout to throw error and return to main Checkout page. Fixed path argument passed to include function in Zend_Validate_Hostname::isValid() to be valid whether source code compiler is used or not
+ * Fixed Negative value in Shopping Cart in case Tax Calculation Method Based On Unit Price
+ * Fixed Subtotal (Incl.Tax) = -$0.01 during created credit memo with refund shipping
+ * Fixed: 100% discount of products -> the amounts of Tax and Grand Totals are or negative or not corectly
+
+
+
+
+==== 1.4.x-devel-66609 ====
+
+=== Improvements ===
+ * Implemented 3D Secure validation for Maestro International and JCB cards
+ * Added comments to system configuration fields "Catalog" > "Price" > "Catalog Price Scope" and "Currency Setup" > "Currency Options" > "Base Currency" that explain that base currency scope depends on the catalog prices scope.
+ * Added note to reports that aggregated data depends on timezone and must be re-aggregated completely after global timezone change.
+
+=== Changes ===
+ * Cleaned up iphone theme from redundant files
+ * Added Maestro International card type to credit card based payment methods (abstract).
+ * Changed option "Notify Customer" into two options "Notify Customer by Email" and "Visible on Frontend" when adding an order comment. All comments that had the old value = 0, will be not visible on the frontend.
+ * System configuration option "Sales" -> "Dashboard" -> "Use Aggregated Data" is marked as "beta"
+ * Added "delta" rounding during shipping excluding/including tax calculation
+ * Added discount tax as line item in PayPal
+ * Reviewed logic of the sales reports:
+ * Orders
+ * Tax
+ * Invoiced
+ * Shipping
+ * Refunds
+ * Coupons
+
+=== Fixes ===
+ * Fixed issue when product quantity was incorrectly updated in stock after an order is placed for a configurable and a bundle products
+ * Fixed #20697: wrong url rewrite resource model
+ * Fixed duplicating of coupon code in shopping cart view
+ * Fixed Catalog RSS feed showing prices including and excluding tax
+ * Fixed #21501: Problem with translate inline and translations
+ * Fixed setting URL key when using quick-create for simple products of the configurable.
+ * Fixed adding comments to sales documents (invoices, shipments, credit memos)
+ * Fixed #21816: Google Analytics Issue with Registration Checkout and Already Logged In
+ * Fixed issue with number of orders that were created by Google Checkout
+ * Fixed #22199: Duplicated Code - Useless Check
+ * Fixed applied tax saving for shipping tax
+ * Fixed issue that invoiced orders after cancelling become completed
+ * Fixed #21533: Missing tranlation for "This date is a required value" in javascript
+ * Fixed: Sales report last update date doesn't change after re-aggregating
+ * Fixed rounding special price of selections in bundle product view
+ * Fixed one day forward shift of dates in sales reports when showing empty rows
+ * Fixed missed calculation of base_total_canceled & total_canceled fields on order cancellation
+ * Fixed wrong calculation of base_discount_canceled & base_discount_canceled because of negative values of base_discount_amount in the sales order tables
+
+=== Known Issues ===
+ * The `sales_order_aggregated_created` table was re-created with new columns, it is not backwards compatible.
+
+
+
+==== 1.4.x-devel-66014 ====
+
+=== Improvements ===
+ * Enabled "Refresh" mass-action as default in cache management grid
+ * Implemented Centinel functionality in iphone theme
+ * Optimized search reindex process a bit
+
+=== Changes ===
+ * Added 3rd optional argument to javascript function toggleValueElements(checkbox, container, excludedElements) in tools.js (products mass-update javascript)
+ * Fixed #9600: Security compromised, Guest can subscribe a client to the newsletter
+ * Checking if subscribing email adress does not belong to another user
+ * If confirmation option selected and subscribing email is not user's login email - then confirmation is needed
+ * Fixed #21304: Security compromised, guest can spam any email address
+ * New config field added into cms -> customer -> newsletter "Allow Guest Subscription"
+
+=== Fixes ===
+ * Fixed order taxes report with Match Period To = Order Updated Date (typo)
+ * Fixed issue when invoiced and not shipped yet orders after cancelling becomes completed
+ * Fixed #21533: Missing tranlation for "This date is a required value" in javascript
+ * Fixed stock management checking for a stock item when the stock management is disabled for this item (the check should be bypassed)
+ * Fixed "New Products" RSS: added grouped and bundle products
+ * Fixed the feed so that it contains grouped products now
+ * The feed now shows the same products as shown in category view or "New products" widget (before the fix, incomplete products might be shown)
+ * Fixed: virtual / downloadable product isn't deleted from the shopping cart, if change qty to '0'
+ * Fixed #21866: 'Master Card' misspelling, should be spelled 'MasterCard' in credit card drop down options in checkout
+ * Fixed #21771: Adjustment Refund & Adjustment Fee not showing in View Credit Memo
+ * Fixed admin timeout issue inside iframe of Centinel validation
+ * Fixed/reviewed tax calculation for components:
+ * shipping price including tax in checkout process block
+ * order/invoice/creditmemo shipping incl tax calculation
+ * applied tax saving for shipping tax
+ * applied tax saving for shipping tax
+ * Fixed #16577: Dual Order with same Product
+ * Fixed: #14502: Newsletter un-subscription message on customer account inappropriate
+
+=== Known Issues ===
+ * PayPal Direct PayFlow Edition may stuck with processing orders, if transactions are processed at manager.paypal.com. The problem is that IPN does not contain PNREF - the PayFlow transaction ID. This issue won't be fixed neither on PayPal, nor on Magento side. The only recommendation to merchant is to either process orders on Magento side only or on manager.paypal.com only.
+
+
+
+
+==== 1.4.x-devel-65494 ====
+
+=== Improvements ===
+ * Added ability to have a comment for promotion rule fielset, similar to generic fieldset.
+ * Added method for getting self child selection options recursively for promotion rule combines
+ * Optimized catalog search system configuration fields sort order to make it more extendable.
+ * Added icon for some buttons in admin that don't do some action instantly, but redirect to other page.
+ * Added cache key generation on core template block level
+ * Added ability to register product ids for last viewed products index
+ * Added ability to disable observer call with disabled node (after backwards compatibility violation discovered)
+ * Performance improvements on Mage_Catalog_Helper_Output::productAttribute method level
+ * Added ability to use lazy connection instantiation on EAV resource models
+ * Added "_isStraight" flag support on Mage_Core_Controller_Request_Http - allows to process request without additional logic (url rewrites, custom design visitor logging)
+
+=== Changes ===
+ * Sales reports refactoring after migration to flat sales structure: added a few indexes, optimized statistics reaggregation, fixed issue with generating statistics in wrong timezone (it was in UTC, but needs to be in the admin timezone)
+ * Added Mage_Core_Helper_Abstract::stripTags() and utilized it in templates instead of strip_tags()
+ * Improved and optimized base design package templates and layouts, minor fixes in payment method templates.
+ * Moved fireEvent() function from adminhtml/events.js to a more generic js.js for future use
+ * Added Mage_Core_Model_Config_Data::getFieldsetDataValue($key) - ability to get a neighbour system configuration value in backend model, when saving system configuration
+ * Reviewed Magento user interface text labels and messages for proper grammar, informativeness and capital letters usage.
+ * Reimplemented top menu rendering logic: implemented Mage_Catalog_Block_Navigation::_renderCategoryMenuItemHtml(), deprecated Mage_Catalog_Block_Navigation::drawItem() and reimplemented to work through _renderCategoryMenuItemHtml for compatibility
+ * Added url rewrites on last viewed products collection
+ * Reimplemented products bestsellers report: report uses pre-aggregated data to improve performance
+ * Moved logic of reaggregating reports data from sales report controller into separate controller, added bestsellers report handling there
+
+=== Fixes ===
+ * Fixed #20782: Wrong prices exc. tax with discount in cart
+ * Fixed #21099: Wrong subtotal for manual order entry with manual price
+ * Fixed #21271: Price inc tax and exc. tax same for grouped product
+ * Fixed grid js object name in grid pager: now it uses block method instead of direct building
+ * Fixed changing notification when editing a product in various tabs:
+ * Downloadable products: links title (element had no id attribute and thus was omitted by the event dispatcher init code)
+ * Custom options: whatever was added with "Add option"
+ * Bundles: whatever was added with "Add option"
+ * All date input fields when using the calendar widget
+ * Prices: tiered prices box, all rows added with "Add tier"
+ * Fixed #6321: Add RSS urls to head section
+ * Fixed #21831: Tax Calculation Version 1.4.0.1 still incorrect
+ * Fixed #12067: iPhone Terms and Conditions Box
+ * Fixed #20631: Order totals when creating order from admin do not reflect currently selected currency
+ * Fixed #21777: Catalog pricerules
+ * Fixed #14591: Incorrect SKU for Configurable Product with Custom Options
+ * Fixed #20832: PayPal Standard tax issue: implemented proper tax and discounts validation/transferring with cart line items
+ * Fixed #17451: Header Links (top.links.phtml) does not output correctly because it is using the model code (the Toplinks block is deprecated)
+ * Fixed #21302: PayPal PayFlow Pro: card expiration date format should be MMYY, not MMYYYY. Also fixed country code typo issue.
+ * Fixed #21686: Typo in tag.xml
+ * Fixed extra quoting in select html element
+ * Fixed XHTML validation errors in admin in some places
+ * Fixed #21912: calculation error transfer between multishipping address
+ * Fixed typo in PayPal NVP API that caused impossibility to do partial captures
+
+
+
+
+==== 1.4.x-devel-64603 ====
+
+=== Improvements ===
+ * Implemented 3D Secure validation for the JCB credit cards
+ * Added "Only X Left" feature - an option to show on a product view page how many items remains in stock, if it is lower than specific threshold.
+ * (in progress) implementation of #7741: Customer group increase order size . The feature is called "Qty Increments" - to trade items in boxes only. I.e. allow to purchase 6, 12, 18 items etc...
+
+=== Changes ===
+ * Refactored frontend navigation menu HTML structure and javascripts: the menu expands and collapses with small delay making it more accessible for users. Fixed possible compatibility issue in Mage_Catalog_Block_Navigation::drawItem() and marked as deprecated after 1.4. Removed local calls of onmouseover/onmouseout events to improve SEO.
+ * Added ability to assign id for field containers (TR tag) using node 1 in system configuration
+ * Moving widgets.css below in the code for proper styles overriding.
+ * Moved JCB credit card declaration and implementation into the Mage_Payment module. Removed it from other modules (they will inherit JCB card from "CC" payment method)
+ * Modified Varien_Object_Mapper to check arrays using array_key_exists() instead of isset()
+ * Indexer changes (related to the #21031):
+ * Removed DROP/CREATE statements for index temporary tables
+ * Created static index temporary tables (InnoDB and MEMORY) and separated using those tables in reindexiAll() and reindexEntities()
+ * Added ability to set a comment in adminhtml generic fieldset renderer
+
+=== Fixes ===
+ * Fixed #21313: Display price including TAX
+ * Fixed #21632: Associated products don't get cached
+ * Minor bugfixes in 3D Secure integration (API debugging, improvements in css and javascript)
+ * 3D Secure integraion - fixed confused constant values in centinel service model
+ * Fixed autocomplete in year field on new user registration
+ * Fixed _isCaptureNeeded validation for PayPal pro (exception during invoicing captured transaction)
+ * Fixed typo in PayPal Direct API variable "AUTHSTATUS3DS" (error in official documentation)
+ * Moneybookers:
+ * fixed translations in the activation email
+ * minor fixes in account confirmation javascript
+ * Fixed #21752: Moneybookers configuration per store
+ * Fixed #21302: PayPal PayFlow Pro: card expiration date format should be MMYY, not MMYYYY
+ * Fixed #20932: unique key in catalog_product_link
+ * Fixed #21031: Simultaneous product->save() causes "Base table or view already exists: 1050 Table catalog_product_index_price_idx' already exists
+
+
+
+
+==== 1.4.x-devel-64038 ====
+
+=== Improvements ===
+ * Minor CSS improvements in frontend themes
+ * Image/media browser minor UI improvements
+ * Added default placeholder for skin images in wysiwyg
+ * Minor style improvements for widgets insertion overlay
+ * Implemented 3D Secure transactions debugging
+ * Added ability to set a writer adapter to the Mage::log() and to use Mage::log() regardless of system configuration settings
+ * Added Magento Variable icon for WYSIWYG
+ * Added ability to append custom class name to main pop-up window container
+ * Added explanation comments for Centinel Api Custom URL
+
+=== Changes ===
+ * Added element as parameter of system configuration field getCommentText method
+ * Added ability to use isObjectNew method of model for object save on resource model level
+ * Added additional blocks support on order history and last orders blocks level
+ * Made encryption key length check binary-safe
+ * Added full exception trace logging to cron_schedule table
+ * Moved shopping cart price rule coupon to separate table, improved shopping cart price rule management UI
+ * Added ability to specify model for system config field comment generation (system.xml):
+ * module/model
+ * requires getCommentText method definition from defined model
+ * Changed the way how payment methods debug transactions: instead of database the debug information is written into var/log/payment_.log
+ * Updated text labels in sales reports: terminology for "report type" (period matches to)
+ * Added new column 'updated_at' for wishlist table. Changed controller and model logic to save new data.
+
+=== Fixes ===
+ * Fixed #21250: HTML code displaying like text in descriptions / List View Displaying HTML Entity Values
+ * Fixed #21251: html code shows in category product listing
+ * Fixed: Unit Price in Shopping Cart is incorrect when applying a Coupon Code
+ * Fixed #18536: Rounding error on Shipping Tax calculations
+ * Fixed bugs with row based tax calculation and shipping tax calculation
+ * Fixed width/height in WYSIWYG image insertion
+ * Fixed authorize.net payment transaction saving during capture
+ * Fixed #20890: Incorrect function name
+ * Fixed #21055: No Navigation on Advanced Search Results
+ * Fixed #20912: memory_limit suffix other than 'M'
+ * Fixed #20884: JS bug in Widget/Grid/Column/Action.php
+ * Fixed #7228: Credit Memo - Adjustment Fee $ or %
+ * Fixed #20832: paypal - standard Tax issue
+ * (in progress) UI minor fixes in 3D Secure validation process
+ * Added forgotten Moneybookers email template
+
+
+
+
+==== 1.4.x-devel-63512 ====
+
+=== Improvements ===
+ * Implemented #6321: Add RSS urls to head section
+ * Implemented #7293: Track IP in abandoned cart
+ * (in progress) Ability to not include a category into navigation menu
+
+=== Changes ===
+ * Refactored Sales module resource from EAV into flat structure.
+ * Sales entities data structure changes:
+ * Dashboard optimization + configuration option "Use Aggregated Data" for dashboard
+ * Inventory: moved stock items qty manipulations out of transaction, fixed qty upgrade logic (x+delta)
+ * Added configuration option "Automatically return Credit Memo item to Stock" for refunds autogeneration
+ * Removed downloadable products FK relation with sales module
+ * Sales order tax logic moved to tax module and relation with sales module by FK
+ * Sales, SalesRule and Checkout modules changes:
+ * Added product customer group property validation on sales rules level
+ * Added ability to assign quote object to checkout cart model
+ * Prevented redundant customer model load in customer address
+ * Optimized saveDownloadableOrderItem item in downloadable product observer
+ * Prevented double "order by" in collection select statement
+ * Added _beforeLoad support and not changed object save protection on core abstract level
+ * Extended abstract collection with add/remove fields to/from select
+ * Escaped html entities in mail form in 404, 503 and report.php error pages, prevented errors if global array $_SERVER is undefined
+ * Minor text changes in PayPal modules
+ * Added not existin observers methods calls protection
+ * Separated tax shipping total from tax subtotal. Now taxes for store prices (code tax_subtotal) calculates before shipping, then calculates shipping (code shipping) and taxes for shipping (code tax_shipping) and then calculates customer taxes (code tax).
+
+
+=== Fixes ===
+ * Fixed #21061: Global country tax applied instead of specific state tax
+ * Fixed catalog price rules different sorting when applying the rule vs. saving the product
+ * Fixed #20603: Async Google Analytics throws js error (_gaq not defined)
+ * Fixed SQL error possibility when adding bundle to cart
+ * Fixed #16684: ini_set of auto_detect_line_endings during Varien_Io_File::streamReadCsv
+ * Fixed #17748: Category chooser at price rules
+ * Fixed #20161: Special From Date for website
+ * Fixed Fatal error: Call to undefined method Mage_Admin_Model_Observer::actionPostDispatchAdmin() in \app\code\core\Mage\Core\Model\App.php on line 1207 (backward compatibility)
+
+
+
+
+==== 1.4.x-devel-62916 ====
+
+=== Improvements ===
+ * Improved visual design of widget and variable insertion, and media browser overlay
+ * Product custom URL rewrites redirect to SEF URL, rather than to catalog/product/view/id/
+ * URL rewrites history: ability to auto-generate custom rewrite with redirect from old to new URL when changing product URL-key
+ * Optimized getAttributeRawValue() method in catalog module for retrieving more then one attributes
+
+=== Changes ===
+ * Added javascript validation for JCB cards
+ * Changed confusing error message about quantity in shopping cart into proper one
+ * Added comments collection loading when invoice, credit memo or shipment created with adding comment: needed before adding first comment.
+ * Added Varien_Db_Ddl_Table
+ * Added method createTable from DDL to Varien_Db_Apater_Pdo_Mysql
+ * Removed getting Varien_Object id in Varien_Debug
+
+=== Fixes ===
+ * Fixed read/write connection issue during new customer order place. See http://www.magentocommerce.com/boards/viewthread/19363/P0/
+ * Fixed confusion with admin page title when editing product
+ * Fixed bug in Mage_Bundle_Model_Product_Type::getSelectionsCollection(): retrieved collection depends on passed optionIds only on first method call
+ * Fixed: New products RSS feed appears instead of the Special products RSS feed
+ * Fixed tax rule ZIP range matching (numeric values were matched as strings)
+ * Fixed #14055: New orders RSS feed displaying incorrect customer name
+ * Fixed #19192: Error when product inventory messed up on viewing order.
+ * Fixed minor visual design issues in themes and skins
+ * Fixed getting secure host URL in 404, 503 and report.php error pages
+ * Fixed up filtering of filenames of uploaded files
+ * Fixed position issue for cross-sell products
+ * Fixed #20372: importing images
+ * Fixed: #17845: Validation and Ampersand Flaws in Layered Navigation and other locations that use the fake query string
+ * Fixed #15592: Mage_Adminhtml_Model_System_Config_Source_Shipping_Allowedmethods::toOptionArray() not compatiable with parent method
+ * Made proper validate() independent of submit in form.js (Visions contribution)
+ * Fixed incorrect js logic on order create backend page (Visions contribution):
+ * Fixed: when create order, it is not possible to resubmit after initial validation failed (because submit button is disabled)
+ * Improved client side validation that new order has shipping address (it is required to click "get shipping method and rates"
+ * Improved client side validation that payment method is selected (like in checkout of frontend)
+ * Improved usability of sales admin (Visions patch):
+ * added ability to export csv or excel for orders, shipments, creditmemos, invoices
+ * made filter for creditmemo and shipment type text so it is possible to just enter one id and find object looking for (unified with orders and invoices, there it is already text not number)
+ * Fixed #17659: UPS Minimum Weight Required for Negotiated Rates
+ * Fixed #20580: Index module not translated
+
+=== Known Issues ===
+ * It is impossible to run more than one 3D Secure card validations simultaneously in one session. Not fixable.
+
+
+
+
+==== 1.4.0.1 ====
+
+=== Changes ===
+
+ * The error report exception printing is disabled by default for security reasons. To print the error report, copy the errors/local.xml.sample to errors/local.xml
+ * XSS vulnerabilities review
+ * Added Phoenix_Moneybookers payment method module (from now bundled in Magento out of the box)
+
+=== Fixes ===
+
+ * Fixed #20680: Catalog - Google Sitemap
+ * Fixed #20024: Error message 'Data saving problem' when try to checkout with multiple addresses (when address deleted during multishipping process)
+ * Fixed #20625: Fatal error: Exception thrown without a stack frame in Unknown on line 0 (Fixed cache backend instantiation when a shared PEAR library is in the include path)
+ * Fixed issues of upgrading from 1.3.x to 1.4.x through Magento Connect in some installations
+ * Fixed #20659: Unable to choose images for upload (duplicates: #20588, #20573, #20616, #20595)
+ * Fixed shell cron script runner
+ * Refixed #17963: Ampersand in Search Breadcrumb: Double-encoded
+
+=== Upgrade Notes ===
+
+ * We highly recommend disabling Magento cache before upgrading
+ * In layout of any custom theme the usage of catalog/product_list_toolbar block should be changed to page/html_pager:
+ 1) Replace the catalog/product/list/toolbar.phtml of your theme by the new one
+ 2) Update catalog.xml layout: should be replaced into
+
+
+
+
+==== 1.4.0.0 ====
+
+=== 1.4 Major Improvements since 1.3 ===
+ * Implemented 3D Secure credit card validation (Visa and Mastercard)
+ * Full reimplementation of PayPal modules, includes lot of new functionality and numerous bugfixes
+ * Full review of frontend themes, introduced design cross-package fallback and the base/default theme. Includes SEO and accessibility enhancements. Changes are oriented to dramatically reduce themes maintenance.
+ * Added ability to define arbitrary cache backends
+ * Optimized performance of sales reports, added new sales report types
+ * Added image/media uploader/browser, that can browse entire media folder
+ * Optimized performance of search indexer
+ * Made order processing workflow more informative and severe
+ * Reimplemented 404 and report pages, introduced 503 page, specifically for maintenance purposes
+ * Improved javascript files merging, added CSS files merging
+ * Added Widgets functionality, added several widgets out of the box
+ * Added Custom Variables functionality
+ * Added lot of new System Configuration options
+ * Improved order placement reliability
+ * Added WYSIWYG for CMS and Catalog
+ * Optimized cache initialization during startup
+ * Optimized export from grids in admin area
+ * Improved tax and discount totals calculation
+ * Replaced admin notification flash popup into a simple HTML overlay
+ * Implemented product and category URLs per store view
+ * Added ability to configure entry point using virtualhost environment configuration, rather than creating another physical entry point
+ * Optimized simple product view without custom options
+
+=== Coommunity Edition Changes since 1.4.0.0-rc1 ===
+
+== Improvements ==
+ * Implemented 3D Secure credit card (Visa, Mastercard) validation for payment methods:
+ * Saved CC
+ * PayPal Website Payments Pro - Direct Payments
+ * PayPal Website Payments Pro (Payflow Edition) - Direct Paymens
+ * Payflow Pro
+ * Improved modern theme: significantly reduced number of files in virtue of cross-package fallback to base/default theme
+ * Implemented #11012: Support canonical link tag
+ * Implemented WYSIWYG for newsletter templates
+ * Minor improvements in sales reports
+ * Renamed button "Refund" to "Refund Offline" on Credit Memo page for order
+ * 19963: Mage_Eav_Model_Entity_Setup::addAttributeToGroup() (visions patch)
+ * improved print.css for CE themes
+ * SEO and accessibility improvements in default/default, default/modern and default/blank themes
+ * left and right callouts templates, both callouts images and links are now controlled via catalog.xml
+ * Added relevant page titles in admin area
+ * Implemented column decorators and ability to use getter callback in admin grids
+ * Made fetching payment methods sort order properly: via getConfigData() rather getStoreConfig() (optimization for 3rd-party customizations)
+ * Implemented ability for page/html_wrapper block to not render the wrapper tag, made it output children sorted
+ * Implemented wrappers for inserting additional blocks in:
+ * before shopping cart line items list
+ * before onepage checkout login/registration form
+ * before customer registration form
+ * before newsletter subcription form (customer "My Account")
+ * before product review form
+ * before product tag submission form (product view page)
+ * Implemented giropay integration with PayPal Express Checkout
+ * Added before/after initialize and before/after validate events to opcheckout.js
+ * Optimized products toolbar functionality, prevent saving to session default grid parameters (for sorting, pager etc.)
+ * Added filter by website in "Last ordered items" block
+
+== Changes ===
+ * PayPal Website Payments Pro (Payflow Edition) is completely rewritten, as extending Mage_Paypal module. With breaking code backwards compatibility.
+ * Mage_Core_Model_Flag - moved setting flag_code to _construct()
+ * AmazonPayments module is removed from package and will be available as a separate extension on Magento Connect
+ * #19595: Varien_File_Uploader_Image not working - class is deprecated and should not be used
+ * Marked dead code Mage_Checkout_Model_Type_Abstract::_emailOrderConfirmation() as deprecated
+ * Reimplemented 404, 503 and report.php error pages: now fully configurable from errors/local.xml, with ability to override theme per entry point or even store view
+ * error report doesn't disclose the trace by default anymore
+ * Added to Catalog Product Price indexer upgrade operation by removing old temporary index tables if exists
+ * Product image uploader security measurements:
+ * disabled ability to run php scripts in "media" folder
+ * added callback validation to File/Uploader.php
+ * added image file validation to Catalog/Product/GalleryController.php
+ * Prevented flushing output buffer caused by exceptions in templates included by core/template block
+ * added default _type param to Design Package getters in core/design_package model
+ * Added additional qty parameter to event 'catalog_product_get_final_price'
+ * Updated sales sql-upgrades: fixed missing table prefixes in some places, rewrote adding foreign keys via methods
+ * Implemented 'any-value-validate' logic for Catalog Rules; common methods moved to parent (Mage_CatalogRule_Model_Rule_Condition_Product) class
+ * Expanded width of fields on product and category edit pages
+ * Added ability to render number sign in currency and number grid renderers
+ * Fixed datetime grid renderer to make it use getters (see parent class)
+ * Added Mage_Core_Block_Abstract::escapeHtml() instead of htmlEscape()
+ * Added ability to make output optional in page/html_pager block (when items total quantity is less than page size)
+ * Added ability disable product list toolbar params saving to session
+ * Added sorting by param name to query params part of url
+ * Made page/html_wrapper block treat children empty output as if there are no children.
+ * Implemented dynamic BN codes for PayPal. Pattern: Varien_Cart_(EC|DP|WPS)[_] where country code is one of 18 country codes currently PayPal has localized market sites. * Fixed session cookie renew functionality, added ability define cookie settings for javescript methods
+ * When LN filter for an anchor category is active not allow to use display mode "Static Block Only"
+ * Sales: made online operations and notifications updating "online" totals, instead of totals mixed with online/offline sales documents. Removed updating "base_amount_canceled" total update when voided payment (this was backwards compatibility violation)
+
+== Fixes ==
+ * Fixed 'tax_rate_data_fetch' event params
+ * Minor fixes in PayPal Express Checkout and PayPal Direct (non-reported bugs, terminology issues)
+ * Fixed #16210: Input field size decreased in category products grid
+ * Fixed #17281: Google Checkout: Incorrect assigning of [parent_id]
+ * Fixed #14251: Google Checkout still does not allow free shipping
+ * Fixed #11412: Rounding error in tax and shipping calculation
+ * Fixed #11836: No authentication on customer reviews url
+ * Fixed #13511: "Default web url" does not work as expected
+ * Fixed #14469: Newly created products for configurable products do not stick
+ * Fixed #14915: Invoice payment capture _needToAddDummy bug
+ * Fixed #15235: Special price bug with multiple websites
+ * Fixed #16425: printing in admin breaks top menu
+ * Fixed #16499: Require customer login for reviews not 100% working
+ * Fixed #17058: Currency Switch won't work on first time in shop frontend (session id issue)
+ * Fixed #17504: Birthday getting swapped (Month and Day)
+ * Fixed #17720: core_flag primary key is a smallint and has a max value of 65535
+ * Fixed #17793: Google Base Special Price not mapped to Price
+ * Fixed #Fixed #18127: Bundle Products pricing incorrectly when not required
+ * Fixed #18341: Bugs in dataflow: number of records
+ * Fixed #18745: Customer Import shouldn't send email
+ * Fixed #18868: Unable to use Mage::log() before config is read
+ * Fixed #19290: Changing 'My Account' info may destroy log in when password is blank
+ * Fixed some XSS vulnerabilities in admin
+ * Fixed #19448: Incorrect handling of empty attributes under PHP 5.2.0
+ * Fixed #19449: Google Base
+ * Fixed USPS First Class International and USPS Express Mail International shipping method that stopped working after gateway changes
+ * Fixed #19512: /index.php/checkout/onepage/getAddress/address/ allows everyone logged in to get all addresses
+ * Tax rates edit form won't clean on validation error anymore
+ * Fixed #19702: getLastOrderId missing parameter
+ * Fixed #19729: unable to translate "Display product options in" and "Product Type"
+ * Fixed #19753: Compare products page breaks if no attributes are marked as "Comparable"
+ * Fixed #19791: Shipment tracking not displayed from admin panel with store code in URLs enabled
+ * Fixed #19838: missing two escape characters in validation.js at the validate-email regex
+ * Fixed #19873: Minor warning fix
+ * Fixed #19904: please remove double file extensions in filenames of uploaded files
+ * Fixed #19954: Undefined variable
+ * Fixed #19960: Google Analytics Asynchronous Tracking Code
+ * Fixed #19964: cart sidebar shows zero total when displayed including tax
+ * Fixed #19969: Css is wong for gift-message-form
+ * Fixed #20023: Admin login is very slow when widgets.magentocommerce.com is down
+ * Fixed #20080: Dataflow Profiles Need to be Sorted
+ * Fixed #20250: Search'n'replace oversight
+ * A few fixes in URL rewrites logic
+ * Fixed #20350: WRONG "XML_PATH_SCHEDULE_GENERATE_EVERY"
+ * Fixed #20361: Move Category Failed
+ * Fixed #6564: Transactional Email Templates Using alt="Magento"
+ * Fixed #8514: Negative Number in Sorting
+ * Fixed Price indexer website date/rate
+ * Fixed tier_price and website table names in Catalog Product Price Default indexer
+ * Fixed command line installation - fatal caused by improper website initialization
+ * Implemented correct setting attributes to entity including situation when there are no attribute value for default sore
+ * Fixed #19263: Adminhtml Html Error: Double
+ * Fixed "undefined index" notice when saving Table Rates without uploading import rates file.
diff --git a/app/Mage.php b/app/Mage.php
index 9b14dff814..b1ce249c5e 100644
--- a/app/Mage.php
+++ b/app/Mage.php
@@ -138,7 +138,7 @@ final class Mage
public static function getVersion()
{
$i = self::getVersionInfo();
- return trim("{$i['major']}.{$i['minor']}.{$i['revision']}.{$i['patch']}-{$i['stability']}{$i['number']}", '.-');
+ return trim("{$i['major']}.{$i['minor']}.{$i['revision']}" . ($i['patch'] != '' ? ".{$i['patch']}" : "") . "-{$i['stability']}{$i['number']}", '.-');
}
/**
@@ -152,8 +152,8 @@ public static function getVersionInfo()
return array(
'major' => '1',
'minor' => '4',
- 'revision' => '0',
- 'patch' => '1',
+ 'revision' => '1',
+ 'patch' => '0',
'stability' => '',
'number' => '',
);
@@ -658,8 +658,9 @@ public static function isInstalled($options = array())
* @param string $message
* @param integer $level
* @param string $file
+ * @param bool $forceLog
*/
- public static function log($message, $level = null, $file = '')
+ public static function log($message, $level = null, $file = '', $forceLog = false)
{
if (!self::getConfig()) {
return;
@@ -675,7 +676,7 @@ public static function log($message, $level = null, $file = '')
$logActive = true;
}
- if (!self::$_isDeveloperMode && !$logActive) {
+ if (!self::$_isDeveloperMode && !$logActive && !$forceLog) {
return;
}
@@ -699,7 +700,13 @@ public static function log($message, $level = null, $file = '')
$format = '%timestamp% %priorityName% (%priority%): %message%' . PHP_EOL;
$formatter = new Zend_Log_Formatter_Simple($format);
- $writer = new Zend_Log_Writer_Stream($logFile);
+ $writerModel = (string)self::getConfig()->getNode('global/log/core/writer_model');
+ if (!self::$_app || !$writerModel) {
+ $writer = new Zend_Log_Writer_Stream($logFile);
+ }
+ else {
+ $writer = new $writerModel($logFile);
+ }
$writer->setFormatter($formatter);
$loggers[$file] = new Zend_Log($writer);
}
diff --git a/app/code/community/Phoenix/Moneybookers/Helper/Data.php b/app/code/community/Phoenix/Moneybookers/Helper/Data.php
index 663662d601..e92b517440 100644
--- a/app/code/community/Phoenix/Moneybookers/Helper/Data.php
+++ b/app/code/community/Phoenix/Moneybookers/Helper/Data.php
@@ -42,22 +42,28 @@ class Phoenix_Moneybookers_Helper_Data extends Mage_Payment_Helper_Data
public function activateEmail()
{
$storeId = Mage::app()->getStore()->getId();
- $mailTemplate = Mage::getModel('core/email_template');
- $mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId))
+ $translate = Mage::getSingleton('core/translate');
+ /* @var $translate Mage_Core_Model_Translate */
+ $translate->setTranslateInline(false);
+
+ Mage::getModel('core/email_template')
+ ->setDesignConfig(array('area' => 'frontend', 'store' => $storeId))
->sendTransactional(
'moneybookers_activateemail',
Mage::getStoreConfig(Mage_Sales_Model_Order::XML_PATH_EMAIL_IDENTITY, $storeId),
$this->_activationEmailTo,
- $this->_activationEmailTo,
+ null,
array(
- 'subject' => $this->_activationEmailSubject,
- 'email_addr' => Mage::getStoreConfig(self::XML_PATH_EMAIL),
- 'url' => Mage::getBaseUrl(),
+ 'subject' => $this->_activationEmailSubject,
+ 'email_addr' => Mage::getStoreConfig(self::XML_PATH_EMAIL),
+ 'url' => Mage::getBaseUrl(),
'customer_id' => Mage::getStoreConfig(self::XML_PATH_CUSTOMER_ID),
- 'language' => Mage::getModel('core/locale')->getDefaultLocale()
+ 'language' => Mage::getModel('core/locale')->getDefaultLocale()
)
);
+
+ $translate->setTranslateInline(true);
}
/**
diff --git a/app/code/community/Phoenix/Moneybookers/Model/Abstract.php b/app/code/community/Phoenix/Moneybookers/Model/Abstract.php
index b1b324c3fb..9a281d4649 100644
--- a/app/code/community/Phoenix/Moneybookers/Model/Abstract.php
+++ b/app/code/community/Phoenix/Moneybookers/Model/Abstract.php
@@ -42,7 +42,7 @@ abstract class Phoenix_Moneybookers_Model_Abstract extends Mage_Payment_Model_Me
protected $_paymentMethod = 'abstract';
protected $_defaultLocale = 'en';
- protected $_supportedLocales = array('cn', 'cz', 'en', 'es', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'tr');
+ protected $_supportedLocales = array('cn', 'cz', 'da', 'en', 'es', 'fi', 'de', 'fr', 'gr', 'it', 'nl', 'ro', 'ru', 'pl', 'sv', 'tr');
protected $_hidelogin = '1';
protected $_order;
diff --git a/app/code/community/Phoenix/Moneybookers/Model/Event.php b/app/code/community/Phoenix/Moneybookers/Model/Event.php
index 09d3927166..e6f3a8c838 100644
--- a/app/code/community/Phoenix/Moneybookers/Model/Event.php
+++ b/app/code/community/Phoenix/Moneybookers/Model/Event.php
@@ -85,11 +85,11 @@ public function processStatusEvent()
$msg = '';
switch($params['status']) {
case self::MONEYBOOKERS_STATUS_FAIL: //fail
- $msg = Mage::helper('moneybookers')->__('Payment failed');
+ $msg = Mage::helper('moneybookers')->__('Payment failed.');
$this->_processCancel($msg);
break;
case self::MONEYBOOKERS_STATUS_CANCEL: //cancel
- $msg = Mage::helper('moneybookers')->__('Payment was canceled');
+ $msg = Mage::helper('moneybookers')->__('Payment was canceled.');
$this->_processCancel($msg);
break;
case self::MONEYBOOKERS_STATUS_PENDING: //pending
@@ -116,7 +116,7 @@ public function processStatusEvent()
public function cancelEvent() {
try {
$this->_validateEventData(false);
- $this->_processCancel('Payment was canceled');
+ $this->_processCancel('Payment was canceled.');
return Mage::helper('moneybookers')->__('The order has been canceled.');
} catch (Mage_Core_Exception $e) {
return $e->getMessage();
@@ -199,7 +199,7 @@ protected function _validateEventData($fullCheck = true)
// get request variables
$params = $this->_eventData;
if (empty($params)) {
- Mage::throwException('Request doesn\'t contain any elements.');
+ Mage::throwException('Request does not contain any elements.');
}
// check order ID
@@ -217,12 +217,12 @@ protected function _validateEventData($fullCheck = true)
if ($fullCheck) {
// check payment status
if (empty($params['status'])) {
- Mage::throwException('Unknown payment status');
+ Mage::throwException('Unknown payment status.');
}
// check transaction signature
if (empty($params['md5sig'])) {
- Mage::throwException('Invalid transaction signature');
+ Mage::throwException('Invalid transaction signature.');
}
$checkParams = array('merchant_id', 'transaction_id', 'secret', 'mb_amount', 'mb_currency', 'status');
@@ -245,7 +245,7 @@ protected function _validateEventData($fullCheck = true)
// check transaction amount if currency matches
if ($this->_order->getOrderCurrencyCode() == $params['mb_currency']) {
if (round($this->_order->getGrandTotal(), 2) != $params['mb_amount']) {
- Mage::throwException('Transaction amount doesn\'t match.');
+ Mage::throwException('Transaction amount does not match.');
}
}
}
diff --git a/app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php b/app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php
index 63b83667ea..66aa9b619d 100644
--- a/app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php
+++ b/app/code/community/Phoenix/Moneybookers/controllers/ProcessingController.php
@@ -52,7 +52,7 @@ public function paymentAction()
Mage::throwException('No order for processing found');
}
$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage_Sales_Model_Order::STATE_PENDING_PAYMENT,
- Mage::helper('moneybookers')->__('Customer was redirected to Moneybookers.')
+ Mage::helper('moneybookers')->__('The customer was redirected to Moneybookers.')
);
$order->save();
diff --git a/app/code/community/Phoenix/Moneybookers/etc/config.xml b/app/code/community/Phoenix/Moneybookers/etc/config.xml
index b8aeb97103..364e9a7206 100644
--- a/app/code/community/Phoenix/Moneybookers/etc/config.xml
+++ b/app/code/community/Phoenix/Moneybookers/etc/config.xml
@@ -55,6 +55,11 @@
+
+
+ Moneybookers
+
+
@@ -143,172 +148,189 @@
moneybookers/acc
+ mbookersmoneybookers/csi
+ mbookersmoneybookers/did
+ mbookersmoneybookers/dnk
+ mbookersmoneybookers/ebt
+ mbookersmoneybookers/ent
+ mbookersmoneybookers/gcb
+ mbookersmoneybookers/gir
+ mbookersmoneybookers/idl
+ mbookersmoneybookers/lsr
+ mbookersmoneybookers/npy
+ mbookersmoneybookers/pli
+ mbookersmoneybookers/psp
+ mbookersmoneybookers/pwy
+ mbookersmoneybookers/sft
+ mbookersmoneybookers/so2
+ mbookersmoneybookers/wlt
+ mbookers0
-
+ 0moneybookers/accCredit Card / Visa, Mastercard, AMEX, JCB, Diners0
-
+ 0moneybookers/csiCartaSi1IT
-
+ 0moneybookers/didLastschrift (ELV)1DE
-
+ 0moneybookers/dnkDankort1DK
-
+ 0moneybookers/ebtNordea Solo1SE
-
+ 0moneybookers/enteNETS1SG
-
+ 0moneybookers/gcbCarte Bleue1FR
-
+ 0moneybookers/girGiropay1DE
-
+ 0moneybookers/idliDeal1NL
-
+ 0moneybookers/lsrLaser1IE
-
+ 0moneybookers/npyEPS Online-Überweisung1AT
-
+ 0moneybookers/pliPOLi1AU
-
+ 0moneybookers/pspPostepay1IT
-
+ 0moneybookers/pwyAll Polish Banks1PL
-
+ 0moneybookers/sftSofortüberweisung1DE
-
+ 0moneybookers/so2Nordea Solo1FI
-
+ 0moneybookers/wltMoneybookers eWallet
diff --git a/app/code/community/Phoenix/Moneybookers/etc/system.xml b/app/code/community/Phoenix/Moneybookers/etc/system.xml
index 4d17a7ccd4..c582c016ca 100644
--- a/app/code/community/Phoenix/Moneybookers/etc/system.xml
+++ b/app/code/community/Phoenix/Moneybookers/etc/system.xml
@@ -27,8 +27,8 @@
text9901
- 0
- 0
+ 1
+ 1
@@ -40,7 +40,7 @@
- here for a free account if you don’t have one yet.]]>
+ here for a free account if you don’t have one yet.]]>text11
@@ -80,7 +80,7 @@
20111
- 0
+ 1
@@ -89,7 +89,7 @@
111
- 0
+ 1
@@ -97,7 +97,7 @@
311
- 0
+ 1
@@ -105,7 +105,7 @@
511
- 0
+ 1
@@ -114,7 +114,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -123,7 +123,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -134,7 +134,7 @@
25211
- 0
+ 1
@@ -143,7 +143,7 @@
111
- 0
+ 1
@@ -151,7 +151,7 @@
311
- 0
+ 1
@@ -159,7 +159,7 @@
511
- 0
+ 1
@@ -168,7 +168,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -177,7 +177,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -188,7 +188,7 @@
21111
- 0
+ 1
@@ -197,7 +197,7 @@
111
- 0
+ 1
@@ -205,7 +205,7 @@
311
- 0
+ 1
@@ -213,7 +213,7 @@
511
- 0
+ 1
@@ -222,7 +222,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -231,7 +231,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -242,7 +242,7 @@
24111
- 0
+ 1
@@ -251,7 +251,7 @@
111
- 0
+ 1
@@ -259,7 +259,7 @@
311
- 0
+ 1
@@ -267,7 +267,7 @@
511
- 0
+ 1
@@ -276,7 +276,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -285,7 +285,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -296,7 +296,7 @@
27111
- 0
+ 1
@@ -305,7 +305,7 @@
111
- 0
+ 1
@@ -313,7 +313,7 @@
311
- 0
+ 1
@@ -321,7 +321,7 @@
511
- 0
+ 1
@@ -330,7 +330,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -339,7 +339,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -350,7 +350,7 @@
26111
- 0
+ 1
@@ -359,7 +359,7 @@
111
- 0
+ 1
@@ -367,7 +367,7 @@
311
- 0
+ 1
@@ -375,7 +375,7 @@
511
- 0
+ 1
@@ -384,7 +384,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -393,7 +393,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -404,7 +404,7 @@
23111
- 0
+ 1
@@ -413,7 +413,7 @@
111
- 0
+ 1
@@ -421,7 +421,7 @@
311
- 0
+ 1
@@ -429,7 +429,7 @@
511
- 0
+ 1
@@ -438,7 +438,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -447,7 +447,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -458,7 +458,7 @@
21211
- 0
+ 1
@@ -467,7 +467,7 @@
111
- 0
+ 1
@@ -475,7 +475,7 @@
311
- 0
+ 1
@@ -483,7 +483,7 @@
511
- 0
+ 1
@@ -492,7 +492,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -501,7 +501,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -512,7 +512,7 @@
29111
- 0
+ 1
@@ -521,7 +521,7 @@
111
- 0
+ 1
@@ -529,7 +529,7 @@
311
- 0
+ 1
@@ -537,7 +537,7 @@
511
- 0
+ 1
@@ -546,7 +546,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -555,7 +555,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -566,7 +566,7 @@
22111
- 0
+ 1
@@ -575,7 +575,7 @@
111
- 0
+ 1
@@ -583,7 +583,7 @@
311
- 0
+ 1
@@ -591,7 +591,7 @@
511
- 0
+ 1
@@ -600,7 +600,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -609,7 +609,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -620,7 +620,7 @@
30111
- 0
+ 1
@@ -629,7 +629,7 @@
111
- 0
+ 1
@@ -637,7 +637,7 @@
311
- 0
+ 1
@@ -645,7 +645,7 @@
511
- 0
+ 1
@@ -654,7 +654,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -663,7 +663,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -674,7 +674,7 @@
31111
- 0
+ 1
@@ -683,7 +683,7 @@
111
- 0
+ 1
@@ -691,7 +691,7 @@
311
- 0
+ 1
@@ -699,7 +699,7 @@
511
- 0
+ 1
@@ -708,7 +708,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -717,7 +717,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -728,7 +728,7 @@
25111
- 0
+ 1
@@ -737,7 +737,7 @@
111
- 0
+ 1
@@ -745,7 +745,7 @@
311
- 0
+ 1
@@ -753,7 +753,7 @@
511
- 0
+ 1
@@ -762,7 +762,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -771,7 +771,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -782,7 +782,7 @@
32111
- 0
+ 1
@@ -791,7 +791,7 @@
111
- 0
+ 1
@@ -799,7 +799,7 @@
311
- 0
+ 1
@@ -807,7 +807,7 @@
511
- 0
+ 1
@@ -816,7 +816,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -825,7 +825,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -836,7 +836,7 @@
21311
- 0
+ 1
@@ -845,7 +845,7 @@
111
- 0
+ 1
@@ -853,7 +853,7 @@
311
- 0
+ 1
@@ -861,7 +861,7 @@
511
- 0
+ 1
@@ -870,7 +870,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -879,7 +879,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -890,7 +890,7 @@
28111
- 0
+ 1
@@ -899,7 +899,7 @@
111
- 0
+ 1
@@ -907,7 +907,7 @@
311
- 0
+ 1
@@ -915,7 +915,7 @@
511
- 0
+ 1
@@ -924,7 +924,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -933,7 +933,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
@@ -944,7 +944,7 @@
33111
- 0
+ 1
@@ -953,7 +953,7 @@
111
- 0
+ 1
@@ -961,7 +961,7 @@
311
- 0
+ 1
@@ -969,7 +969,7 @@
511
- 0
+ 1
@@ -978,7 +978,7 @@
adminhtml/system_config_source_payment_allspecificcountries11
- 0
+ 1
@@ -987,7 +987,7 @@
adminhtml/system_config_source_country11
- 0
+ 11
diff --git a/app/code/core/Mage/Admin/Model/Acl.php b/app/code/core/Mage/Admin/Model/Acl.php
index 854051cc57..4754cfc56e 100644
--- a/app/code/core/Mage/Admin/Model/Acl.php
+++ b/app/code/core/Mage/Admin/Model/Acl.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php b/app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
index 00f5ace01a..629b3e62e5 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Assert/Time.php b/app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
index ec0bcf6055..7b5d8d5dbd 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Resource.php b/app/code/core/Mage/Admin/Model/Acl/Resource.php
index cc539ea6ef..ab1a66ef0a 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Resource.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Resource.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Role.php b/app/code/core/Mage/Admin/Model/Acl/Role.php
index 6928fc108d..a50216e6f5 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Role.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Role/Generic.php b/app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
index 7dbe7486bb..cb91256d47 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Role/Group.php b/app/code/core/Mage/Admin/Model/Acl/Role/Group.php
index 035d5d19cd..5250a9baf0 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Role/Group.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Role/Group.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Role/Registry.php b/app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
index 09441f208c..cd77a72499 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Acl/Role/User.php b/app/code/core/Mage/Admin/Model/Acl/Role/User.php
index dcf99703d1..319f420d5c 100644
--- a/app/code/core/Mage/Admin/Model/Acl/Role/User.php
+++ b/app/code/core/Mage/Admin/Model/Acl/Role/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Config.php b/app/code/core/Mage/Admin/Model/Config.php
index e3bf2990cb..52d554688f 100644
--- a/app/code/core/Mage/Admin/Model/Config.php
+++ b/app/code/core/Mage/Admin/Model/Config.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Acl.php b/app/code/core/Mage/Admin/Model/Mysql4/Acl.php
index 9884d1bdb4..82e71c10fd 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Acl.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Acl.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php b/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
index 3b4baf525f..68c7cbc667 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php
index 1164dc6dba..3c3ace0602 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Acl/Role/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php
index 1f12bb85f3..627824d818 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Permissions/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Role.php b/app/code/core/Mage/Admin/Model/Mysql4/Role.php
index dccea2f2c7..a0083331e5 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Role.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
index ef8e3c171e..386d4cb719 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Roles.php b/app/code/core/Mage/Admin/Model/Mysql4/Roles.php
index 58ecd66ab5..5c042fbb01 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Roles.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
index 323a3fc720..0a949ba5d2 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php
index e545733f7a..63cb13dccd 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Roles/User/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Rules.php b/app/code/core/Mage/Admin/Model/Mysql4/Rules.php
index 251c46605e..a0e94e0bcf 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Rules.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Rules.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
index c6b4685a96..1b76a1f781 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/User.php b/app/code/core/Mage/Admin/Model/Mysql4/User.php
index 38f2cecffd..386d7eb8fd 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/User.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php b/app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
index d01fb689b0..b39f1a91f1 100644
--- a/app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
+++ b/app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Observer.php b/app/code/core/Mage/Admin/Model/Observer.php
index fb8f2c6f91..1644cb358e 100644
--- a/app/code/core/Mage/Admin/Model/Observer.php
+++ b/app/code/core/Mage/Admin/Model/Observer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -81,4 +81,14 @@ public function actionPreDispatchAdmin($event)
$session->refreshAcl();
}
+
+ /**
+ * Unset session first visit flag after displaying page
+ *
+ * @deprecated after 1.4.0.1, logic moved to admin session
+ * @param Varien_Event_Observer $event
+ */
+ public function actionPostDispatchAdmin($event)
+ {
+ }
}
diff --git a/app/code/core/Mage/Admin/Model/Role.php b/app/code/core/Mage/Admin/Model/Role.php
index 20b03a910a..81351b013e 100644
--- a/app/code/core/Mage/Admin/Model/Role.php
+++ b/app/code/core/Mage/Admin/Model/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Roles.php b/app/code/core/Mage/Admin/Model/Roles.php
index c26fa7d9a3..b6d2c29d0b 100644
--- a/app/code/core/Mage/Admin/Model/Roles.php
+++ b/app/code/core/Mage/Admin/Model/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Rules.php b/app/code/core/Mage/Admin/Model/Rules.php
index 4a69fdefc8..4d492921de 100644
--- a/app/code/core/Mage/Admin/Model/Rules.php
+++ b/app/code/core/Mage/Admin/Model/Rules.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/Session.php b/app/code/core/Mage/Admin/Model/Session.php
index 9f2140ced9..7cbebe1112 100644
--- a/app/code/core/Mage/Admin/Model/Session.php
+++ b/app/code/core/Mage/Admin/Model/Session.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/Model/User.php b/app/code/core/Mage/Admin/Model/User.php
index 9e093ffdc5..6eecf223e6 100644
--- a/app/code/core/Mage/Admin/Model/User.php
+++ b/app/code/core/Mage/Admin/Model/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -236,7 +236,7 @@ public function authenticate($username, $password)
Mage::throwException(Mage::helper('adminhtml')->__('This account is inactive.'));
}
if (!$this->hasAssigned2Role($this->getId())) {
- Mage::throwException(Mage::helper('adminhtml')->__('Access Denied.'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Access denied.'));
}
$result = true;
}
@@ -408,7 +408,7 @@ public function validate()
}
if ($this->userExists()) {
- $errors[] = Mage::helper('adminhtml')->__('User with the same User Name or Email aleady exists');
+ $errors[] = Mage::helper('adminhtml')->__('A user with the same user name or email aleady exists.');
}
if (empty($errors)) {
diff --git a/app/code/core/Mage/Admin/etc/config.xml b/app/code/core/Mage/Admin/etc/config.xml
index 7dff9283a5..f32cec09ea 100644
--- a/app/code/core/Mage/Admin/etc/config.xml
+++ b/app/code/core/Mage/Admin/etc/config.xml
@@ -21,7 +21,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
-->
diff --git a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php
index e64ffcb41f..ad1f7946e0 100644
--- a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php
+++ b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-install-0.7.0.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php
index d1bd8b2b45..cae86380cc 100644
--- a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php
+++ b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.0-0.7.1.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.1-0.7.2.php b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.1-0.7.2.php
index ec725f1034..44c559c79b 100644
--- a/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.1-0.7.2.php
+++ b/app/code/core/Mage/Admin/sql/admin_setup/mysql4-upgrade-0.7.1-0.7.2.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Admin
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Helper/Data.php b/app/code/core/Mage/AdminNotification/Helper/Data.php
index 971c5e58c4..4ca99e64ee 100644
--- a/app/code/core/Mage/AdminNotification/Helper/Data.php
+++ b/app/code/core/Mage/AdminNotification/Helper/Data.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Feed.php b/app/code/core/Mage/AdminNotification/Model/Feed.php
index 2bf867652c..f995cd862d 100644
--- a/app/code/core/Mage/AdminNotification/Model/Feed.php
+++ b/app/code/core/Mage/AdminNotification/Model/Feed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Inbox.php b/app/code/core/Mage/AdminNotification/Model/Inbox.php
index a74b72e2ab..44107d55be 100644
--- a/app/code/core/Mage/AdminNotification/Model/Inbox.php
+++ b/app/code/core/Mage/AdminNotification/Model/Inbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php b/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php
index 66a286b333..dbb8ed5d89 100644
--- a/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php
+++ b/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php b/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php
index f5fb63e5d9..e16c6ee6c1 100644
--- a/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php
+++ b/app/code/core/Mage/AdminNotification/Model/Mysql4/Inbox/Collection.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Observer.php b/app/code/core/Mage/AdminNotification/Model/Observer.php
index 518062c8fc..339d5d2fe5 100644
--- a/app/code/core/Mage/AdminNotification/Model/Observer.php
+++ b/app/code/core/Mage/AdminNotification/Model/Observer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/Model/Survey.php b/app/code/core/Mage/AdminNotification/Model/Survey.php
index d0ce1f4204..5d0466abd9 100644
--- a/app/code/core/Mage/AdminNotification/Model/Survey.php
+++ b/app/code/core/Mage/AdminNotification/Model/Survey.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/AdminNotification/etc/adminhtml.xml b/app/code/core/Mage/AdminNotification/etc/adminhtml.xml
index 28a4dd0812..98f03d6ba2 100644
--- a/app/code/core/Mage/AdminNotification/etc/adminhtml.xml
+++ b/app/code/core/Mage/AdminNotification/etc/adminhtml.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/app/code/core/Mage/AdminNotification/etc/config.xml b/app/code/core/Mage/AdminNotification/etc/config.xml
index ca99192da4..d7f1dde028 100644
--- a/app/code/core/Mage/AdminNotification/etc/config.xml
+++ b/app/code/core/Mage/AdminNotification/etc/config.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/app/code/core/Mage/AdminNotification/etc/system.xml b/app/code/core/Mage/AdminNotification/etc/system.xml
index 3fc8e7066e..0d63ce4e50 100644
--- a/app/code/core/Mage/AdminNotification/etc/system.xml
+++ b/app/code/core/Mage/AdminNotification/etc/system.xml
@@ -21,7 +21,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
-->
@@ -38,7 +38,7 @@
0
-
+
selectadminhtml/system_config_source_yesno1
@@ -47,7 +47,7 @@
0
-
+
selectadminhtml/system_config_source_notification_frequency2
@@ -56,7 +56,7 @@
0
-
+
labeladminhtml/system_config_form_field_notification3
diff --git a/app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php b/app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php
index 3e5e54d36b..403a68fda9 100644
--- a/app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php
+++ b/app/code/core/Mage/AdminNotification/sql/adminnotification_setup/mysql4-install-1.0.0.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_AdminNotification
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Abstract.php
index d05de0e08e..82c188e39d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Buttons.php b/app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
index bfdbdd0f73..e0db50babe 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Buttons.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Editroles.php b/app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
index 2067e48fcd..61c4362d24 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Editroles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Edituser.php b/app/code/core/Mage/Adminhtml/Block/Api/Edituser.php
index ba9737459d..5ec0db4f12 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Edituser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Edituser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php b/app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
index 277b941c66..6a2c444a1b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Grid/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Role.php b/app/code/core/Mage/Adminhtml/Block/Api/Role.php
index d93cf0e7ef..93cd907c26 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Role.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php b/app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
index aa94255ad3..0cdc3aa686 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Role/Grid/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Roles.php b/app/code/core/Mage/Adminhtml/Block/Api/Roles.php
index 6c68ea6588..754989d28e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Roles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
index 09d5757915..190bed8b34 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Roleinfo.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
index da1327580f..abd256b0c6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesedit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
index d1ea44a431..45f26e90df 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Rolesusers.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php
index 0b980c3604..496fa7ded8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Tab/Userroles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Api_Tab_Userroles extends Mage_Adminhtml_Block_Widget_Tabs
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User.php b/app/code/core/Mage/Adminhtml/Block/Api/User.php
index 3580b46865..af031eab92 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
index ea5aac4a3b..d4cb43eff7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
index 4f2223c629..07c89c9585 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
index 7ccaa0002b..d72b01c94a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -91,15 +91,15 @@ protected function _prepareForm()
if ($model->getUserId()) {
$fieldset->addField('password', 'password', array(
'name' => 'new_api_key',
- 'label' => Mage::helper('adminhtml')->__('New Api Key'),
+ 'label' => Mage::helper('adminhtml')->__('New API Key'),
'id' => 'new_pass',
- 'title' => Mage::helper('adminhtml')->__('New Api Key'),
+ 'title' => Mage::helper('adminhtml')->__('New API Key'),
'class' => 'input-text validate-password',
));
$fieldset->addField('confirmation', 'password', array(
'name' => 'api_key_confirmation',
- 'label' => Mage::helper('adminhtml')->__('Api Key Confirmation'),
+ 'label' => Mage::helper('adminhtml')->__('API Key Confirmation'),
'id' => 'confirmation',
'class' => 'input-text validate-cpassword',
));
@@ -107,17 +107,17 @@ protected function _prepareForm()
else {
$fieldset->addField('password', 'password', array(
'name' => 'api_key',
- 'label' => Mage::helper('adminhtml')->__('Api Key'),
+ 'label' => Mage::helper('adminhtml')->__('API Key'),
'id' => 'customer_pass',
- 'title' => Mage::helper('adminhtml')->__('Api Key'),
+ 'title' => Mage::helper('adminhtml')->__('API Key'),
'class' => 'input-text required-entry validate-password',
'required' => true,
));
$fieldset->addField('confirmation', 'password', array(
'name' => 'api_key_confirmation',
- 'label' => Mage::helper('adminhtml')->__('Api Key Confirmation'),
+ 'label' => Mage::helper('adminhtml')->__('API Key Confirmation'),
'id' => 'confirmation',
- 'title' => Mage::helper('adminhtml')->__('Api Key Confirmation'),
+ 'title' => Mage::helper('adminhtml')->__('API Key Confirmation'),
'class' => 'input-text required-entry validate-cpassword',
'required' => true,
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
index 6c51fe6afb..38ca041955 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
index 2d0b5654a8..a380a7f49b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php b/app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
index 49506c7fac..80569613cc 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/User/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Api/Users.php b/app/code/core/Mage/Adminhtml/Block/Api/Users.php
index ee6e7a17af..b53ed6072b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Api/Users.php
+++ b/app/code/core/Mage/Adminhtml/Block/Api/Users.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Backup.php b/app/code/core/Mage/Adminhtml/Block/Backup.php
index b071a00504..c4aa363fc4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Backup.php
+++ b/app/code/core/Mage/Adminhtml/Block/Backup.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Backup/Grid.php b/app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
index c741f98a78..76413087b6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Backup/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -65,7 +65,7 @@ protected function _prepareColumns()
));
$this->addColumn('size', array(
- 'header' => Mage::helper('backup')->__('Size, byte'),
+ 'header' => Mage::helper('backup')->__('Size, Bytes'),
'index' => 'size',
'type' => 'number',
'sortable' => false,
diff --git a/app/code/core/Mage/Adminhtml/Block/Cache.php b/app/code/core/Mage/Adminhtml/Block/Cache.php
index 7ca05983fb..130f38319f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cache.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cache.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -41,7 +41,7 @@ public function __construct()
'class' => 'delete',
));
- $message = Mage::helper('core')->__('Cache storage can contain another data. Are you sure that you want flush it?');
+ $message = Mage::helper('core')->__('Cache storage may contain another data. Are you sure that you want flush it?');
$this->_addButton('flush_system', array(
'label' => Mage::helper('core')->__('Flush Cache Storage'),
'onclick' => 'confirmSetLocation(\''.$message.'\', \'' . $this->getFlushStorageUrl() .'\')',
diff --git a/app/code/core/Mage/Adminhtml/Block/Cache/Additional.php b/app/code/core/Mage/Adminhtml/Block/Cache/Additional.php
index b7942c194c..a8ae7792d9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cache/Additional.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cache/Additional.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cache/Grid.php b/app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
index 386a07b69c..89a2f1de35 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cache/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -174,6 +174,7 @@ protected function _prepareMassaction()
$this->getMassactionBlock()->addItem('refresh', array(
'label' => Mage::helper('index')->__('Refresh'),
'url' => $this->getUrl('*/*/massRefresh'),
+ 'selected' => true,
));
return $this;
diff --git a/app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php b/app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php
index 170b504d2e..0bc9baebe9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cache/Notifications.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog.php b/app/code/core/Mage/Adminhtml/Block/Catalog.php
index 75931749f7..b0b65a3022 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
index ed91e0678d..b1961d0b40 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -139,8 +139,9 @@ public function getRootByIds($ids)
{
$root = Mage::registry('root');
if (null === $root) {
- $tree = Mage::getResourceSingleton('catalog/category_tree')
- ->loadByIds($ids);
+ $categoryTreeResource = Mage::getResourceSingleton('catalog/category_tree');
+ $ids = $categoryTreeResource->getExistingCategoryIdsBySpecifiedIds($ids);
+ $tree = $categoryTreeResource->loadByIds($ids);
$rootId = Mage_Catalog_Model_Category::TREE_ROOT_ID;
$root = $tree->getNodeById($rootId);
if ($root && $rootId != Mage_Catalog_Model_Category::TREE_ROOT_ID) {
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php
index 3d0875175d..4cde9e642a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Checkboxes/Tree.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
index c2ae48c0b1..323d54f919 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php
index cdf87d7b86..4a645cec06 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -180,7 +180,7 @@ public function getHeader()
if ($this->hasStoreRootCategory()) {
return $this->getCategoryId() ? $this->getCategoryName() : Mage::helper('catalog')->__('New Category');
}
- return Mage::helper('catalog')->__('Set Root Category For Store');
+ return Mage::helper('catalog')->__('Set Root Category for Store');
}
public function getDeleteUrl(array $args = array())
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
index 4c4cc7057e..fb5b257203 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Image.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php
index b779d06859..bb45b2ff5e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Available.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -56,7 +56,7 @@ public function getElementHtml()
$html .= ' disabled="disabled"';
}
- $html .= 'onclick="toggleValueElements(this, this.parentNode);" class="checkbox" type="checkbox">';
+ $html .= ' onclick="toggleValueElements(this, this.parentNode);" class="checkbox" type="checkbox" />';
$html .= ' ';
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php
index 8964fdade3..cb68ff80c4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Helper/Sortby/Default.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -54,7 +54,7 @@ public function getElementHtml()
if ($this->getReadonly()) {
$html .= ' disabled="disabled"';
}
- $html .= 'onclick="toggleValueElements(this, this.parentNode);" class="checkbox" type="checkbox">';
+ $html .= ' onclick="toggleValueElements(this, this.parentNode);" class="checkbox" type="checkbox" />';
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php
index f065296a1f..b3bc9f022f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -109,7 +109,7 @@ protected function _prepareForm() {
));
}
}
-
+
$this->_setFieldset($attributes, $fieldset);
foreach ($attributes as $attribute) {
@@ -121,6 +121,10 @@ protected function _prepareForm() {
'name' => 'url_key',
'value' => $this->getCategory()->getUrlKey()
));
+ } else {
+ $form->getElement('url_key')->setRenderer(
+ $this->getLayout()->createBlock('adminhtml/catalog_form_renderer_attribute_urlkey')
+ );
}
}
}
@@ -133,6 +137,10 @@ protected function _prepareForm() {
}
}
+ if (!$this->getCategory()->getId()){
+ $this->getCategory()->setIncludeInMenu(1);
+ }
+
$form->addValues($this->getCategory()->getData());
$form->setFieldNameSuffix('general');
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
index d237c795cf..5183cc9fa8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Design.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Catalog_Category_Tab_Design extends Mage_Adminhtml_Block_Catalog_Form
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
index 49a786738b..e3bdd0de9d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/General.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
index 5e518e5bf7..2b97d65741 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
index df67e08299..106ce3d187 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
index dd2e9014f2..965342a8f0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tree.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php
index 3f1936a850..ec2cb3c047 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Widget/Chooser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -113,7 +113,9 @@ public function getNodeClickListener()
if ($this->getUseMassaction()) {
$js = '
function (node, e) {
- node.ui.toggleCheck(true);
+ if (node.ui.toggleCheck) {
+ node.ui.toggleCheck(true);
+ }
}
';
} else {
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
index c9bd0945fe..f98e06cf3b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Attribute/Urlkey.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Attribute/Urlkey.php
new file mode 100644
index 0000000000..cd1435bef9
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Attribute/Urlkey.php
@@ -0,0 +1,65 @@
+
+ */
+
+class Mage_Adminhtml_Block_Catalog_Form_Renderer_Attribute_Urlkey
+ extends Mage_Adminhtml_Block_Catalog_Form_Renderer_Fieldset_Element
+{
+ public function getElementHtml()
+ {
+ $element = $this->getElement();
+ if(!$element->getValue()) {
+ return parent::getElementHtml();
+ }
+ $element->setOnkeyup("onUrlkeyChanged('" . $element->getHtmlId() . "')");
+ $element->setOnchange("onUrlkeyChanged('" . $element->getHtmlId() . "')");
+
+ $data = array(
+ 'name' => $element->getData('name') . '_create_redirect',
+ 'disabled' => true,
+ );
+ $hidden = new Varien_Data_Form_Element_Hidden($data);
+ $hidden->setForm($element->getForm());
+
+ $storeId = $element->getForm()->getDataObject()->getStoreId();
+ $data['html_id'] = $element->getHtmlId() . '_create_redirect';
+ $data['label'] = Mage::helper('catalog')->__('Create Permanent Redirect for old URL');
+ $data['value'] = $element->getValue();
+ $data['checked'] = Mage::helper('catalog')->shouldSaveUrlRewritesHistory($storeId);
+ $checkbox = new Varien_Data_Form_Element_Checkbox($data);
+ $checkbox->setForm($element->getForm());
+
+ return parent::getElementHtml() . $hidden->getElementHtml() . $checkbox->getElementHtml() . $checkbox->getLabelHtml();
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php
index de77324552..402b8c85e2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/DateFieldsOrder.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php
index 2bdff4f940..afedf29a5f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Config/YearRange.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
index 8dd5d0a722..90447be1f0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Fieldset/Element.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Googleoptimizer/Import.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Googleoptimizer/Import.php
index 0e7754cad6..ad3acd1718 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Googleoptimizer/Import.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Form/Renderer/Googleoptimizer/Import.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php
index 3c629547b4..4c67f51978 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,10 +42,13 @@ public function getAfterElementHtml()
{
$html = parent::getAfterElementHtml();
if ($this->getIsWysiwygEnabled()) {
+ $disabled = ($this->getDisabled() || $this->getReadonly());
$html .= Mage::getSingleton('core/layout')
->createBlock('adminhtml/widget_button', '', array(
'label' => Mage::helper('catalog')->__('WYSIWYG Editor'),
'type' => 'button',
+ 'disabled' => $disabled,
+ 'class' => ($disabled) ? 'disabled' : '',
'onclick' => 'catalogWysiwygEditor.open(\''.Mage::helper('adminhtml')->getUrl('*/*/wysiwyg').'\', \''.$this->getHtmlId().'\')'
))->toHtml();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php
index 5f694e99f0..49a5ae005a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Helper/Form/Wysiwyg/Content.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,8 +44,13 @@ protected function _prepareForm()
{
$form = new Varien_Data_Form(array('id' => 'wysiwyg_edit_form', 'action' => $this->getData('action'), 'method' => 'post'));
- $config['add_variables'] = false;
- $config['add_widgets'] = false;
+ $config['document_base_url'] = $this->getData('store_media_url');
+ $config['store_id'] = $this->getData('store_id');
+ $config['add_variables'] = false;
+ $config['add_widgets'] = false;
+ $config['add_directives'] = true;
+ $config['use_container'] = true;
+ $config['container_class'] = 'hor-scroll';
$form->addField($this->getData('editor_element_id'), 'editor', array(
'name' => 'content',
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
index c45d2f08dc..7103af6e6b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
index 2d50ea5e4e..30a139abe8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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 4f04508fb8..e94a2aa9de 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
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -57,7 +57,7 @@ public function __construct()
$this->_addButton(
'save_and_edit_button',
array(
- 'label' => Mage::helper('catalog')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('catalog')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save'
),
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
index 38a1eb7f90..42def14c88 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
index 55836239ac..0d657cf53c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Front.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -56,29 +56,29 @@ protected function _prepareForm()
$fieldset->addField('is_searchable', 'select', array(
'name' => 'is_searchable',
- 'label' => Mage::helper('catalog')->__('Use in quick search'),
- 'title' => Mage::helper('catalog')->__('Use in quick search'),
+ 'label' => Mage::helper('catalog')->__('Use in Quick Search'),
+ 'title' => Mage::helper('catalog')->__('Use in Quick Search'),
'values' => $yesno,
));
$fieldset->addField('is_visible_in_advanced_search', 'select', array(
'name' => 'is_visible_in_advanced_search',
- 'label' => Mage::helper('catalog')->__('Use in advanced search'),
- 'title' => Mage::helper('catalog')->__('Use in advanced search'),
+ 'label' => Mage::helper('catalog')->__('Use in Advanced Search'),
+ 'title' => Mage::helper('catalog')->__('Use in Advanced Search'),
'values' => $yesno,
));
$fieldset->addField('is_comparable', 'select', array(
'name' => 'is_comparable',
- 'label' => Mage::helper('catalog')->__('Comparable on Front-end'),
- 'title' => Mage::helper('catalog')->__('Comparable on Front-end'),
+ 'label' => Mage::helper('catalog')->__('Comparable on the Frontend'),
+ 'title' => Mage::helper('catalog')->__('Comparable on the Frontend'),
'values' => $yesno,
));
$fieldset->addField('is_filterable', 'select', array(
'name' => 'is_filterable',
- 'label' => Mage::helper('catalog')->__("Use In Layered Navigation (Can be used only with catalog input type 'Dropdown')"),
+ 'label' => Mage::helper('catalog')->__("Use in Layered Navigation (Can be used only with catalog input type 'Dropdown')"),
'title' => Mage::helper('catalog')->__('Can be used only with catalog input type Dropdown'),
'values' => array(
array('value' => '0', 'label' => Mage::helper('catalog')->__('No')),
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
index c7f857e82a..867135a779 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -128,15 +128,15 @@ protected function _prepareForm()
$fieldset->addField('is_searchable', 'select', array(
'name' => 'is_searchable',
- 'label' => Mage::helper('catalog')->__('Use in quick search'),
- 'title' => Mage::helper('catalog')->__('Use in quick search'),
+ 'label' => Mage::helper('catalog')->__('Use in Quick Search'),
+ 'title' => Mage::helper('catalog')->__('Use in Quick Search'),
'values' => $yesnoSource,
));
$fieldset->addField('is_visible_in_advanced_search', 'select', array(
'name' => 'is_visible_in_advanced_search',
- 'label' => Mage::helper('catalog')->__('Use in advanced search'),
- 'title' => Mage::helper('catalog')->__('Use in advanced search'),
+ 'label' => Mage::helper('catalog')->__('Use in Advanced Search'),
+ 'title' => Mage::helper('catalog')->__('Use in Advanced Search'),
'values' => $yesnoSource,
));
@@ -167,17 +167,17 @@ protected function _prepareForm()
'values' => $yesnoSource,
));
- $fieldset->addField('is_used_for_price_rules', 'select', array(
- 'name' => 'is_used_for_price_rules',
- 'label' => Mage::helper('catalog')->__('Use for Price Rule Conditions'),
- 'title' => Mage::helper('catalog')->__('Use for Price Rule Conditions'),
+ $fieldset->addField('is_used_for_promo_rules', 'select', array(
+ 'name' => 'is_used_for_promo_rules',
+ 'label' => Mage::helper('catalog')->__('Use for Promo Rule Conditions'),
+ 'title' => Mage::helper('catalog')->__('Use for Promo Rule Conditions'),
'values' => $yesnoSource,
));
$fieldset->addField('position', 'text', array(
'name' => 'position',
'label' => Mage::helper('catalog')->__('Position'),
- 'title' => Mage::helper('catalog')->__('Position In Layered Navigation'),
+ 'title' => Mage::helper('catalog')->__('Position in Layered Navigation'),
'note' => Mage::helper('catalog')->__('Position of attribute in layered navigation block'),
'class' => 'validate-digits',
));
@@ -191,8 +191,8 @@ protected function _prepareForm()
$htmlAllowed = $fieldset->addField('is_html_allowed_on_front', 'select', array(
'name' => 'is_html_allowed_on_front',
- 'label' => Mage::helper('catalog')->__('Allow HTML-tags on Front-end'),
- 'title' => Mage::helper('catalog')->__('Allow HTML-tags on Front-end'),
+ 'label' => Mage::helper('catalog')->__('Allow HTML Tags on Frontend'),
+ 'title' => Mage::helper('catalog')->__('Allow HTML Tags on Frontend'),
'values' => $yesnoSource,
));
if (!$attributeObject->getId() || $attributeObject->getIsWysiwygEnabled()) {
@@ -208,15 +208,15 @@ protected function _prepareForm()
$fieldset->addField('used_in_product_listing', 'select', array(
'name' => 'used_in_product_listing',
- 'label' => Mage::helper('catalog')->__('Used in product listing'),
- 'title' => Mage::helper('catalog')->__('Used in product listing'),
+ 'label' => Mage::helper('catalog')->__('Used in Product Listing'),
+ 'title' => Mage::helper('catalog')->__('Used in Product Listing'),
'note' => Mage::helper('catalog')->__('Depends on design theme'),
'values' => $yesnoSource,
));
$fieldset->addField('used_for_sort_by', 'select', array(
'name' => 'used_for_sort_by',
- 'label' => Mage::helper('catalog')->__('Used for sorting in product listing'),
- 'title' => Mage::helper('catalog')->__('Used for sorting in product listing'),
+ 'label' => Mage::helper('catalog')->__('Used for Sorting in Product Listing'),
+ 'title' => Mage::helper('catalog')->__('Used for Sorting in Product Listing'),
'note' => Mage::helper('catalog')->__('Depends on design theme'),
'values' => $yesnoSource,
));
@@ -234,6 +234,8 @@ protected function _prepareForm()
$this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
->addFieldMap("is_wysiwyg_enabled", 'wysiwyg_enabled')
->addFieldMap("is_html_allowed_on_front", 'html_allowed_on_front')
+ ->addFieldMap("frontend_input", 'frontend_input_type')
+ ->addFieldDependence('wysiwyg_enabled', 'frontend_input_type', 'textarea')
->addFieldDependence('html_allowed_on_front', 'wysiwyg_enabled', '0')
);
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
index 2bd0b4dcd4..ad0898a8dd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Options.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
index 521d92b0db..e35b1bb69c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/System.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
index 6460a66723..d1e1dd72e2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
index 237b5b39d3..7362d423a0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -94,7 +94,7 @@ protected function _prepareColumns()
), 'is_user_defined');
$this->addColumnAfter('is_filterable', array(
- 'header'=>Mage::helper('catalog')->__('Use In Layered Navigation'),
+ 'header'=>Mage::helper('catalog')->__('Use in Layered Navigation'),
'sortable'=>true,
'index'=>'is_filterable',
'type' => 'options',
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
index d31d38cb4a..c20f627f9b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
index c741db121a..8ae0021fa0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Created.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
index 898ed37e65..5194cbc250 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
index 91a083cd99..ec8bcfb284 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
index 8641478c35..feff0d6fba 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formattribute.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
index b0028485a0..6343748ee3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formgroup.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
index ca8e168881..abd094c94f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Formset.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -46,7 +46,8 @@ protected function _prepareForm()
$fieldset = $form->addFieldset('set_name', array('legend'=> Mage::helper('catalog')->__('Edit Set Name')));
$fieldset->addField('attribute_set_name', 'text',
array(
- 'label' => Mage::helper('catalog')->__('Name (For internal use)'),
+ 'label' => Mage::helper('catalog')->__('Name'),
+ 'note' => Mage::helper('catalog')->__('For internal use.'),
'name' => 'attribute_set_name',
'required' => true,
'class' => 'required-entry',
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
index 534db4b3b1..e22a3e0a00 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Attribute.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
index 97863c23cf..ead4f7d413 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main/Tree/Group.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
index 4721156070..1d7fec4f8f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Add.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
index 91a70c3e96..14809d9e82 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
index 0b49910538..919363065a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main/Filter.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
index 0d37623ff1..dc488921f0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Created.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
index 15382d6a87..b580699c90 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -96,7 +96,7 @@ protected function _prepareLayout()
$this->setChild('save_and_edit_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
- 'label' => Mage::helper('catalog')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('catalog')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit(\''.$this->getSaveAndContinueUrl().'\')',
'class' => 'save'
))
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
index 7376318b2e..ecc9f19484 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
index 52136a46d9..0670432aa8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,7 +44,7 @@ protected function _construct()
protected function _prepareForm()
{
- $this->setFormExcludedFieldList(array('tier_price','gallery', 'media_gallery'));
+ $this->setFormExcludedFieldList(array('tier_price','gallery', 'media_gallery', 'recurring_profile'));
Mage::dispatchEvent('adminhtml_catalog_product_form_prepare_excluded_field_list', array('object'=>$this));
$form = new Varien_Data_Form();
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
index 604adebe5e..f9832504ec 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Inventory.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
index 98d496e39f..706e6cd69f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Websites.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
index 6a57501a46..2f65b23c4a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php
index fbc78cecc3..90414aa088 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Js.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
index f71ac45da9..fafbc2fefe 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Ajax/Serializer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
index 6ba957ba8c..c562e88de4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -52,14 +52,14 @@ protected function _prepareLayout()
if ($alertPriceAllow) {
$accordion->addItem('price', array(
- 'title' => Mage::helper('adminhtml')->__('Price alert subscription was saved successfully'),
+ 'title' => Mage::helper('adminhtml')->__('Price alert subscription was saved.'),
'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_price')->toHtml() . ' ',
'open' => true
));
}
if ($alertStockAllow) {
$accordion->addItem('stock', array(
- 'title' => Mage::helper('adminhtml')->__('Stock notification was saved successfully'),
+ 'title' => Mage::helper('adminhtml')->__('Stock notification was saved.'),
'content' => $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_alerts_stock'),
'open' => true
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
index 51b6bad272..802cc1690b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Price.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
index 7f671e8c2a..a346cabde7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Alerts/Stock.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -43,7 +43,7 @@ public function __construct()
$this->setDefaultSort('desc');
$this->setUseAjax(true);
$this->setFilterVisibility(false);
- $this->setEmptyText(Mage::helper('catalog')->__('There are no customers for this alert'));
+ $this->setEmptyText(Mage::helper('catalog')->__('There are no customers for this alert.'));
}
protected function _prepareCollection()
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
index 5849b55757..9587e7c8a2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -64,12 +64,24 @@ protected function _prepareForm()
$this->_setFieldset($attributes, $fieldset, array('gallery'));
+ if ($urlKey = $form->getElement('url_key')) {
+ $urlKey->setRenderer(
+ $this->getLayout()->createBlock('adminhtml/catalog_form_renderer_attribute_urlkey')
+ );
+ }
+
if ($tierPrice = $form->getElement('tier_price')) {
$tierPrice->setRenderer(
$this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_price_tier')
);
}
+ if ($recurringProfile = $form->getElement('recurring_profile')) {
+ $recurringProfile->setRenderer(
+ $this->getLayout()->createBlock('adminhtml/catalog_product_edit_tab_price_recurring')
+ );
+ }
+
/**
* Add new attribute button if not image tab
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
index c9baebe02e..443d99465f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
index d42cbff1c2..6e1445752c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
index fc264565af..bc9226957e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Crosssell.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -95,8 +95,8 @@ protected function _prepareCollection()
$collection = Mage::getModel('catalog/product_link')->useCrossSellLinks()
->getProductCollection()
->setProduct($this->_getProduct())
+ ->setPositionOrder()
->addAttributeToSelect('*');
-
if ($this->isReadonly()) {
$productIds = $this->_getSelectedProducts();
if (empty($productIds)) {
@@ -105,6 +105,7 @@ protected function _prepareCollection()
$collection->addFieldToFilter('entity_id', array('in'=>$productIds));
}
+
$this->setCollection($collection);
return parent::_prepareCollection();
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
index 529f35cae9..7521c1e79e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Inventory.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
index 82ba7aa000..032fabd310 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
index 3c4d4e32d4..caf77bc0a2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
index 72dacd2e70..b3338b3ad6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
index 9b24c7bc11..f97c0e443c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Date.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
index e1ed76789c..216b5dad71 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/File.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
index 0262a0edd3..1fa25ba798 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Select.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
index 0e87f68990..3ef622f21d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Type/Text.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
index 0fc236bfee..8cc56e7537 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -41,8 +41,8 @@ protected function _prepareForm()
$fieldset = $form->addFieldset('tiered_price', array('legend'=>Mage::helper('catalog')->__('Tier Pricing')));
$fieldset->addField('default_price', 'label', array(
- 'label'=> Mage::helper('catalog')->__('Default price'),
- 'title'=> Mage::helper('catalog')->__('Default price'),
+ 'label'=> Mage::helper('catalog')->__('Default Price'),
+ 'title'=> Mage::helper('catalog')->__('Default Price'),
'name'=>'default_price',
'bold'=>true,
'value'=>$product->getPrice()
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Recurring.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Recurring.php
new file mode 100644
index 0000000000..8d53918bc8
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Recurring.php
@@ -0,0 +1,49 @@
+output = '';
+ Mage::dispatchEvent('catalog_product_edit_form_render_recurring', array(
+ 'result' => $result,
+ 'product_element' => $this->_element,
+ 'product' => Mage::registry('current_product'),
+ ));
+ return $result->output;
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
index a277c31fa5..35d3f6b8a0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Price/Tier.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
index eb2a62232a..ac4db82e99 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Related.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php
index 31e1ad3ca1..2292dff4f8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Reviews.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
index 4ce85f88d3..ba8ae8d2f3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Settings.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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 ea09d62248..cd2499a0f1 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
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
index 88b73b6400..26e89193f8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
index 96e77999c1..344a7709e1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Filter/Inventory.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,11 +44,11 @@ protected function _getOptions()
),
array(
'value' => 1,
- 'label' => Mage::helper('catalog')->__('In stock')
+ 'label' => Mage::helper('catalog')->__('In Stock')
),
array(
'value' => 0,
- 'label' => Mage::helper('catalog')->__('Out of stock')
+ 'label' => Mage::helper('catalog')->__('Out of Stock')
)
);
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
index 7db5702a40..d30642626c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Checkbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
index e965ad92d8..5d514ddfcd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Grid/Renderer/Inventory.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
index ae32b57536..bf5cfe75eb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Config/Simple.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
index 2f50ff072f..8b885a56c8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
index c42d1d62ab..dd8816e22f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Settings.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -121,7 +121,7 @@ protected function _prepareForm()
}
else {
$fieldset->addField('note_text', 'note', array(
- 'text' => $this->__('This attribute set don\'t have attributes which we can use for configurable product')
+ 'text' => $this->__('This attribute set does not have attributes which we can use for configurable product')
));
$fieldset->addField('back_button', 'note', array(
'text' => $this->getChildHtml('back_button'),
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
index ad2c1806f5..b601cc89d1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
index 92b361b3c4..c4fa62f4ed 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Tag/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
index 8ec8174cca..f4e75c23dc 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Upsell.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
index 59a8982808..d71f5345e3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Websites.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
index 25b3e5ee46..2dd513f492 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
index c4550b7492..6f4436244e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Configurable.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
index 532c94adad..49643b9b8a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tabs/Grouped.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
index 5e6277a1fa..b32ce16f4a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Frontend/Product/Watermark.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
index 78680c7c85..87f21dd6f2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -69,7 +69,9 @@ protected function _prepareCollection()
if ($store->getId()) {
//$collection->setStoreId($store->getId());
+ $adminStore = Mage_Core_Model_App::ADMIN_STORE_ID;
$collection->addStoreFilter($store);
+ $collection->joinAttribute('name', 'catalog_product/name', 'entity_id', null, 'inner', $adminStore);
$collection->joinAttribute('custom_name', 'catalog_product/name', 'entity_id', null, 'inner', $store->getId());
$collection->joinAttribute('status', 'catalog_product/status', 'entity_id', null, 'inner', $store->getId());
$collection->joinAttribute('visibility', 'catalog_product/visibility', 'entity_id', null, 'inner', $store->getId());
@@ -122,7 +124,7 @@ protected function _prepareColumns()
if ($store->getId()) {
$this->addColumn('custom_name',
array(
- 'header'=> Mage::helper('catalog')->__('Name In %s', $store->getName()),
+ 'header'=> Mage::helper('catalog')->__('Name in %s', $store->getName()),
'index' => 'custom_name',
));
}
@@ -260,7 +262,7 @@ protected function _prepareMassaction()
if (Mage::getSingleton('admin/session')->isAllowed('catalog/update_attributes')){
$this->getMassactionBlock()->addItem('attributes', array(
- 'label' => Mage::helper('catalog')->__('Update attributes'),
+ 'label' => Mage::helper('catalog')->__('Update Attributes'),
'url' => $this->getUrl('*/catalog_product_action_attribute/edit', array('_current'=>true))
));
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
index 97c3b1d56f..c2634c90e3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Apply.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
index c000dc4e6e..d9bd68e528 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Boolean.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
index 287540bfd2..4010525dbf 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
index e1a6a08a42..601b669068 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Gallery/Content.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
index 9915f02a76..700aeec402 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Image.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
index 884f8da343..2ea5e89520 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -71,7 +71,7 @@ protected function _getTaxObservingCode($attribute)
{
$spanId = "dynamic-tax-{$attribute->getAttributeCode()}";
- $html = "";
+ $html = "";
return $html;
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php
index 6e750df9a7..7b65cdc619 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php
index 4630235720..60edf587b7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Widget/Chooser/Container.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Search.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
index fada21bddd..a7b1ab5818 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Search.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
index 8572d239ee..417bf6012d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
index c09ade11df..c39beb8802 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -105,8 +105,8 @@ protected function _prepareForm()
if ($model->getId()) {
$fieldset->addField('num_results', 'text', array(
'name' => 'num_results',
- 'label' => Mage::helper('catalog')->__('Number of results (For last time placed)'),
- 'title' => Mage::helper('catalog')->__('Number of results (For last time placed)'),
+ 'label' => Mage::helper('catalog')->__('Number of results (For the last time placed)'),
+ 'title' => Mage::helper('catalog')->__('Number of results (For the last time placed)'),
'required' => true,
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
index 73f10ff2b3..f508b42a59 100644
--- a/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -101,7 +101,7 @@ protected function _prepareColumns()
));
$this->addColumn('synonym_for', array(
- 'header' => Mage::helper('catalog')->__('Synonym for'),
+ 'header' => Mage::helper('catalog')->__('Synonym For'),
'align' => 'left',
'index' => 'synonym_for',
'width' => '160px'
diff --git a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
index a282aefb38..af400359cd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
+++ b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
index 17f5172582..4c353b4be5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
index 2440f288b2..dd760e934b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -117,8 +117,8 @@ protected function _prepareForm()
$fieldset->addField('checkbox_text', 'editor', array(
'name' => 'checkbox_text',
- 'label' => Mage::helper('checkout')->__('Checkbox text'),
- 'title' => Mage::helper('checkout')->__('Checkbox text'),
+ 'label' => Mage::helper('checkout')->__('Checkbox Text'),
+ 'title' => Mage::helper('checkout')->__('Checkbox Text'),
'rows' => '5',
'cols' => '30',
'wysiwyg' => false,
diff --git a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
index b0f3a0052c..4ccc5cce1b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Checkout/Agreement/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Checkout_Agreement_Grid extends Mage_Adminhtml_Block_Widget_Grid
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Block.php b/app/code/core/Mage/Adminhtml/Block/Cms/Block.php
index e752168be9..53a869eb68 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Block.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Block.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
index 72b4006ca8..2fe28f5f37 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -45,7 +45,7 @@ public function __construct()
$this->_updateButton('delete', 'label', Mage::helper('cms')->__('Delete Block'));
$this->_addButton('saveandcontinue', array(
- 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('adminhtml')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save',
), -100);
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
index 2ad1a81670..3a5d9c36e6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
index 6aa1c037d2..82bb2e6815 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php
index 33da9bbae9..524589c932 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Block/Widget/Chooser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page.php
index c802d05f5e..5f5af7be70 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
index 36ed254fe6..ef66ac59fb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,7 +44,7 @@ public function __construct()
if ($this->_isAllowedAction('save')) {
$this->_updateButton('save', 'label', Mage::helper('cms')->__('Save Page'));
$this->_addButton('saveandcontinue', array(
- 'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('adminhtml')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save',
), -100);
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
index 8ca0024bd9..88a1f28998 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php
index 0cbf92aec3..fa06da8e07 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Content.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
index 1f5ee5e5c2..6c363e3d6a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Design.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Cms_Page_Edit_Tab_Design
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
index d84ff34cce..b5a58577a3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
index 9f373d5161..200740f390 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tab/Meta.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
index 21ce6f6098..a3a1e53f12 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
index 00cf2852fd..ce8600c074 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php
index 97428eabfb..48f040c329 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Grid/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Widget/Chooser.php
index 78fee55feb..e4885e1a0b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Page/Widget/Chooser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Page/Widget/Chooser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content.php b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content.php
index e81adb0458..3c8c7abc85 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Files.php b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Files.php
index 3a6cf8b770..77fb2352a1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Files.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Files.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Newfolder.php b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Newfolder.php
index ecce77582d..154e744f83 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Newfolder.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Newfolder.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php
index d09c57e0a1..27f30a208f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Content/Uploader.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Tree.php b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Tree.php
index c4c7b051ab..6181d579b0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Tree.php
+++ b/app/code/core/Mage/Adminhtml/Block/Cms/Wysiwyg/Images/Tree.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer.php b/app/code/core/Mage/Adminhtml/Block/Customer.php
index 9a5a9986a1..e11f6a1adc 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit.php
index ba4735aded..bf2a4e9676 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -91,7 +91,7 @@ protected function _prepareLayout()
{
if (!Mage::registry('current_customer')->isReadonly()) {
$this->_addButton('save_and_continue', array(
- 'label' => Mage::helper('customer')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('customer')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit(\''.$this->_getSaveAndContinueUrl().'\')',
'class' => 'save'
), 10);
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php
index d812fa9cfe..3190f3d9af 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php
index 0ca1b77ddf..61e5ce3061 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Region.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Region.php
index 674e84cddf..94c5d87094 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Region.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Region.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
index 8a825914e4..180147591a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -128,7 +128,7 @@ public function initForm()
// prepare send welcome email checkbox
$fieldset->addField('sendemail', 'checkbox', array(
- 'label' => Mage::helper('customer')->__('Send welcome email'),
+ 'label' => Mage::helper('customer')->__('Send Welcome Email'),
'name' => 'sendemail',
'id' => 'sendemail',
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Addresses.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Addresses.php
index 1984fe9cc4..ce5047f504 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Addresses.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Addresses.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Cart.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Cart.php
index 1aa058b9f1..86fdb6b623 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Cart.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Cart.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php
index b9556c6af8..de010a4f81 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Carts.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php
index 048373ff90..5c231e7094 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -66,7 +66,7 @@ public function initForm()
if($changedDate = $this->getStatusChangedDate()) {
$fieldset->addField('change_status_date', 'label',
array(
- 'label' => $subscriber->isSubscribed() ? Mage::helper('customer')->__('Last date subscribed') : Mage::helper('customer')->__('Last date unsubscribed'),
+ 'label' => $subscriber->isSubscribed() ? Mage::helper('customer')->__('Last Date Subscribed') : Mage::helper('customer')->__('Last Date Unsubscribed'),
'value' => $changedDate,
'bold' => true
)
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid.php
index ee057c3e2f..06a1b95766 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Filter/Status.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Filter/Status.php
index 29b0c7a41e..fc5612b173 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Filter/Status.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Filter/Status.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Action.php
index 56bdfec7fc..03d47cbbb5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Status.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Status.php
index 95dcb694f0..a9e0be4945 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Status.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Newsletter/Grid/Renderer/Status.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php
index 325c66b8db..2efe25afde 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Orders.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,25 +44,17 @@ public function __construct()
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('grand_total')
- ->addAttributeToSelect('order_currency_code')
- ->addAttributeToSelect('store_id')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
- ->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
- ->addExpressionAttributeToSelect('billing_name',
- 'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
- array('billing_firstname', 'billing_lastname'))
- ->addExpressionAttributeToSelect('shipping_name',
- 'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
- array('shipping_firstname', 'shipping_lastname'))
-
- ->addAttributeToFilter('customer_id', Mage::registry('current_customer')->getEntityId())
+ $collection = Mage::getResourceModel('sales/order_grid_collection')
+ ->addFieldToSelect('entity_id')
+ ->addFieldToSelect('increment_id')
+ ->addFieldToSelect('customer_id')
+ ->addFieldToSelect('created_at')
+ ->addFieldToSelect('grand_total')
+ ->addFieldToSelect('order_currency_code')
+ ->addFieldToSelect('store_id')
+ ->addFieldToSelect('billing_name')
+ ->addFieldToSelect('shipping_name')
+ ->addFieldToFilter('customer_id', Mage::registry('current_customer')->getId())
;
$this->setCollection($collection);
return parent::_prepareCollection();
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Reviews.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Reviews.php
index 051bb02e91..9679f2ece3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Reviews.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Reviews.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tag.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tag.php
index 04b782bcf9..f04682eea5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tag.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tag.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tags.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tags.php
index 1e91ec0ee5..bd0a4f2c17 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tags.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Tags.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php
index a2d4c7e2cf..bac0345ab3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -156,7 +156,7 @@ public function getBillingAddressHtml()
$html = $address->format('html');
}
else {
- $html = Mage::helper('customer')->__('Customer doesn\'t have default billing address');
+ $html = Mage::helper('customer')->__('The customer does not have default billing address.');
}
return $html;
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Accordion.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Accordion.php
index d2d5788097..ed2b394e05 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Accordion.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Accordion.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Cart.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Cart.php
index dc366c270a..6f5a7c98d5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Cart.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Cart.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Orders.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Orders.php
index 4c5c0ebe92..fa08cee459 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Orders.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Orders.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -53,24 +53,8 @@ protected function _preparePage()
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('grand_total')
- ->addAttributeToSelect('order_currency_code')
- ->addAttributeToSelect('store_id')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
- ->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
- ->addExpressionAttributeToSelect('billing_name',
- 'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
- array('billing_firstname', 'billing_lastname'))
- ->addExpressionAttributeToSelect('shipping_name',
- 'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
- array('shipping_firstname', 'shipping_lastname'))
- ->addAttributeToFilter('customer_id', Mage::registry('current_customer')->getId());
+ $collection = Mage::getResourceModel('sales/order_grid_collection')
+ ->addFieldToFilter('customer_id', Mage::registry('current_customer')->getId());
$this->setCollection($collection);
return parent::_prepareCollection();
}
@@ -86,7 +70,7 @@ protected function _prepareColumns()
));
$this->addColumn('created_at', array(
- 'header' => Mage::helper('customer')->__('Purchased at'),
+ 'header' => Mage::helper('customer')->__('Purchased At'),
'index' => 'created_at',
'type' => 'datetime',
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Sales.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Sales.php
index f0006eba84..73b013bdf4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Sales.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Sales.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Wishlist.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Wishlist.php
index 85ce0304c4..59315559c2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Wishlist.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/View/Wishlist.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist.php
index e73f0c8738..a379385270 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php
index a794c90ebf..7c3aa2f209 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
index 1dd7aaaff5..470fb9d292 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Customer/Grid.php
index 64bc8e5193..6eea2e69ad 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -180,12 +180,12 @@ protected function _prepareMassaction()
));
$this->getMassactionBlock()->addItem('newsletter_subscribe', array(
- 'label' => Mage::helper('customer')->__('Subscribe to newsletter'),
+ 'label' => Mage::helper('customer')->__('Subscribe to Newsletter'),
'url' => $this->getUrl('*/*/massSubscribe')
));
$this->getMassactionBlock()->addItem('newsletter_unsubscribe', array(
- 'label' => Mage::helper('customer')->__('Unsubscribe from newsletter'),
+ 'label' => Mage::helper('customer')->__('Unsubscribe from Newsletter'),
'url' => $this->getUrl('*/*/massUnsubscribe')
));
@@ -193,7 +193,7 @@ protected function _prepareMassaction()
array_unshift($groups, array('label'=> '', 'value'=> ''));
$this->getMassactionBlock()->addItem('assign_group', array(
- 'label' => Mage::helper('customer')->__('Assign a customer group'),
+ 'label' => Mage::helper('customer')->__('Assign a Customer Group'),
'url' => $this->getUrl('*/*/massAssignGroup'),
'additional' => array(
'visibility' => array(
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Grid/Filter/Country.php b/app/code/core/Mage/Adminhtml/Block/Customer/Grid/Filter/Country.php
index b022abe124..cb2111e5d2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Grid/Filter/Country.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Grid/Filter/Country.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Group.php b/app/code/core/Mage/Adminhtml/Block/Customer/Group.php
index d026d71b35..148a3e0338 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Group.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Group.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
index 5ee18b3c81..b550354f78 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit/Form.php
index 5ddca44af8..4514f83bf4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -61,8 +61,8 @@ protected function _prepareLayout()
$fieldset->addField('tax_class_id', 'select',
array(
'name' => 'tax_class',
- 'label' => Mage::helper('customer')->__('Tax class'),
- 'title' => Mage::helper('customer')->__('Tax class'),
+ 'label' => Mage::helper('customer')->__('Tax Class'),
+ 'title' => Mage::helper('customer')->__('Tax Class'),
'class' => 'required-entry',
'required' => true,
'values' => Mage::getSingleton('tax/class_source_customer')->toOptionArray()
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Grid.php b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Grid.php
index 9d06d6fd6e..f26db7f44b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Group/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Group/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online.php
index 22b8a46257..08525b6e2c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Filter.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Filter.php
index 6e09862697..3acb2cb9c8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Filter.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Filter.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid.php
index a47fb8b4ba..759cf59589 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -141,7 +141,7 @@ protected function _prepareColumns()
));
$this->addColumn('last_url', array(
- 'header' => Mage::helper('customer')->__('Last Url'),
+ 'header' => Mage::helper('customer')->__('Last URL'),
'type' => 'wrapline',
'lineLength' => '60',
'default' => Mage::helper('customer')->__('n/a'),
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Ip.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Ip.php
index e95ec04acf..2847e2f609 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Ip.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Ip.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Type.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Type.php
index 4b5b4c9475..9e73127394 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Type.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Type.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Url.php b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Url.php
index cf85beed21..4a8246fa08 100644
--- a/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Url.php
+++ b/app/code/core/Mage/Adminhtml/Block/Customer/Online/Grid/Renderer/Url.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard.php b/app/code/core/Mage/Adminhtml/Block/Dashboard.php
index f61d80c588..b4a4753543 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Abstract.php
index 446bb32bdb..111b20bbd3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php
index fe66fd3edc..749e8f430c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Bar.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Diagrams.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Diagrams.php
index d2d8dc8bdf..8baefc8e47 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Diagrams.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Diagrams.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
index 368be3f28e..877f7f7cfc 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Grid.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Grid.php
index 60bc360850..3bbb352117 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php
index 2a399fb595..9a2fbf83d0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Grids.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php
index f7300f10d7..b32ddd19da 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Orders/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -43,14 +43,10 @@ public function __construct()
protected function _prepareCollection()
{
- //TODO: add full name logic
$collection = Mage::getResourceModel('reports/order_collection')
->addItemCountExpr()
- ->addExpressionAttributeToSelect('customer',
- "IFNULL(CONCAT({{customer_firstname}},' ',{{customer_lastname}}), '{$this->__('Guest')}')",
- array('customer_firstname','customer_lastname')
- )
- ->setOrder('created_at');
+ ->joinCustomerName('customer')
+ ->orderByCreatedAt();
if($this->getParam('store') || $this->getParam('website') || $this->getParam('group')) {
if ($this->getParam('store')) {
@@ -63,13 +59,9 @@ protected function _prepareCollection()
$collection->addAttributeToFilter('store_id', array('in' => $storeIds));
}
- $collection->addExpressionAttributeToSelect('revenue',
- '({{base_grand_total}})',
- array('base_grand_total'));
+ $collection->addRevenueToSelect();
} else {
- $collection->addExpressionAttributeToSelect('revenue',
- '({{base_grand_total}}*{{base_to_global_rate}})',
- array('base_grand_total', 'base_to_global_rate'));
+ $collection->addRevenueToSelect(true);
}
$this->setCollection($collection);
@@ -77,17 +69,30 @@ protected function _prepareCollection()
return parent::_prepareCollection();
}
+ /**
+ * Prepares page sizes for dashboard grid with las 5 orders
+ *
+ * @return void
+ */
+ protected function _preparePage()
+ {
+ $this->getCollection()->setPageSize($this->getParam($this->getVarNameLimit(), $this->_defaultLimit));
+ // Remove count of total orders $this->getCollection()->setCurPage($this->getParam($this->getVarNamePage(), $this->_defaultPage));
+ }
+
protected function _prepareColumns()
{
$this->addColumn('customer', array(
'header' => $this->__('Customer'),
'sortable' => false,
- 'index' => 'customer'
+ 'index' => 'customer',
+ 'default' => $this->__('Guest'),
));
$this->addColumn('items', array(
'header' => $this->__('Items'),
'align' => 'right',
+ 'type' => 'number',
'sortable' => false,
'index' => 'items_count'
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Sales.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Sales.php
index d5f3efa612..18ada207db 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Sales.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Sales.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -50,20 +50,19 @@ protected function _prepareLayout()
->calculateSales($isFilter);
if ($this->getRequest()->getParam('store')) {
- $collection->addAttributeToFilter('store_id', $this->getRequest()->getParam('store'));
+ $collection->addFieldToFilter('store_id', $this->getRequest()->getParam('store'));
} else if ($this->getRequest()->getParam('website')){
$storeIds = Mage::app()->getWebsite($this->getRequest()->getParam('website'))->getStoreIds();
- $collection->addAttributeToFilter('store_id', array('in' => $storeIds));
+ $collection->addFieldToFilter('store_id', array('in' => $storeIds));
} else if ($this->getRequest()->getParam('group')){
$storeIds = Mage::app()->getGroup($this->getRequest()->getParam('group'))->getStoreIds();
- $collection->addAttributeToFilter('store_id', array('in' => $storeIds));
+ $collection->addFieldToFilter('store_id', array('in' => $storeIds));
}
$collection->load();
- $collectionArray = $collection->toArray();
- $sales = array_pop($collectionArray);
+ $sales = $collection->getFirstItem();
- $this->addTotal($this->__('Lifetime Sales'), $sales['lifetime']);
- $this->addTotal($this->__('Average Orders'), $sales['average']);
+ $this->addTotal($this->__('Lifetime Sales'), $sales->getLifetime());
+ $this->addTotal($this->__('Average Orders'), $sales->getAverage());
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Last.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Last.php
index 1a25139642..0192918b49 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Last.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Last.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Renderer/Searchquery.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Renderer/Searchquery.php
index ab64e06ee7..b09868bed7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Renderer/Searchquery.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Renderer/Searchquery.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Top.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Top.php
index 0a66025b86..415cff9ef9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Top.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Searches/Top.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Amounts.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Amounts.php
index 0ae1ca0fe4..8a39baeb39 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Amounts.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Amounts.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Most.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Most.php
index 9071b0a87f..51c35a1fd8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Most.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Most.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Newest.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Newest.php
index 8379015989..73193b78ad 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Newest.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Customers/Newest.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,9 +44,7 @@ public function __construct()
protected function _prepareCollection()
{
$collection = Mage::getResourceModel('reports/customer_collection')
- ->addCustomerName()
- ->joinOrders()
- ->addOrdersCount();
+ ->addCustomerName();
$storeFilter = 0;
if ($this->getParam('store')) {
@@ -60,7 +58,7 @@ protected function _prepareCollection()
$collection->addAttributeToFilter('store_id', array('in' => $storeIds));
}
- $collection->addSumAvgTotals($storeFilter)
+ $collection->addOrdersStatistics($storeFilter)
->orderByCustomerRegistration();
$this->setCollection($collection);
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Orders.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Orders.php
index aa1936bfe4..706c1d4c51 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Orders.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Orders.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php
index 8721c3f548..bdf4eae266 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -53,12 +53,10 @@ protected function _prepareCollection()
$storeId = (int)$this->getParam('store');
}
- $collection = Mage::getResourceModel('reports/product_collection')
- ->addOrderedQty()
- ->addAttributeToSelect(array('name', 'price'))
- ->setStoreId($storeId)
+ $collection = Mage::getResourceModel('sales/report_bestsellers_collection')
+ ->setModel('catalog/product')
->addStoreFilter($storeId)
- ->setOrder('ordered_qty', 'desc');
+ ;
$this->setCollection($collection);
@@ -69,27 +67,27 @@ protected function _prepareColumns()
{
$this->addColumn('name', array(
- 'header' =>Mage::helper('reports')->__('Product Name'),
+ 'header' => Mage::helper('sales')->__('Product Name'),
'sortable' => false,
- 'index' =>'name'
+ 'index' => 'product_name'
));
$this->addColumn('price', array(
- 'header' =>Mage::helper('reports')->__('Price'),
- 'width' =>'120px',
- 'type' =>'currency',
+ 'header' => Mage::helper('sales')->__('Price'),
+ 'width' => '120px',
+ 'type' => 'currency',
'currency_code' => (string) Mage::app()->getStore((int)$this->getParam('store'))->getBaseCurrencyCode(),
'sortable' => false,
- 'index' =>'price'
+ 'index' => 'product_price'
));
$this->addColumn('ordered_qty', array(
- 'header' =>Mage::helper('reports')->__('Quantity Ordered'),
- 'width' =>'120px',
- 'align' =>'right',
+ 'header' => Mage::helper('sales')->__('Quantity Ordered'),
+ 'width' => '120px',
+ 'align' => 'right',
'sortable' => false,
- 'index' =>'ordered_qty',
- 'type' =>'number'
+ 'index' => 'qty_ordered',
+ 'type' => 'number'
));
$this->setFilterVisibility(false);
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Viewed.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Viewed.php
index e4c515a07b..0012898e4b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Viewed.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Tab/Products/Viewed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Dashboard/Totals.php b/app/code/core/Mage/Adminhtml/Block/Dashboard/Totals.php
index be7db0ce5b..149a524ae1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Dashboard/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Dashboard/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -52,22 +52,26 @@ protected function _prepareLayout()
->calculateTotals($isFilter);
if ($this->getRequest()->getParam('store')) {
- $collection->addAttributeToFilter('store_id', $this->getRequest()->getParam('store'));
+ $collection->addFieldToFilter('store_id', $this->getRequest()->getParam('store'));
} else if ($this->getRequest()->getParam('website')){
$storeIds = Mage::app()->getWebsite($this->getRequest()->getParam('website'))->getStoreIds();
- $collection->addAttributeToFilter('store_id', array('in' => $storeIds));
+ $collection->addFieldToFilter('store_id', array('in' => $storeIds));
} else if ($this->getRequest()->getParam('group')){
$storeIds = Mage::app()->getGroup($this->getRequest()->getParam('group'))->getStoreIds();
- $collection->addAttributeToFilter('store_id', array('in' => $storeIds));
+ $collection->addFieldToFilter('store_id', array('in' => $storeIds));
+ } elseif (!$collection->isLive()) {
+ $collection->addFieldToFilter('store_id',
+ array('eq' => Mage::app()->getStore(Mage_Core_Model_Store::ADMIN_CODE)->getId())
+ );
}
$collection->load();
- $collectionArray = $collection->toArray();
- $totals = array_pop($collectionArray);
- $this->addTotal($this->__('Revenue'), $totals['revenue']);
- $this->addTotal($this->__('Tax'), $totals['tax']);
- $this->addTotal($this->__('Shipping'), $totals['shipping']);
- $this->addTotal($this->__('Quantity'), $totals['quantity']*1, true);
+ $totals = $collection->getFirstItem();
+
+ $this->addTotal($this->__('Revenue'), $totals->getRevenue());
+ $this->addTotal($this->__('Tax'), $totals->getTax());
+ $this->addTotal($this->__('Shipping'), $totals->getShipping());
+ $this->addTotal($this->__('Quantity'), $totals->getQuantity()*1, true);
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Denied.php b/app/code/core/Mage/Adminhtml/Block/Denied.php
index 43436c576f..f29003593f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Denied.php
+++ b/app/code/core/Mage/Adminhtml/Block/Denied.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Html/Date.php b/app/code/core/Mage/Adminhtml/Block/Html/Date.php
index 05a1df1daa..20b32d9540 100644
--- a/app/code/core/Mage/Adminhtml/Block/Html/Date.php
+++ b/app/code/core/Mage/Adminhtml/Block/Html/Date.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Html/Select.php b/app/code/core/Mage/Adminhtml/Block/Html/Select.php
index 714871d9e2..167e161a80 100644
--- a/app/code/core/Mage/Adminhtml/Block/Html/Select.php
+++ b/app/code/core/Mage/Adminhtml/Block/Html/Select.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Media/Editor.php b/app/code/core/Mage/Adminhtml/Block/Media/Editor.php
index e2d39b8232..96983ebafb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Media/Editor.php
+++ b/app/code/core/Mage/Adminhtml/Block/Media/Editor.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Media/Uploader.php b/app/code/core/Mage/Adminhtml/Block/Media/Uploader.php
index 1491db7ec5..51b071bcb7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Media/Uploader.php
+++ b/app/code/core/Mage/Adminhtml/Block/Media/Uploader.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Messages.php b/app/code/core/Mage/Adminhtml/Block/Messages.php
index d7c9054414..8545383945 100644
--- a/app/code/core/Mage/Adminhtml/Block/Messages.php
+++ b/app/code/core/Mage/Adminhtml/Block/Messages.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem.php
index aa3949bde7..7e50c298cb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid.php
index 0a78f699ef..a14eb219a4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -40,7 +40,7 @@ public function __construct()
$this->setSaveParametersInSession(true);
$this->setMessageBlockVisibility(true);
$this->setUseAjax(true);
- $this->setEmptyText(Mage::helper('newsletter')->__('No problems found'));
+ $this->setEmptyText(Mage::helper('newsletter')->__('No problems found.'));
}
protected function _prepareCollection()
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Filter/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Filter/Checkbox.php
index bc0f7f0fb5..0f4e17f7e6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Filter/Checkbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Filter/Checkbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Renderer/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Renderer/Checkbox.php
index f6e780d686..fc61ef680c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Renderer/Checkbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Problem/Grid/Renderer/Checkbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue.php
index 86596d12a2..9b7e8f1427 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit.php
index eb4722c58b..cb02882568 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -97,7 +97,7 @@ protected function _prepareLayout()
$this->setChild('save_and_resume',
$this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
- 'label' => Mage::helper('newsletter')->__('Save And Resume'),
+ 'label' => Mage::helper('newsletter')->__('Save and Resume'),
'onclick' => 'queueControl.resume()',
'class' => 'save'
))
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit/Form.php
index da872be27c..3436afa2a7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid.php
index b463de3fdc..fbebf59e76 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid/Renderer/Action.php
index f08d704ae5..51e6800f29 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Grid/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber.php
index fe1ab41000..2f3a9d14da 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -89,7 +89,7 @@ public function getShowQueueAdd()
*
* @return array
*/
- public function getQueueAsOptions( )
+ public function getQueueAsOptions()
{
return $this->getQueueCollection()->toOptionArray();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid.php
index 5c390b9ced..c2153f00f6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -94,13 +94,13 @@ protected function _prepareColumns()
));
$this->addColumn('firstname', array(
- 'header' => Mage::helper('newsletter')->__('Customer Firstname'),
+ 'header' => Mage::helper('newsletter')->__('Customer First Name'),
'index' => 'customer_firstname',
'default' => '----'
));
$this->addColumn('lastname', array(
- 'header' => Mage::helper('newsletter')->__('Customer Lastname'),
+ 'header' => Mage::helper('newsletter')->__('Customer Last Name'),
'index' => 'customer_lastname',
'default' => '----'
));
@@ -110,7 +110,7 @@ protected function _prepareColumns()
'index' => 'subscriber_status',
'type' => 'options',
'options' => array(
- Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE => Mage::helper('newsletter')->__('Not activated'),
+ Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE => Mage::helper('newsletter')->__('Not Activated'),
Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED => Mage::helper('newsletter')->__('Subscribed'),
Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED => Mage::helper('newsletter')->__('Unsubscribed'),
)
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Checkbox.php
index 894a3c086f..2feb8e039e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Checkbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Checkbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Website.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Website.php
index f148f2d123..79b3e1be90 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Website.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Filter/Website.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Renderer/Checkbox.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Renderer/Checkbox.php
index 1d7bcd7520..3c401259d4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Renderer/Checkbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid/Renderer/Checkbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template.php
index dbe472bf1b..e88d300ba8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php
index 3926e5c73e..0b1a89cbbb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -93,7 +93,7 @@ protected function _prepareLayout()
$this->setChild('to_html_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
- 'label' => Mage::helper('newsletter')->__('Return Html Version'),
+ 'label' => Mage::helper('newsletter')->__('Return HTML Version'),
'onclick' => 'templateControl.unStripTags();',
'id' => 'convert_button_back',
'style' => 'display:none',
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit/Form.php
index 47141f8462..224ad5d2ae 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php
index 0aae0a6222..3d4bf52aa8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Action.php
index 5a0f23b1cd..fa60d4def9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Sender.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Sender.php
index 8e7b4cef6a..80c6032a1c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Sender.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid/Renderer/Sender.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Preview.php b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Preview.php
index 120d337ad9..00e3008499 100644
--- a/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Preview.php
+++ b/app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Preview.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Baseurl.php b/app/code/core/Mage/Adminhtml/Block/Notification/Baseurl.php
index 038e40363f..f7389f2578 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Baseurl.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Baseurl.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Grid.php b/app/code/core/Mage/Adminhtml/Block/Notification/Grid.php
index d55a6f51a7..12b8e7a6b6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php
index 80e7cd598f..e9bd5cf3a3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Actions.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
index d89eda81e3..c3c4e972e2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Severity.php b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Severity.php
index c031935d76..21dcf061e3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Severity.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Severity.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Inbox.php b/app/code/core/Mage/Adminhtml/Block/Notification/Inbox.php
index 8cc20adfe1..b64482c85e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Inbox.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Inbox.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Survey.php b/app/code/core/Mage/Adminhtml/Block/Notification/Survey.php
index e97ee271d9..8d80b3e7e8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Survey.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Survey.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Toolbar.php b/app/code/core/Mage/Adminhtml/Block/Notification/Toolbar.php
index f3aa85dbd9..0f27a66863 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Toolbar.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Toolbar.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Notification/Window.php b/app/code/core/Mage/Adminhtml/Block/Notification/Window.php
index aa9d7fe35b..2592b3dc96 100644
--- a/app/code/core/Mage/Adminhtml/Block/Notification/Window.php
+++ b/app/code/core/Mage/Adminhtml/Block/Notification/Window.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Page.php b/app/code/core/Mage/Adminhtml/Block/Page.php
index 3159a95ad2..c9a27711be 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Footer.php b/app/code/core/Mage/Adminhtml/Block/Page/Footer.php
index 895e8911a1..fac5ae3a34 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page/Footer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page/Footer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Head.php b/app/code/core/Mage/Adminhtml/Block/Page/Head.php
index 0002799658..506a34b7e1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page/Head.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page/Head.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Header.php b/app/code/core/Mage/Adminhtml/Block/Page/Header.php
index f83a5a84e7..6519097192 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page/Header.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page/Header.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Menu.php b/app/code/core/Mage/Adminhtml/Block/Page/Menu.php
index 9c4d9b7b6e..89ecd881c2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page/Menu.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page/Menu.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -65,15 +65,18 @@ public function getCacheLifetime()
}
/**
- * Retrieve key for cache
+ * Get Key pieces for caching block content
*
- * @return string
+ * @return array
*/
- public function getCacheKey()
+ public function getCacheKeyInfo()
{
- // getting roles for current user, for now one role per user
- $id = Mage::getSingleton('admin/session')->getUser()->getId();
- return 'admin_top_nav_'.$this->getActive().'_'.$id.'_'.Mage::app()->getLocale()->getLocaleCode();
+ return array(
+ 'admin_top_nav',
+ $this->getActive(),
+ Mage::getSingleton('admin/session')->getUser()->getId(),
+ Mage::app()->getLocale()->getLocaleCode()
+ );
}
/**
diff --git a/app/code/core/Mage/Adminhtml/Block/Page/Notices.php b/app/code/core/Mage/Adminhtml/Block/Page/Notices.php
index 30e8e39fd9..c78194d378 100644
--- a/app/code/core/Mage/Adminhtml/Block/Page/Notices.php
+++ b/app/code/core/Mage/Adminhtml/Block/Page/Notices.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php
index 504c8c6de6..c34507a857 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Buttons.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Editroles.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Editroles.php
index b3964bdb58..5b5e307953 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Editroles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Editroles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php
index 9dcc0ceb0d..dc5caec5f2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Edituser.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/Role.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/Role.php
index 5e853ce662..1169cf2c4e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/Role.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php
index a4f27e0a74..8766847a27 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Grid/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Role.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Role.php
index c3e4f77868..a6cc290ef4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Role.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Role.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Role/Grid/User.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Role/Grid/User.php
index 1bd3fb5d8f..e763e883c7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Role/Grid/User.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Role/Grid/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Roles.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Roles.php
index 168ff32981..1e00b90b5d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Roles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Roleinfo.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Roleinfo.php
index 071937e2c6..9092cee197 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Roleinfo.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Roleinfo.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesedit.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesedit.php
index 8ec5729838..b1b8667e7c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesedit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesedit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesusers.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesusers.php
index e7c2f82f46..a13f172b0d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesusers.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Rolesusers.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Useredit.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Useredit.php
index dbe252c964..5ea476a802 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Useredit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Useredit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Permissions_Tab_Useredit extends Mage_Adminhtml_Block_Widget_Form
@@ -131,9 +131,9 @@ protected function _prepareForm()
$fieldset->addField('is_active', 'select',
array(
'name' => 'is_active',
- 'label' => Mage::helper('adminhtml')->__('This account is'),
+ 'label' => Mage::helper('adminhtml')->__('This Account is'),
'id' => 'is_active',
- 'title' => Mage::helper('adminhtml')->__('Account status'),
+ 'title' => Mage::helper('adminhtml')->__('Account Status'),
'class' => 'input-select',
'required' => false,
'style' => 'width: 80px',
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php
index e5eeb2e9f0..adfa1ae9e4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Tab/Userroles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Permissions_Tab_Userroles extends Mage_Adminhtml_Block_Widget_Tabs
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User.php
index 7b32804dd4..1d283f5c44 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit.php
index 15f9d94b07..6e90344720 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Form.php
index c8863950c8..33293e55fd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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 79a62c7913..2887bc0d1b 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
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -128,7 +128,7 @@ protected function _prepareForm()
'name' => 'is_active',
'label' => Mage::helper('adminhtml')->__('This account is'),
'id' => 'is_active',
- 'title' => Mage::helper('adminhtml')->__('Account status'),
+ 'title' => Mage::helper('adminhtml')->__('Account Status'),
'class' => 'input-select',
'style' => 'width: 80px',
'options' => array('1' => Mage::helper('adminhtml')->__('Active'), '0' => Mage::helper('adminhtml')->__('Inactive')),
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Roles.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Roles.php
index 0f908af179..a172485584 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Roles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tab/Roles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tabs.php
index 850389f72b..53317a8316 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Grid.php b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Grid.php
index 36696e034a..9f4629490c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/User/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/User/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php
index 7494e56dfe..f6de230cc9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Usernroles.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Permissions_UsernRoles extends Mage_Adminhtml_Block_Template
diff --git a/app/code/core/Mage/Adminhtml/Block/Permissions/Users.php b/app/code/core/Mage/Adminhtml/Block/Permissions/Users.php
index a3cebb659a..86a7db7321 100644
--- a/app/code/core/Mage/Adminhtml/Block/Permissions/Users.php
+++ b/app/code/core/Mage/Adminhtml/Block/Permissions/Users.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit.php b/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit.php
index c6f376469e..e56e95ebf3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit/Form.php
index 1ce0e26f8a..eb6dabf25c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Answer/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit.php
index f53035549f..6154ee61b8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Form.php
index 8b8a5c616a..e519685611 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers.php
index e1015f7e89..209d59e4dd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Form.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Form.php
index f3ccfaf658..b3e04c45f7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Grid.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Grid.php
index 62bcd64f47..ec8c54976e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/List.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/List.php
index 8708d37a59..f7c9005450 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/List.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Answers/List.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Form.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Form.php
index 0e82ee3f09..0a63aa1739 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tab/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tabs.php
index ba8bdd3ce3..2f96955bab 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Grid.php b/app/code/core/Mage/Adminhtml/Block/Poll/Grid.php
index 2d4e057bdb..3760998ba0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Poll/Poll.php b/app/code/core/Mage/Adminhtml/Block/Poll/Poll.php
index b58cae5f23..c2ba57e4d5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Poll/Poll.php
+++ b/app/code/core/Mage/Adminhtml/Block/Poll/Poll.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog.php
index 6d0ee2df93..0126c61d6b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit.php
index f4ec61d8d3..145f3cedd9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -59,7 +59,7 @@ public function __construct()
'onclick'=>"$('rule_auto_apply').value=1; editForm.submit()",
));
$this->_addButton('save_and_continue', array(
- 'label' => Mage::helper('catalogrule')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('catalogrule')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save'
), 10);
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Form.php
index 2c0aeeb819..5fcb9f099c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Actions.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Actions.php
index 3d481011fb..f2b123e9ec 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Actions.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Actions.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -85,15 +85,15 @@ protected function _prepareForm()
$form->setHtmlIdPrefix('rule_');
- $fieldset = $form->addFieldset('action_fieldset', array('legend'=>Mage::helper('salesrule')->__('Update prices using the following information')));
+ $fieldset = $form->addFieldset('action_fieldset', array('legend'=>Mage::helper('salesrule')->__('Update Prices Using the Following Information')));
$fieldset->addField('simple_action', 'select', array(
'label' => Mage::helper('salesrule')->__('Apply'),
'name' => 'simple_action',
'options' => array(
- 'by_percent' => Mage::helper('salesrule')->__('By Percentage of the original price'),
+ 'by_percent' => Mage::helper('salesrule')->__('By Percentage of the Original Price'),
'by_fixed' => Mage::helper('salesrule')->__('By Fixed Amount'),
- 'to_percent' => Mage::helper('salesrule')->__('To Percentage of the original price'),
+ 'to_percent' => Mage::helper('salesrule')->__('To Percentage of the Original Price'),
'to_fixed' => Mage::helper('salesrule')->__('To Fixed Amount'),
),
));
@@ -102,12 +102,12 @@ protected function _prepareForm()
'name' => 'discount_amount',
'required' => true,
'class' => 'validate-not-negative-number',
- 'label' => Mage::helper('salesrule')->__('Discount amount'),
+ 'label' => Mage::helper('salesrule')->__('Discount Amount'),
));
$fieldset->addField('stop_rules_processing', 'select', array(
- 'label' => Mage::helper('salesrule')->__('Stop further rules processing'),
- 'title' => Mage::helper('salesrule')->__('Stop further rules processing'),
+ 'label' => Mage::helper('salesrule')->__('Stop Further Rules Processing'),
+ 'title' => Mage::helper('salesrule')->__('Stop Further Rules Processing'),
'name' => 'stop_rules_processing',
'options' => array(
'1' => Mage::helper('salesrule')->__('Yes'),
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Conditions.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Conditions.php
index e2f28c7d35..415d365cbb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Conditions.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Conditions.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -112,8 +112,8 @@ protected function _prepareForm()
$fieldset = $form->addFieldset('options_fieldset', array('legend'=>Mage::helper('catalogrule')->__('Options')));
$fieldset->addField('stop_rules_processing', 'select', array(
- 'label' => Mage::helper('catalogrule')->__('Stop further rules processing'),
- 'title' => Mage::helper('catalogrule')->__('Stop further rules processing'),
+ 'label' => Mage::helper('catalogrule')->__('Stop Further Rules Processing'),
+ 'title' => Mage::helper('catalogrule')->__('Stop Further Rules Processing'),
'name' => 'stop_rules_processing',
'required' => true,
'options' => array(
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php
index 0c24a68e62..eb983bed8a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tab/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tabs.php
index c9952a6da2..0b5685ca9d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Grid.php b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Grid.php
index d6d920c38b..604bcdbba3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Catalog/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote.php
index de736ecf6d..ba9f0a3461 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit.php
index 1cb14b05ff..36525a8725 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -57,7 +57,7 @@ public function __construct()
$this->_removeButton('reset');
} else {
$this->_addButton('save_and_continue', array(
- 'label' => Mage::helper('salesrule')->__('Save And Continue Edit'),
+ 'label' => Mage::helper('salesrule')->__('Save and Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save'
), 10);
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Form.php
index 77d54b5b36..eea713d732 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php
index 423054b75e..43199f808f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -101,13 +101,13 @@ protected function _prepareForm()
'name' => 'discount_amount',
'required' => true,
'class' => 'validate-not-negative-number',
- 'label' => Mage::helper('salesrule')->__('Discount amount'),
+ 'label' => Mage::helper('salesrule')->__('Discount Amount'),
));
$model->setDiscountAmount($model->getDiscountAmount()*1);
$fieldset->addField('discount_qty', 'text', array(
'name' => 'discount_qty',
- 'label' => Mage::helper('salesrule')->__('Maximum Qty Discount is Applied to'),
+ 'label' => Mage::helper('salesrule')->__('Maximum Qty Discount is Applied To'),
));
$model->setDiscountQty($model->getDiscountQty()*1);
@@ -124,8 +124,8 @@ protected function _prepareForm()
));
$fieldset->addField('simple_free_shipping', 'select', array(
- 'label' => Mage::helper('salesrule')->__('Free shipping'),
- 'title' => Mage::helper('salesrule')->__('Free shipping'),
+ 'label' => Mage::helper('salesrule')->__('Free Shipping'),
+ 'title' => Mage::helper('salesrule')->__('Free Shipping'),
'name' => 'simple_free_shipping',
'options' => array(
0 => Mage::helper('salesrule')->__('No'),
@@ -135,8 +135,8 @@ protected function _prepareForm()
));
$fieldset->addField('stop_rules_processing', 'select', array(
- 'label' => Mage::helper('salesrule')->__('Stop further rules processing'),
- 'title' => Mage::helper('salesrule')->__('Stop further rules processing'),
+ 'label' => Mage::helper('salesrule')->__('Stop Further Rules Processing'),
+ 'title' => Mage::helper('salesrule')->__('Stop Further Rules Processing'),
'name' => 'stop_rules_processing',
'options' => array(
'1' => Mage::helper('salesrule')->__('Yes'),
@@ -154,8 +154,8 @@ protected function _prepareForm()
$fieldset->addField('actions', 'text', array(
'name' => 'actions',
- 'label' => Mage::helper('salesrule')->__('Apply to'),
- 'title' => Mage::helper('salesrule')->__('Apply to'),
+ 'label' => Mage::helper('salesrule')->__('Apply To'),
+ 'title' => Mage::helper('salesrule')->__('Apply To'),
'required' => true,
))->setRule($model)->setRenderer(Mage::getBlockSingleton('rule/actions'));
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Conditions.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Conditions.php
index c6cbd036ab..83b3dbf0b9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Conditions.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Conditions.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -105,8 +105,8 @@ protected function _prepareForm()
$fieldset->addField('actions', 'text', array(
'name' => 'actions',
- 'label' => Mage::helper('salesrule')->__('Apply to'),
- 'title' => Mage::helper('salesrule')->__('Apply to'),
+ 'label' => Mage::helper('salesrule')->__('Apply To'),
+ 'title' => Mage::helper('salesrule')->__('Apply To'),
'required' => true,
))->setRule($model)->setRenderer(Mage::getBlockSingleton('rule/actions'));
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Labels.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Labels.php
index 8eb7e9cacf..60b9e29464 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Labels.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Labels.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Main.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Main.php
index c86ba38d0a..b87eaa5826 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -164,19 +164,27 @@ protected function _prepareForm()
'values' => $customerGroups,
));
- $fieldset->addField('coupon_code', 'text', array(
+ $couponTypeFiled = $fieldset->addField('coupon_type', 'select', array(
+ 'name' => 'coupon_type',
+ 'label' => Mage::helper('salesrule')->__('Coupon'),
+ 'required' => true,
+ 'options' => Mage::getModel('salesrule/rule')->getCouponTypes(),
+ ));
+
+ $couponCodeFiled = $fieldset->addField('coupon_code', 'text', array(
'name' => 'coupon_code',
- 'label' => Mage::helper('salesrule')->__('Coupon code'),
+ 'label' => Mage::helper('salesrule')->__('Coupon Code'),
+ 'required' => true,
));
- $fieldset->addField('uses_per_coupon', 'text', array(
+ $usesPerCouponFiled = $fieldset->addField('uses_per_coupon', 'text', array(
'name' => 'uses_per_coupon',
- 'label' => Mage::helper('salesrule')->__('Uses per coupon'),
+ 'label' => Mage::helper('salesrule')->__('Uses per Coupon'),
));
$fieldset->addField('uses_per_customer', 'text', array(
'name' => 'uses_per_customer',
- 'label' => Mage::helper('salesrule')->__('Uses per customer'),
+ 'label' => Mage::helper('salesrule')->__('Uses per Customer'),
));
$dateFormatIso = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
@@ -229,6 +237,23 @@ protected function _prepareForm()
$this->setForm($form);
+ // field dependencies
+ $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
+ ->addFieldMap($couponTypeFiled->getHtmlId(), $couponTypeFiled->getName())
+ ->addFieldMap($couponCodeFiled->getHtmlId(), $couponCodeFiled->getName())
+ ->addFieldMap($usesPerCouponFiled->getHtmlId(), $usesPerCouponFiled->getName())
+ ->addFieldDependence(
+ $couponCodeFiled->getName(),
+ $couponTypeFiled->getName(),
+ Mage_SalesRule_Model_Rule::COUPON_TYPE_SPECIFIC)
+ ->addFieldDependence(
+ $usesPerCouponFiled->getName(),
+ $couponTypeFiled->getName(),
+ Mage_SalesRule_Model_Rule::COUPON_TYPE_SPECIFIC)
+ );
+
+ Mage::dispatchEvent('adminhtml_promo_quote_edit_tab_main_prepare_form', array('form' => $form));
+
return parent::_prepareForm();
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tabs.php
index 235b32f112..da967428c8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php
index b1b8bda243..0fe29133b0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Quote/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -71,7 +71,7 @@ protected function _prepareColumns()
'header' => Mage::helper('salesrule')->__('Coupon Code'),
'align' => 'left',
'width' => '150px',
- 'index' => 'coupon_code',
+ 'index' => 'code',
));
$this->addColumn('from_date', array(
@@ -102,7 +102,7 @@ protected function _prepareColumns()
0 => 'Inactive',
),
));
-
+
$this->addColumn('sort_order', array(
'header' => Mage::helper('salesrule')->__('Priority'),
'align' => 'right',
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser.php b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser.php
new file mode 100644
index 0000000000..8f35a68585
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser.php
@@ -0,0 +1,177 @@
+setDefaultSort('rule_id');
+ $this->setDefaultDir('ASC');
+ $this->setUseAjax(true);
+ }
+
+ /**
+ * Prepare chooser element HTML
+ *
+ * @param Varien_Data_Form_Element_Abstract $element Form Element
+ * @return Varien_Data_Form_Element_Abstract
+ */
+ public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
+ {
+ $uniqId = Mage::helper('core')->uniqHash($element->getId());
+ $sourceUrl = $this->getUrl('*/promo_quote/chooser', array('uniq_id' => $uniqId));
+
+ $chooser = $this->getLayout()->createBlock('widget/adminhtml_widget_chooser')
+ ->setElement($element)
+ ->setTranslationHelper($this->getTranslationHelper())
+ ->setConfig($this->getConfig())
+ ->setFieldsetId($this->getFieldsetId())
+ ->setSourceUrl($sourceUrl)
+ ->setUniqId($uniqId);
+
+ if ($element->getValue()) {
+ $rule = Mage::getModel('salesrule/rule')->load((int)$element->getValue());
+ if ($rule->getId()) {
+ $chooser->setLabel($rule->getName());
+ }
+ }
+
+ $element->setData('after_element_html', $chooser->toHtml());
+ return $element;
+ }
+
+ /**
+ * Grid Row JS Callback
+ *
+ * @return string
+ */
+ public function getRowClickCallback()
+ {
+ $chooserJsObject = $this->getId();
+ $js = '
+ function (grid, event) {
+ var trElement = Event.findElement(event, "tr");
+ var ruleName = trElement.down("td").next().innerHTML;
+ var ruleId = trElement.down("td").innerHTML.replace(/^\s+|\s+$/g,"");
+ '.$chooserJsObject.'.setElementValue(ruleId);
+ '.$chooserJsObject.'.setElementLabel(ruleName);
+ '.$chooserJsObject.'.close();
+ }
+ ';
+ return $js;
+ }
+
+ /**
+ * Prepare rules collection
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareCollection()
+ {
+ $collection = Mage::getModel('salesrule/rule')->getResourceCollection();
+ $this->setCollection($collection);
+
+ return parent::_prepareCollection();
+ }
+
+ /**
+ * Prepare columns for rules grid
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareColumns()
+ {
+ $this->addColumn('rule_id', array(
+ 'header' => Mage::helper('salesrule')->__('ID'),
+ 'align' => 'right',
+ 'width' => '50px',
+ 'index' => 'rule_id',
+ ));
+
+ $this->addColumn('name', array(
+ 'header' => Mage::helper('salesrule')->__('Rule Name'),
+ 'align' => 'left',
+ 'index' => 'name',
+ ));
+
+ $this->addColumn('coupon_code', array(
+ 'header' => Mage::helper('salesrule')->__('Coupon Code'),
+ 'align' => 'left',
+ 'width' => '150px',
+ 'index' => 'code',
+ ));
+
+ $this->addColumn('from_date', array(
+ 'header' => Mage::helper('salesrule')->__('Date Start'),
+ 'align' => 'left',
+ 'width' => '120px',
+ 'type' => 'date',
+ 'index' => 'from_date',
+ ));
+
+ $this->addColumn('to_date', array(
+ 'header' => Mage::helper('salesrule')->__('Date Expire'),
+ 'align' => 'left',
+ 'width' => '120px',
+ 'type' => 'date',
+ 'default' => '--',
+ 'index' => 'to_date',
+ ));
+
+ $this->addColumn('is_active', array(
+ 'header' => Mage::helper('salesrule')->__('Status'),
+ 'align' => 'left',
+ 'width' => '80px',
+ 'index' => 'is_active',
+ 'type' => 'options',
+ 'options' => array(
+ 1 => 'Active',
+ 0 => 'Inactive',
+ ),
+ ));
+
+ return parent::_prepareColumns();
+ }
+
+ /**
+ * Prepare grid URL
+ *
+ * @return string
+ */
+ public function getGridUrl()
+ {
+ return $this->getUrl('*/promo_quote/chooser', array('_current' => true));
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Daterange.php b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Daterange.php
index e95ba9b998..7991b6cc49 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Daterange.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Daterange.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Sku.php b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Sku.php
index fd3081cc21..11014c7252 100644
--- a/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Sku.php
+++ b/app/code/core/Mage/Adminhtml/Block/Promo/Widget/Chooser/Sku.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Edit.php b/app/code/core/Mage/Adminhtml/Block/Rating/Edit.php
index f41e7581cd..f81c19343e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Form.php
index 6dfd9c0447..9ddf8ae9df 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Form.php b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Form.php
index 42b680046e..4836672bb6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Options.php b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Options.php
index 80b1dfc100..dda310937f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Options.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tab/Options.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tabs.php
index bb5d1daafa..8c68243a52 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Edit/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Grid.php b/app/code/core/Mage/Adminhtml/Block/Rating/Grid.php
index 3866923a90..547d19be64 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Rating/Rating.php b/app/code/core/Mage/Adminhtml/Block/Rating/Rating.php
index 318c5acc3a..3c7b7e2f9f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Rating/Rating.php
+++ b/app/code/core/Mage/Adminhtml/Block/Rating/Rating.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/MtdStart.php b/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/MtdStart.php
index f9e5df22f4..377ee7d867 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/MtdStart.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/MtdStart.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php b/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php
index d80cce7983..3e455825fd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php
index af3545276c..71afb08369 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts/Grid.php
index 6acdd7daab..c65d890da4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Accounts/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php
index 8db8de0733..376fbe7fe1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders/Grid.php
index 6ed222d897..1e1dc3b764 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Orders/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php
index c087deb5b9..f7c4d16c85 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -37,7 +37,7 @@ class Mage_Adminhtml_Block_Report_Customer_Totals extends Mage_Adminhtml_Block_W
public function __construct()
{
$this->_controller = 'report_customer_totals';
- $this->_headerText = Mage::helper('reports')->__('Customers by orders total');
+ $this->_headerText = Mage::helper('reports')->__('Customers by Orders Total');
parent::__construct();
$this->_removeButton('add');
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals/Grid.php
index fbb01ef024..30774403a7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Customer/Totals/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Filter/Form.php b/app/code/core/Mage/Adminhtml/Block/Report/Filter/Form.php
index cc5c046f57..ce08a84c73 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Filter/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Filter/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -31,7 +31,6 @@
* @package Mage_Adminhtml
* @author Magento Core Team
*/
-
class Mage_Adminhtml_Block_Report_Filter_Form extends Mage_Adminhtml_Block_Widget_Form
{
/**
@@ -39,6 +38,64 @@ class Mage_Adminhtml_Block_Report_Filter_Form extends Mage_Adminhtml_Block_Widge
*/
protected $_reportTypeOptions = array();
+ /**
+ * Report field visibility
+ */
+ protected $_fieldVisibility = array();
+
+ /**
+ * Report field opions
+ */
+ protected $_fieldOptions = array();
+
+ /**
+ * Set field visibility
+ *
+ * @param string Field id
+ * @param bool Field visibility
+ */
+ public function setFieldVisibility($fieldId, $visibility)
+ {
+ $this->_fieldVisibility[$fieldId] = (bool)$visibility;
+ }
+
+ /**
+ * Get field visibility
+ *
+ * @param string Field id
+ * @param bool Default field visibility
+ * @return bool
+ */
+ public function getFieldVisibility($fieldId, $defaultVisibility = true)
+ {
+ if (!array_key_exists($fieldId, $this->_fieldVisibility)) {
+ return $defaultVisibility;
+ }
+ return $this->_fieldVisibility[$fieldId];
+ }
+
+ /**
+ * Set field option(s)
+ *
+ * @param string $fieldId Field id
+ * @param mixed $option Field option name
+ * @param mixed $value Field option value
+ */
+ public function setFieldOption($fieldId, $option, $value = null)
+ {
+ if (is_array($option)) {
+ $options = $option;
+ } else {
+ $options = array($option => $value);
+ }
+ if (!array_key_exists($fieldId, $this->_fieldOptions)) {
+ $this->_fieldOptions[$fieldId] = array();
+ }
+ foreach ($options as $k => $v) {
+ $this->_fieldOptions[$fieldId][$k] = $v;
+ }
+ }
+
/**
* Add report type option
*
@@ -52,6 +109,11 @@ public function addReportTypeOption($key, $value)
return $this;
}
+ /**
+ * Add fieldset with general report fields
+ *
+ * @return Mage_Adminhtml_Block_Report_Filter_Form
+ */
protected function _prepareForm()
{
$actionUrl = $this->getUrl('*/*/sales');
@@ -68,22 +130,10 @@ protected function _prepareForm()
'name' => 'store_ids'
));
- $statuses = Mage::getModel('sales/order_config')->getStatuses();
- $values = array();
- foreach ($statuses as $code => $label) {
- if (false === strpos($code, 'pending')) {
- $values[] = array(
- 'label' => Mage::helper('reports')->__($label),
- 'value' => $code
- );
- }
- }
-
$fieldset->addField('report_type', 'select', array(
'name' => 'report_type',
'options' => $this->_reportTypeOptions,
- 'label' => Mage::helper('reports')->__('Report Type'),
- 'title' => Mage::helper('reports')->__('Report Type')
+ 'label' => Mage::helper('reports')->__('Match Period To'),
));
$fieldset->addField('period_type', 'select', array(
@@ -115,44 +165,65 @@ protected function _prepareForm()
'required' => true
));
- $fieldset->addField('show_order_statuses', 'select', array(
- 'name' => 'show_order_statuses',
- 'label' => Mage::helper('reports')->__('Order Status'),
- 'title' => Mage::helper('reports')->__('Order Status'),
- 'options' => array(
- '0' => Mage::helper('reports')->__('Any'),
- '1' => Mage::helper('reports')->__('Specified'),
- ),
- 'note' => Mage::helper('reports')->__('Applies to Any of the Specified Order Statuses'),
- ));
-
- $fieldset->addField('order_statuses', 'multiselect', array(
- 'name' => 'order_statuses',
- 'values' => $values,
- 'display' => 'none'
- ));
-
$fieldset->addField('show_empty_rows', 'select', array(
'name' => 'show_empty_rows',
'options' => array(
- '1' => 'Yes',
- '0' => 'No'
+ '1' => Mage::helper('reports')->__('Yes'),
+ '0' => Mage::helper('reports')->__('No')
),
'label' => Mage::helper('reports')->__('Empty Rows'),
'title' => Mage::helper('reports')->__('Empty Rows')
));
- $form->addValues($this->getFilterData()->getData());
$form->setUseContainer(true);
$this->setForm($form);
- // define field dependencies
- $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
- ->addFieldMap("{$htmlIdPrefix}show_order_statuses", 'show_order_statuses')
- ->addFieldMap("{$htmlIdPrefix}order_statuses", 'order_statuses')
- ->addFieldDependence('order_statuses', 'show_order_statuses', '1')
- );
-
return parent::_prepareForm();
}
+
+ /**
+ * Initialize form fileds values
+ * Method will be called after prepareForm and can be used for field values initialization
+ *
+ * @return Mage_Adminhtml_Block_Widget_Form
+ */
+ protected function _initFormValues()
+ {
+ $this->getForm()->addValues($this->getFilterData()->getData());
+ return parent::_initFormValues();
+ }
+
+ /**
+ * This method is called before rendering HTML
+ *
+ * @return Mage_Adminhtml_Block_Widget_Form
+ */
+ protected function _beforeToHtml()
+ {
+ $result = parent::_beforeToHtml();
+
+ /** @var Varien_Data_Form_Element_Fieldset $fieldset */
+ $fieldset = $this->getForm()->getElement('base_fieldset');
+
+ if (is_object($fieldset) && $fieldset instanceof Varien_Data_Form_Element_Fieldset) {
+ // apply field visibility
+ foreach ($fieldset->getElements() as $field) {
+ if (!$this->getFieldVisibility($field->getId())) {
+ $fieldset->removeField($field->getId());
+ }
+ }
+ // apply field options
+ foreach ($this->_fieldOptions as $fieldId => $fieldOptions) {
+ $field = $fieldset->getElements()->searchById($fieldId);
+ /** @var Varien_Object $field */
+ if ($field) {
+ foreach ($fieldOptions as $k => $v) {
+ $field->setDataUsingMethod($k, $v);
+ }
+ }
+ }
+ }
+
+ return $result;
+ }
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid.php
index c81456636e..2e56be17b2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -147,7 +147,7 @@ protected function _prepareCollection()
$collection->setInterval($from, $to);
}
catch (Exception $e) {
- $this->_errors[] = Mage::helper('reports')->__('Invalid date specified');
+ $this->_errors[] = Mage::helper('reports')->__('Invalid date specified.');
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php
index ddd7b0d620..4079a5736f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -72,6 +72,40 @@ protected function _getAggregatedColumns()
return $this->_aggregatedColumns;
}
+ /**
+ * Add column to grid
+ * Overriden to add support for visibility_filter column option
+ * It stands for conditional visibility of the column depending on filter field values
+ * Value of visibility_filter supports (filter_field_name => filter_field_value) pairs
+ *
+ * @param string $columnId
+ * @param array $column
+ * @return Mage_Adminhtml_Block_Report_Grid_Abstract
+ */
+ public function addColumn($columnId, $column)
+ {
+ if (is_array($column) && array_key_exists('visibility_filter', $column)) {
+ $filterData = $this->getFilterData();
+ $visibilityFilter = $column['visibility_filter'];
+ if (!is_array($visibilityFilter)) {
+ $visibilityFilter = array($visibilityFilter);
+ }
+ foreach ($visibilityFilter as $k => $v) {
+ if (is_int($k)) {
+ $filterFieldId = $v;
+ $filterFieldValue = true;
+ } else {
+ $filterFieldId = $k;
+ $filterFieldValue = $v;
+ }
+ if (!$filterData->hasData($filterFieldId) || $filterData->getData($filterFieldId) != $filterFieldValue) {
+ return $this; // don't add column
+ }
+ }
+ }
+ return parent::addColumn($columnId, $column);
+ }
+
protected function _prepareCollection()
{
$filterData = $this->getFilterData();
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Blanknumber.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Blanknumber.php
index a177794c6b..4b0f6165ef 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Blanknumber.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Blanknumber.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Currency.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Currency.php
index a2b8511901..0305b3b294 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Currency.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Currency.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Customer.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Customer.php
index 6780f0a672..44e2b2ca11 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -51,7 +51,7 @@ public function render(Varien_Object $row)
return sprintf('%s',
$this->getUrl('*/catalog_product_review', array('customerId' => $id)),
- Mage::helper('adminhtml')->__('Show reviews')
+ Mage::helper('adminhtml')->__('Show Reviews')
);
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Product.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Product.php
index 261ce3e365..1843c88a23 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid/Column/Renderer/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -47,7 +47,7 @@ public function render(Varien_Object $row)
return sprintf('%s',
$this->getUrl('*/catalog_product_review/', array('productId' => $id)),
- Mage::helper('adminhtml')->__('Show reviews')
+ Mage::helper('adminhtml')->__('Show Reviews')
);
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product.php b/app/code/core/Mage/Adminhtml/Block/Report/Product.php
index 102085f332..abdbe6b5c3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php
index b2c27e1358..79c90682db 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Grid.php
index bf5291fc0e..2d4c609e6c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Renderer/Purchases.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Renderer/Purchases.php
index a1daeb1e09..ad050307f7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Renderer/Purchases.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Downloads/Renderer/Purchases.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Grid.php
index 3e21dbd43a..a6ab3702f0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php
index 0710fb6537..9623257d56 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock/Grid.php
index e9c242b9e0..438054d6f6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Lowstock/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php
index 59a5b034cb..13251b7751 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered.php
@@ -20,18 +20,15 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Adminhtml bestsellers products report content block
*
- * @category Mage
- * @package Mage_Adminhtml
- * @author Magento Core Team
+ * @deprecated after 1.4.0.1
*/
-
class Mage_Adminhtml_Block_Report_Product_Ordered extends Mage_Adminhtml_Block_Widget_Grid_Container
{
public function __construct()
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered/Grid.php
index fffbe89924..167e15479b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Ordered/Grid.php
@@ -20,16 +20,14 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Adminhtml bestsellers products report grid block
*
- * @category Mage
- * @package Mage_Adminhtml
- * @author Magento Core Team
+ * @deprecated after 1.4.0.1
*/
class Mage_Adminhtml_Block_Report_Product_Ordered_Grid extends Mage_Adminhtml_Block_Report_Grid
{
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php
index 4e86ff85ab..066751de49 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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
index a2a9ffea93..964cc88e6a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Sold/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php
index 8fdc5569a7..8051dfd30d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed/Grid.php
index 0e73c5679d..a663e2b00e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Product/Viewed/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php b/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php
index a73f463ab7..9bb9d9c39b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics/Grid.php
index 5afaf923eb..6bb739ac67 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Refresh/Statistics/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -58,39 +58,45 @@ protected function _prepareCollection()
$data = array(
array(
'id' => 'sales',
- 'report' => Mage::helper('reports')->__('Sales'),
- 'comment' => Mage::helper('reports')->__('Total Ordered Report'),
+ 'report' => Mage::helper('sales')->__('Orders'),
+ 'comment' => Mage::helper('sales')->__('Total Ordered Report'),
'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_ORDER_FLAG_CODE)
),
array(
'id' => 'tax',
- 'report' => Mage::helper('reports')->__('Tax'),
- 'comment' => Mage::helper('reports')->__('Order Taxes Report Grouped by Tax Rates'),
+ 'report' => Mage::helper('sales')->__('Tax'),
+ 'comment' => Mage::helper('sales')->__('Order Taxes Report Grouped by Tax Rates'),
'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_TAX_FLAG_CODE)
),
array(
'id' => 'shipping',
- 'report' => Mage::helper('reports')->__('Shipping'),
- 'comment' => Mage::helper('reports')->__('Total Shipped Report'),
+ 'report' => Mage::helper('sales')->__('Shipping'),
+ 'comment' => Mage::helper('sales')->__('Total Shipped Report'),
'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_SHIPPING_FLAG_CODE)
),
array(
'id' => 'invoiced',
- 'report' => Mage::helper('reports')->__('Total Invoiced'),
- 'comment' => Mage::helper('reports')->__('Total Invoiced VS Paid Report'),
+ 'report' => Mage::helper('sales')->__('Total Invoiced'),
+ 'comment' => Mage::helper('sales')->__('Total Invoiced VS Paid Report'),
'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_INVOICE_FLAG_CODE)
),
array(
'id' => 'refunded',
- 'report' => Mage::helper('reports')->__('Total Refunded'),
- 'comment' => Mage::helper('reports')->__('Total Refunded Report'),
+ 'report' => Mage::helper('sales')->__('Total Refunded'),
+ 'comment' => Mage::helper('sales')->__('Total Refunded Report'),
'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_REFUNDED_FLAG_CODE)
),
array(
'id' => 'coupons',
- 'report' => Mage::helper('reports')->__('Coupons'),
- 'comment' => Mage::helper('reports')->__('Promotion Coupons Usage Report'),
- 'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_COUPNS_FLAG_CODE)
+ 'report' => Mage::helper('sales')->__('Coupons'),
+ 'comment' => Mage::helper('sales')->__('Promotion Coupons Usage Report'),
+ 'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_COUPONS_FLAG_CODE)
+ ),
+ array(
+ 'id' => 'bestsellers',
+ 'report' => Mage::helper('sales')->__('Bestsellers'),
+ 'comment' => Mage::helper('sales')->__('Products Bestsellers Report'),
+ 'updated_at' => $this->_getUpdatedAt(Mage_Reports_Model_Flag::REPORT_BESTSELLERS_FLAG_CODE)
)
);
@@ -127,6 +133,7 @@ protected function _prepareColumns()
'index' => 'updated_at',
'type' => 'datetime',
'width' => 200,
+ 'default' => Mage::helper('reports')->__('undefined'),
'sortable' => false
));
@@ -145,7 +152,7 @@ protected function _prepareMassaction()
));
$this->getMassactionBlock()->addItem('refresh_recent', array(
- 'label' => Mage::helper('reports')->__('Refresh Statistics for Last Day'),
+ 'label' => Mage::helper('reports')->__('Refresh Statistics for the Last Day'),
'url' => $this->getUrl('*/*/refreshRecent'),
'confirm' => Mage::helper('reports')->__('Are you sure?'),
'selected' => true
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php
index 718330abb1..12b3a55c02 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer/Grid.php
index 6ce55b9228..bb7b8eb542 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Customer/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php
index b86332be29..1b7e027fb4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail/Grid.php
index 5447261622..c6a233ae6a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Detail/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -81,7 +81,7 @@ protected function _prepareColumns()
));
$this->addColumn('created_at', array(
- 'header' =>Mage::helper('reports')->__('Created at'),
+ 'header' =>Mage::helper('reports')->__('Created At'),
'index' =>'created_at',
'width' =>'200px',
'type' =>'datetime'
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php
index 06187dfbc6..2083309e17 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Review/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Review/Product/Grid.php
index 229fafb464..704b1471c8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Review/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Review/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -74,14 +74,14 @@ protected function _prepareColumns()
));
$this->addColumn('avg_rating', array(
- 'header' =>Mage::helper('reports')->__('Avg. rating'),
+ 'header' =>Mage::helper('reports')->__('Avg. Rating'),
'width' =>'50px',
'align' =>'right',
'index' =>'avg_rating'
));
$this->addColumn('avg_rating_approved', array(
- 'header' =>Mage::helper('reports')->__('Avg. approved rating'),
+ 'header' =>Mage::helper('reports')->__('Avg. Approved Rating'),
'width' =>'50px',
'align' =>'right',
'index' =>'avg_rating_approved'
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers.php
new file mode 100644
index 0000000000..7ae30625bc
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers.php
@@ -0,0 +1,56 @@
+
+ */
+
+class Mage_Adminhtml_Block_Report_Sales_Bestsellers extends Mage_Adminhtml_Block_Widget_Grid_Container
+{
+
+ public function __construct()
+ {
+ $this->_controller = 'report_sales_bestsellers';
+ $this->_headerText = Mage::helper('sales')->__('Products Bestsellers Report');
+ parent::__construct();
+ $this->setTemplate('report/grid/container.phtml');
+ $this->_removeButton('add');
+ $this->addButton('filter_form_submit', array(
+ 'label' => Mage::helper('reports')->__('Show Report'),
+ 'onclick' => 'filterFormSubmit()'
+ ));
+ }
+
+ public function getFilterUrl()
+ {
+ $this->getRequest()->setParam('filter', null);
+ return $this->getUrl('*/*/bestsellers', array('_current' => true));
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers/Grid.php
new file mode 100644
index 0000000000..3749219349
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Bestsellers/Grid.php
@@ -0,0 +1,96 @@
+
+ */
+class Mage_Adminhtml_Block_Report_Sales_Bestsellers_Grid extends Mage_Adminhtml_Block_Report_Grid_Abstract
+{
+ protected $_columnGroupBy = 'period';
+
+ public function __construct()
+ {
+ parent::__construct();
+ $this->setCountTotals(true);
+ }
+
+ public function getResourceCollectionName()
+ {
+ return 'sales/report_bestsellers_collection';
+ }
+
+ protected function _prepareColumns()
+ {
+ $this->addColumn('period', array(
+ 'header' => Mage::helper('sales')->__('Period'),
+ 'index' => 'period',
+ 'width' => 100,
+ 'sortable' => false,
+ 'period_type' => $this->getPeriodType(),
+ 'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
+ 'totals_label' => Mage::helper('adminhtml')->__('Total'),
+ 'html_decorators' => array('nobr'),
+ ));
+
+ $this->addColumn('product_name', array(
+ 'header' => Mage::helper('sales')->__('Product Name'),
+ 'index' => 'product_name',
+ 'type' => 'string',
+ 'sortable' => false
+ ));
+
+ if ($this->getFilterData()->getStoreIds()) {
+ $this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
+ }
+ $currencyCode = $this->getCurrentCurrencyCode();
+
+ $this->addColumn('product_price', array(
+ 'header' => Mage::helper('sales')->__('Price'),
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'index' => 'product_price',
+ 'sortable' => false
+ ));
+
+ $this->addColumn('qty_ordered', array(
+ 'header' => Mage::helper('sales')->__('Quantity Ordered'),
+ 'index' => 'qty_ordered',
+ 'type' => 'number',
+ 'total' => 'sum',
+ 'sortable' => false
+ ));
+
+
+ $this->addExportType('*/*/exportBestsellersCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportBestsellersExcel', Mage::helper('adminhtml')->__('Excel'));
+
+ return parent::_prepareColumns();
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons.php
index c3a681dbe9..d728a93fc7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons/Grid.php
index 217db36c16..9c8aa8b058 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Coupons/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -52,24 +52,25 @@ public function getResourceCollectionName()
protected function _prepareColumns()
{
$this->addColumn('period', array(
- 'header' => Mage::helper('reports')->__('Period'),
+ 'header' => Mage::helper('salesrule')->__('Period'),
'index' => 'period',
'width' => 100,
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total'),
- 'subtotals_label' => Mage::helper('adminhtml')->__('SubTotal')
+ 'totals_label' => Mage::helper('salesrule')->__('Total'),
+ 'subtotals_label' => Mage::helper('salesrule')->__('Subtotal'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('coupon_code', array(
- 'header' => Mage::helper('reports')->__('Coupon Code'),
+ 'header' => Mage::helper('salesrule')->__('Coupon Code'),
'sortable' => false,
'index' => 'coupon_code'
));
$this->addColumn('coupon_uses', array(
- 'header' => Mage::helper('reports')->__('Number of Use'),
+ 'header' => Mage::helper('salesrule')->__('Number of Uses'),
'sortable' => false,
'index' => 'coupon_uses',
'total' => 'sum',
@@ -79,37 +80,64 @@ protected function _prepareColumns()
if ($this->getFilterData()->getStoreIds()) {
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
}
- $currency_code = $this->getCurrentCurrencyCode();
+ $currencyCode = $this->getCurrentCurrencyCode();
$this->addColumn('subtotal_amount', array(
- 'header' => Mage::helper('reports')->__('Subtotal Amount'),
+ 'header' => Mage::helper('salesrule')->__('Sales Subtotal Amount'),
'sortable' => false,
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'total' => 'sum',
'index' => 'subtotal_amount'
));
$this->addColumn('discount_amount', array(
- 'header' => Mage::helper('reports')->__('Discount Amount'),
+ 'header' => Mage::helper('salesrule')->__('Sales Discount Amount'),
'sortable' => false,
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'total' => 'sum',
'index' => 'discount_amount'
));
$this->addColumn('total_amount', array(
- 'header' => Mage::helper('reports')->__('Total Amount'),
+ 'header' => Mage::helper('salesrule')->__('Sales Total Amount'),
'sortable' => false,
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'total' => 'sum',
'index' => 'total_amount'
));
- $this->addExportType('*/*/exportCouponsCsv', Mage::helper('reports')->__('CSV'));
- $this->addExportType('*/*/exportCouponsExcel', Mage::helper('reports')->__('Excel'));
+ $this->addColumn('subtotal_amount_actual', array(
+ 'header' => Mage::helper('salesrule')->__('Subtotal Amount'),
+ 'sortable' => false,
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'total' => 'sum',
+ 'index' => 'subtotal_amount_actual'
+ ));
+
+ $this->addColumn('discount_amount_actual', array(
+ 'header' => Mage::helper('salesrule')->__('Discount Amount'),
+ 'sortable' => false,
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'total' => 'sum',
+ 'index' => 'discount_amount_actual'
+ ));
+
+ $this->addColumn('total_amount_actual', array(
+ 'header' => Mage::helper('salesrule')->__('Total Amount'),
+ 'sortable' => false,
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'total' => 'sum',
+ 'index' => 'total_amount_actual'
+ ));
+
+ $this->addExportType('*/*/exportCouponsCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportCouponsExcel', Mage::helper('adminhtml')->__('Excel'));
return parent::_prepareColumns();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Grid/Column/Renderer/Date.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Grid/Column/Renderer/Date.php
index 74ee4fd311..f5900d5e72 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Grid/Column/Renderer/Date.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Grid/Column/Renderer/Date.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced.php
index 8cabc80590..88bd09e732 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -37,7 +37,7 @@ class Mage_Adminhtml_Block_Report_Sales_Invoiced extends Mage_Adminhtml_Block_Wi
public function __construct()
{
$this->_controller = 'report_sales_invoiced';
- $this->_headerText = Mage::helper('reports')->__('Total Invoiced VS Paid Report');
+ $this->_headerText = Mage::helper('reports')->__('Total Invoiced vs. Paid Report');
parent::__construct();
$this->setTemplate('report/grid/container.phtml');
$this->_removeButton('add');
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced/Grid.php
index b571b446f6..ba26070739 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Invoiced/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -57,11 +57,12 @@ protected function _prepareColumns()
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total')
+ 'totals_label' => Mage::helper('sales')->__('Total'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('orders_count', array(
- 'header' => Mage::helper('reports')->__('Number of Orders'),
+ 'header' => Mage::helper('sales')->__('Number of Orders'),
'index' => 'orders_count',
'type' => 'number',
'total' => 'sum',
@@ -69,7 +70,7 @@ protected function _prepareColumns()
));
$this->addColumn('orders_invoiced', array(
- 'header' => Mage::helper('reports')->__('Number of Invoiced Orders'),
+ 'header' => Mage::helper('sales')->__('Number of Invoiced Orders'),
'index' => 'orders_invoiced',
'type' => 'number',
'total' => 'sum',
@@ -79,37 +80,37 @@ protected function _prepareColumns()
if ($this->getFilterData()->getStoreIds()) {
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
}
- $currency_code = $this->getCurrentCurrencyCode();
+ $currencyCode = $this->getCurrentCurrencyCode();
$this->addColumn('invoiced', array(
- 'header' => Mage::helper('reports')->__('Total Invoiced'),
+ 'header' => Mage::helper('sales')->__('Total Invoiced'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'invoiced',
'total' => 'sum',
'sortable' => false
));
$this->addColumn('invoiced_captured', array(
- 'header' => Mage::helper('reports')->__('Total Invoiced Captured'),
+ 'header' => Mage::helper('sales')->__('Total Invoiced Paid'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'invoiced_captured',
'total' => 'sum',
'sortable' => false
));
$this->addColumn('invoiced_not_captured', array(
- 'header' => Mage::helper('reports')->__('Total Invoiced not Captured'),
+ 'header' => Mage::helper('sales')->__('Total Invoiced not Paid'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'invoiced_not_captured',
'total' => 'sum',
'sortable' => false
));
- $this->addExportType('*/*/exportInvoicedCsv', Mage::helper('reports')->__('CSV'));
- $this->addExportType('*/*/exportInvoicedExcel', Mage::helper('reports')->__('Excel'));
+ $this->addExportType('*/*/exportInvoicedCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportInvoicedExcel', Mage::helper('adminhtml')->__('Excel'));
return parent::_prepareColumns();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded.php
index 13f78d96f3..40a60fad7b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded/Grid.php
index 7f428dfe88..9347d9bd68 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Refunded/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -57,11 +57,12 @@ protected function _prepareColumns()
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total')
+ 'totals_label' => Mage::helper('sales')->__('Total'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('orders_count', array(
- 'header' => Mage::helper('reports')->__('Number of Refunded Orders'),
+ 'header' => Mage::helper('sales')->__('Number of Refunded Orders'),
'index' => 'orders_count',
'type' => 'number',
'total' => 'sum',
@@ -71,37 +72,37 @@ protected function _prepareColumns()
if ($this->getFilterData()->getStoreIds()) {
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
}
- $currency_code = $this->getCurrentCurrencyCode();
+ $currencyCode = $this->getCurrentCurrencyCode();
$this->addColumn('refunded', array(
- 'header' => Mage::helper('reports')->__('Total Refunded'),
+ 'header' => Mage::helper('sales')->__('Total Refunded'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'refunded',
'total' => 'sum',
'sortable' => false
));
$this->addColumn('online_refunded', array(
- 'header' => Mage::helper('reports')->__('Online Refunded'),
+ 'header' => Mage::helper('sales')->__('Online Refunded'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'online_refunded',
'total' => 'sum',
'sortable' => false
));
$this->addColumn('offline_refunded', array(
- 'header' => Mage::helper('reports')->__('Offline Refunded'),
+ 'header' => Mage::helper('sales')->__('Offline Refunded'),
'type' => 'currency',
- 'currency_code' => $currency_code,
+ 'currency_code' => $currencyCode,
'index' => 'offline_refunded',
'total' => 'sum',
'sortable' => false
));
- $this->addExportType('*/*/exportRefundedCsv', Mage::helper('reports')->__('CSV'));
- $this->addExportType('*/*/exportRefundedExcel', Mage::helper('reports')->__('Excel'));
+ $this->addExportType('*/*/exportRefundedCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportRefundedExcel', Mage::helper('adminhtml')->__('Excel'));
return parent::_prepareColumns();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales.php
index c89e2f9c24..a5fa32bf5b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales/Grid.php
index 98dfad2530..94f0d22698 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Sales/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -57,11 +57,12 @@ protected function _prepareColumns()
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total')
+ 'totals_label' => Mage::helper('sales')->__('Total'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('orders_count', array(
- 'header' => Mage::helper('sales')->__('Number of Orders'),
+ 'header' => Mage::helper('sales')->__('Orders'),
'index' => 'orders_count',
'type' => 'number',
'total' => 'sum',
@@ -69,102 +70,153 @@ protected function _prepareColumns()
));
$this->addColumn('total_qty_ordered', array(
- 'header' => Mage::helper('sales')->__('Items Ordered'),
+ 'header' => Mage::helper('sales')->__('Sales Items'),
'index' => 'total_qty_ordered',
'type' => 'number',
'total' => 'sum',
'sortable' => false
));
+ $this->addColumn('total_qty_invoiced', array(
+ 'header' => Mage::helper('sales')->__('Items'),
+ 'index' => 'total_qty_invoiced',
+ 'type' => 'number',
+ 'total' => 'sum',
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
+ ));
+
if ($this->getFilterData()->getStoreIds()) {
$this->setStoreIds(explode(',', $this->getFilterData()->getStoreIds()));
}
- $currency_code = $this->getCurrentCurrencyCode();
+ $currencyCode = $this->getCurrentCurrencyCode();
- $this->addColumn('base_profit_amount', array(
- 'header' => Mage::helper('sales')->__('Profit'),
+ $this->addColumn('total_income_amount', array(
+ 'header' => Mage::helper('sales')->__('Sales Total'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_profit_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_income_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_subtotal_amount', array(
- 'header' => Mage::helper('sales')->__('Subtotal'),
+ $this->addColumn('total_revenue_amount', array(
+ 'header' => Mage::helper('sales')->__('Revenue'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_subtotal_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_revenue_amount',
'total' => 'sum',
- 'sortable' => false
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
));
- $this->addColumn('base_tax_amount', array(
- 'header' => Mage::helper('sales')->__('Tax'),
+ $this->addColumn('total_profit_amount', array(
+ 'header' => Mage::helper('sales')->__('Profit'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_tax_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_profit_amount',
'total' => 'sum',
- 'sortable' => false
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
));
- $this->addColumn('base_shipping_amount', array(
- 'header' => Mage::helper('sales')->__('Shipping'),
+ $this->addColumn('total_invoiced_amount', array(
+ 'header' => Mage::helper('sales')->__('Invoiced'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_shipping_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_invoiced_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_discount_amount', array(
- 'header' => Mage::helper('sales')->__('Discounts'),
+ $this->addColumn('total_paid_amount', array(
+ 'header' => Mage::helper('sales')->__('Paid'),
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_paid_amount',
+ 'total' => 'sum',
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
+ ));
+
+ $this->addColumn('total_refunded_amount', array(
+ 'header' => Mage::helper('sales')->__('Refunded'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_discount_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_refunded_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_grand_total_amount', array(
- 'header' => Mage::helper('sales')->__('Total'),
+ $this->addColumn('total_tax_amount', array(
+ 'header' => Mage::helper('sales')->__('Sales Tax'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_grand_total_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_tax_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_invoiced_amount', array(
- 'header' => Mage::helper('sales')->__('Invoiced'),
+ $this->addColumn('total_tax_amount_actual', array(
+ 'header' => Mage::helper('sales')->__('Tax'),
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_tax_amount_actual',
+ 'total' => 'sum',
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
+ ));
+
+ $this->addColumn('total_shipping_amount', array(
+ 'header' => Mage::helper('sales')->__('Sales Shipping'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_invoiced_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_shipping_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_refunded_amount', array(
- 'header' => Mage::helper('sales')->__('Refunded'),
+ $this->addColumn('total_shipping_amount_actual', array(
+ 'header' => Mage::helper('sales')->__('Shipping'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_refunded_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_shipping_amount_actual',
+ 'total' => 'sum',
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
+ ));
+
+ $this->addColumn('total_discount_amount', array(
+ 'header' => Mage::helper('sales')->__('Sales Discount'),
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_discount_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addColumn('base_canceled_amount', array(
+ $this->addColumn('total_discount_amount_actual', array(
+ 'header' => Mage::helper('sales')->__('Discount'),
+ 'type' => 'currency',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_discount_amount_actual',
+ 'total' => 'sum',
+ 'sortable' => false,
+ 'visibility_filter' => array('show_actual_columns')
+ ));
+
+ $this->addColumn('total_canceled_amount', array(
'header' => Mage::helper('sales')->__('Canceled'),
'type' => 'currency',
- 'currency_code' => $currency_code,
- 'index' => 'base_canceled_amount',
+ 'currency_code' => $currencyCode,
+ 'index' => 'total_canceled_amount',
'total' => 'sum',
'sortable' => false
));
- $this->addExportType('*/*/exportSalesCsv', Mage::helper('reports')->__('CSV'));
- $this->addExportType('*/*/exportSalesExcel', Mage::helper('reports')->__('Excel'));
+ $this->addExportType('*/*/exportSalesCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportSalesExcel', Mage::helper('adminhtml')->__('Excel'));
return parent::_prepareColumns();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping.php
index 924cc0aab8..8b9c819294 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping/Grid.php
index 43b734043f..52f6299b05 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Shipping/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -52,24 +52,25 @@ public function getResourceCollectionName()
protected function _prepareColumns()
{
$this->addColumn('period', array(
- 'header' => Mage::helper('adminhtml')->__('Period'),
+ 'header' => Mage::helper('sales')->__('Period'),
'index' => 'period',
'width' => 100,
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total'),
- 'subtotals_label' => Mage::helper('adminhtml')->__('SubTotal')
+ 'totals_label' => Mage::helper('sales')->__('Total'),
+ 'subtotals_label' => Mage::helper('sales')->__('Subtotal'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('shipping_description', array(
- 'header' => Mage::helper('adminhtml')->__('Carrier/Method'),
+ 'header' => Mage::helper('sales')->__('Carrier/Method'),
'index' => 'shipping_description',
'sortable' => false
));
$this->addColumn('orders_count', array(
- 'header' => Mage::helper('adminhtml')->__('Number of Orders'),
+ 'header' => Mage::helper('sales')->__('Number of Orders'),
'index' => 'orders_count',
'total' => 'sum',
'type' => 'number',
@@ -82,7 +83,7 @@ protected function _prepareColumns()
}
$this->addColumn('total_shipping', array(
- 'header' => Mage::helper('adminhtml')->__('Total Shipping'),
+ 'header' => Mage::helper('sales')->__('Total Sales Shipping'),
'type' => 'currency',
'currency_code' => $this->getCurrentCurrencyCode(),
'index' => 'total_shipping',
@@ -90,6 +91,15 @@ protected function _prepareColumns()
'sortable' => false
));
+ $this->addColumn('total_shipping_actual', array(
+ 'header' => Mage::helper('sales')->__('Total Shipping'),
+ 'type' => 'currency',
+ 'currency_code' => $this->getCurrentCurrencyCode(),
+ 'index' => 'total_shipping_actual',
+ 'total' => 'sum',
+ 'sortable' => false
+ ));
+
$this->addExportType('*/*/exportShippingCsv', Mage::helper('adminhtml')->__('CSV'));
$this->addExportType('*/*/exportShippingExcel', Mage::helper('adminhtml')->__('Excel'));
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax.php
index 5b19c5f7bd..34742176e7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax/Grid.php
index 6152dd9a49..587365420e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Sales/Tax/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -58,8 +58,9 @@ protected function _prepareColumns()
'sortable' => false,
'period_type' => $this->getPeriodType(),
'renderer' => 'adminhtml/report_sales_grid_column_renderer_date',
- 'totals_label' => Mage::helper('adminhtml')->__('Total'),
- 'subtotals_label' => Mage::helper('adminhtml')->__('SubTotal')
+ 'totals_label' => Mage::helper('sales')->__('Total'),
+ 'subtotals_label' => Mage::helper('sales')->__('Subtotal'),
+ 'html_decorators' => array('nobr'),
));
$this->addColumn('code', array(
@@ -99,8 +100,8 @@ protected function _prepareColumns()
'sortable' => false
));
- $this->addExportType('*/*/exportTaxCsv', Mage::helper('reports')->__('CSV'));
- $this->addExportType('*/*/exportTaxExcel', Mage::helper('reports')->__('Excel'));
+ $this->addExportType('*/*/exportTaxCsv', Mage::helper('adminhtml')->__('CSV'));
+ $this->addExportType('*/*/exportTaxExcel', Mage::helper('adminhtml')->__('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 552488d5d5..3fd1611a98 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Search.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Search.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
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 19aad58753..68a203bb0f 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) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned.php
index c58ffcba8f..5f2285583d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned/Grid.php
index 296c2c0265..de811cb475 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Abandoned/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -133,7 +133,7 @@ protected function _prepareColumns()
));
$this->addColumn('created_at', array(
- 'header' =>Mage::helper('reports')->__('Created at'),
+ 'header' =>Mage::helper('reports')->__('Created At'),
'width' =>'170px',
'type' =>'datetime',
'index' =>'created_at',
@@ -142,7 +142,7 @@ protected function _prepareColumns()
));
$this->addColumn('updated_at', array(
- 'header' =>Mage::helper('reports')->__('Updated at'),
+ 'header' =>Mage::helper('reports')->__('Updated At'),
'width' =>'170px',
'type' =>'datetime',
'index' =>'updated_at',
@@ -150,6 +150,13 @@ protected function _prepareColumns()
'sortable' =>false
));
+ $this->addColumn('remote_ip', array(
+ 'header' =>Mage::helper('reports')->__('IP Address'),
+ 'width' =>'80px',
+ 'index' =>'remote_ip',
+ 'sortable' =>false
+ ));
+
$this->addExportType('*/*/exportAbandonedCsv', Mage::helper('reports')->__('CSV'));
$this->addExportType('*/*/exportAbandonedExcel', Mage::helper('reports')->__('Excel'));
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer.php
index f210b5d4a5..8c983a4604 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer/Grid.php
index 7100f64d12..4965b902fa 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Customer/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product.php
index d2ff23fa84..6402b251a2 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product/Grid.php
index 6af7d6d1cf..469a9738bc 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Shopcart/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer.php
index dec716c18d..40c96831ec 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail.php
index 5c7249b648..570dfcf84e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -41,7 +41,7 @@ public function __construct()
$customer = Mage::getModel('customer/customer')->load($this->getRequest()->getParam('id'));
$customerName = $customer->getName();
- $this->_headerText = Mage::helper('reports')->__('Tags submited by %s', $customerName);
+ $this->_headerText = Mage::helper('reports')->__('Tags Submitted by %s', $customerName);
parent::__construct();
$this->_removeButton('add');
$this->setBackUrl($this->getUrl('*/report_tag/customer/'));
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail/Grid.php
index 1f88d35b44..7619eb4682 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Detail/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -46,7 +46,7 @@ protected function _prepareCollection()
->getEntityCollection()
->joinAttribute('original_name', 'catalog_product/name', 'entity_id')
->addCustomerFilter($this->getRequest()->getParam('id'))
- ->addStatusFilter(Mage::getModel('tag/tag')->getApprovedStatus())
+ ->addStatusFilter(Mage_Tag_Model_Tag::STATUS_APPROVED)
->setDescOrder('DESC')
->addStoresVisibility()
->setActiveFilter()
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Grid.php
index e3400d7d27..a9809f0c93 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Customer/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -45,7 +45,7 @@ protected function _prepareCollection()
$collection = Mage::getResourceModel('reports/tag_customer_collection');
- $collection->addStatusFilter(Mage::getModel('tag/tag')->getApprovedStatus())
+ $collection->addStatusFilter(Mage_Tag_Model_Tag::STATUS_APPROVED)
->addGroupByCustomer()
->addTagedCount();
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular.php
index 3ee01b940d..19c65357f9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail.php
index 4799a86689..09162c4367 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail/Grid.php
index 30e1209635..0059020149 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Detail/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Grid.php
index 66735975f4..db8cbfb795 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Popular/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -54,12 +54,8 @@ protected function _prepareCollection()
}
$collection = Mage::getResourceModel('reports/tag_collection')
- ->addSummary($storeId)
- ->addStatusFilter(Mage::getModel('tag/tag')->getApprovedStatus());
-
- if($storeId != '') {
- $collection->addStoreFilter($storeId);
- }
+ ->addPopularity($storeId)
+ ->addStatusFilter(Mage_Tag_Model_Tag::STATUS_APPROVED);
$this->setCollection($collection);
return parent::_prepareCollection();
@@ -81,22 +77,6 @@ protected function _prepareColumns()
'index' =>'popularity'
));
- $this->addColumn('uses', array(
- 'header' =>Mage::helper('reports')->__('Number Of Uses'),
- 'width' =>'50px',
- 'align' =>'right',
- 'sortable' =>false,
- 'index' =>'uses'
- ));
-
- $this->addColumn('historical_uses', array(
- 'header' =>Mage::helper('reports')->__('Number Of Historical Uses'),
- 'width' =>'50px',
- 'align' =>'right',
- 'sortable' =>false,
- 'index' =>'historical_uses'
- ));
-
$this->addColumn('action',
array(
'header' => Mage::helper('catalog')->__('Action'),
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product.php
index 9ab490de10..843a3075cd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail.php
index 9c9dc5f6f1..ea9ec44428 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail/Grid.php
index 6bf00a6de6..c76a221dcd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Detail/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -66,7 +66,7 @@ protected function _prepareColumns()
));
$this->addColumn('taged', array(
- 'header' =>Mage::helper('reports')->__('Tag use'),
+ 'header' =>Mage::helper('reports')->__('Tag Use'),
'index' =>'taged',
'align' => 'right'
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Grid.php
index 1134f06ebc..6d229143df 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Tag/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Wishlist.php b/app/code/core/Mage/Adminhtml/Block/Report/Wishlist.php
index 58945efcea..26ef52d9ad 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Wishlist.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Wishlist.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Wishlist/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Wishlist/Grid.php
index 06c67950cc..ae362eee8b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Report/Wishlist/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Report/Wishlist/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -94,7 +94,7 @@ protected function _prepareColumns()
));
$this->addColumn('num_deleted', array(
- 'header' =>Mage::helper('reports')->__('Number of times deleted'),
+ 'header' =>Mage::helper('reports')->__('Number of Times Deleted'),
'width' =>'50px',
'align' =>'right',
'sortable' =>false,
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Add.php b/app/code/core/Mage/Adminhtml/Block/Review/Add.php
index da4b643345..924dc0d9fa 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Add.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Add.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -53,6 +53,7 @@ public function __construct()
';
$this->_formInitScripts[] = '
+ //
';
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Add/Form.php b/app/code/core/Mage/Adminhtml/Block/Review/Add/Form.php
index 55145b2d79..cb357e9f37 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Add/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Add/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Edit.php b/app/code/core/Mage/Adminhtml/Block/Review/Edit.php
index 41dc475b1d..8e4c718440 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Review/Edit/Form.php
index c96f9abb08..ecb969cfb7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -121,7 +121,7 @@ protected function _prepareForm()
));
$fieldset->addField('title', 'text', array(
- 'label' => Mage::helper('review')->__('Summary of review'),
+ 'label' => Mage::helper('review')->__('Summary of Review'),
'required' => true,
'name' => 'title',
));
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Grid.php b/app/code/core/Mage/Adminhtml/Block/Review/Grid.php
index b2be8b61c9..3332e7eeab 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -225,7 +225,7 @@ protected function _prepareMassaction()
->toOptionArray();
array_unshift($statuses, array('label'=>'', 'value'=>''));
$this->getMassactionBlock()->addItem('update_status', array(
- 'label' => Mage::helper('review')->__('Update status'),
+ 'label' => Mage::helper('review')->__('Update Status'),
'url' => $this->getUrl('*/*/massUpdateStatus', array('ret' => Mage::registry('usePendingFilter') ? 'pending' : 'index')),
'additional' => array(
'status' => array(
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Grid/Filter/Type.php b/app/code/core/Mage/Adminhtml/Block/Review/Grid/Filter/Type.php
index 6e691b28b9..8458ee3466 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Grid/Filter/Type.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Grid/Filter/Type.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Grid/Renderer/Type.php b/app/code/core/Mage/Adminhtml/Block/Review/Grid/Renderer/Type.php
index e9eedfafd3..1f1f1f6391 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Grid/Renderer/Type.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Grid/Renderer/Type.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Main.php b/app/code/core/Mage/Adminhtml/Block/Review/Main.php
index b1890b0ef6..9f7cb36de4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Main.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Main.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -51,14 +51,14 @@ public function __construct()
if( Mage::registry('usePendingFilter') === true ) {
if ($customerName) {
- $this->_headerText = Mage::helper('review')->__('Pending reviews of customer `%s`', $customerName);
+ $this->_headerText = Mage::helper('review')->__('Pending Reviews of Customer `%s`', $customerName);
} else {
- $this->_headerText = Mage::helper('review')->__('Pending reviews');
+ $this->_headerText = Mage::helper('review')->__('Pending Reviews');
}
$this->_removeButton('add');
} else {
if ($customerName) {
- $this->_headerText = Mage::helper('review')->__('All reviews of customer `%s`', $customerName);
+ $this->_headerText = Mage::helper('review')->__('All Reviews of Customer `%s`', $customerName);
} else {
$this->_headerText = Mage::helper('review')->__('All Reviews');
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Product/Grid.php b/app/code/core/Mage/Adminhtml/Block/Review/Product/Grid.php
index 66d5b6743a..1c5e1aec99 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Product/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Product/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -56,7 +56,7 @@ protected function _prepareColumns()
if ((int)$this->getRequest()->getParam('store', 0)) {
$this->addColumn('custom_name', array(
- 'header' => Mage::helper('review')->__('Name In Store'),
+ 'header' => Mage::helper('review')->__('Name in Store'),
'index' => 'custom_name'
));
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Rating/Detailed.php b/app/code/core/Mage/Adminhtml/Block/Review/Rating/Detailed.php
index 9cc20f1b08..916019b949 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Rating/Detailed.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Rating/Detailed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Review/Rating/Summary.php b/app/code/core/Mage/Adminhtml/Block/Review/Rating/Summary.php
index f09f19b9bb..476f51921f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Review/Rating/Summary.php
+++ b/app/code/core/Mage/Adminhtml/Block/Review/Rating/Summary.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales.php b/app/code/core/Mage/Adminhtml/Block/Sales.php
index 4882ba27ca..a4775882a5 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo.php b/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo.php
index 04417d37d7..e64330acaf 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo/Grid.php
index 213c4b8f1a..73467aadaf 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Creditmemo/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -40,30 +40,30 @@ public function __construct()
$this->setDefaultDir('DESC');
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_creditmemo_grid_collection';
+ }
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_creditmemo_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('order_currency_code')
- ->addAttributeToSelect('state')
- ->addAttributeToSelect('grand_total')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->joinAttribute('order_increment_id', 'order/increment_id', 'order_id', null, 'left')
- ->joinAttribute('order_created_at', 'order/created_at', 'order_id', null, 'left')
- ;
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
$this->setCollection($collection);
return parent::_prepareCollection();
}
+
protected function _prepareColumns()
{
$this->addColumn('increment_id', array(
'header' => Mage::helper('sales')->__('Credit Memo #'),
'index' => 'increment_id',
- 'type' => 'number',
+ 'type' => 'text',
));
$this->addColumn('created_at', array(
@@ -84,14 +84,9 @@ protected function _prepareColumns()
'type' => 'datetime',
));
- $this->addColumn('billing_firstname', array(
- 'header' => Mage::helper('sales')->__('Bill to First name'),
- 'index' => 'billing_firstname',
- ));
-
- $this->addColumn('billing_lastname', array(
- 'header' => Mage::helper('sales')->__('Bill to Last name'),
- 'index' => 'billing_lastname',
+ $this->addColumn('billing_name', array(
+ 'header' => Mage::helper('sales')->__('Bill to Name'),
+ 'index' => 'billing_name',
));
$this->addColumn('state', array(
@@ -118,7 +113,7 @@ protected function _prepareColumns()
'actions' => array(
array(
'caption' => Mage::helper('sales')->__('View'),
- 'url' => array('base'=>'*/*/view'),
+ 'url' => array('base'=>'*/sales_creditmemo/view'),
'field' => 'creditmemo_id'
)
),
@@ -127,6 +122,9 @@ protected function _prepareColumns()
'is_system' => true
));
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
+
return parent::_prepareColumns();
}
@@ -134,10 +132,11 @@ protected function _prepareMassaction()
{
$this->setMassactionIdField('entity_id');
$this->getMassactionBlock()->setFormFieldName('creditmemo_ids');
+ $this->getMassactionBlock()->setUseSelectAll(false);
$this->getMassactionBlock()->addItem('pdfcreditmemos_order', array(
'label'=> Mage::helper('sales')->__('PDF Credit Memos'),
- 'url' => $this->getUrl('*/*/pdfcreditmemos'),
+ 'url' => $this->getUrl('*/sales_creditmemo/pdfcreditmemos'),
));
return $this;
@@ -145,7 +144,11 @@ protected function _prepareMassaction()
public function getRowUrl($row)
{
- return $this->getUrl('*/*/view',
+ if (!Mage::getSingleton('admin/session')->isAllowed('sales/order/creditmemo')) {
+ return false;
+ }
+
+ return $this->getUrl('*/sales_creditmemo/view',
array(
'creditmemo_id'=> $row->getId(),
)
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Invoice.php b/app/code/core/Mage/Adminhtml/Block/Sales/Invoice.php
index 4b04f96b19..4a07c1e57e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Invoice.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Invoice.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php
index 044e14a16d..5eea4b6a6e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,21 +42,19 @@ public function __construct()
$this->setSaveParametersInSession(true);
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_invoice_grid_collection';
+ }
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_invoice_collection')
- ->addAttributeToSelect('order_id')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('state')
- ->addAttributeToSelect('grand_total')
- ->addAttributeToSelect('order_currency_code')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->joinAttribute('order_increment_id', 'order/increment_id', 'order_id', null, 'left')
- ->joinAttribute('order_created_at', 'order/created_at', 'order_id', null, 'left')
- ;
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
$this->setCollection($collection);
return parent::_prepareCollection();
}
@@ -87,14 +85,9 @@ protected function _prepareColumns()
'type' => 'datetime',
));
- $this->addColumn('billing_firstname', array(
- 'header' => Mage::helper('sales')->__('Bill to First name'),
- 'index' => 'billing_firstname',
- ));
-
- $this->addColumn('billing_lastname', array(
- 'header' => Mage::helper('sales')->__('Bill to Last name'),
- 'index' => 'billing_lastname',
+ $this->addColumn('billing_name', array(
+ 'header' => Mage::helper('sales')->__('Bill to Name'),
+ 'index' => 'billing_name',
));
$this->addColumn('state', array(
@@ -121,7 +114,7 @@ protected function _prepareColumns()
'actions' => array(
array(
'caption' => Mage::helper('sales')->__('View'),
- 'url' => array('base'=>'*/*/view'),
+ 'url' => array('base'=>'*/sales_invoice/view'),
'field' => 'invoice_id'
)
),
@@ -130,6 +123,9 @@ protected function _prepareColumns()
'is_system' => true
));
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
+
return parent::_prepareColumns();
}
@@ -137,10 +133,11 @@ protected function _prepareMassaction()
{
$this->setMassactionIdField('entity_id');
$this->getMassactionBlock()->setFormFieldName('invoice_ids');
+ $this->getMassactionBlock()->setUseSelectAll(false);
$this->getMassactionBlock()->addItem('pdfinvoices_order', array(
'label'=> Mage::helper('sales')->__('PDF Invoices'),
- 'url' => $this->getUrl('*/*/pdfinvoices'),
+ 'url' => $this->getUrl('*/sales_invoice/pdfinvoices'),
));
return $this;
@@ -148,7 +145,11 @@ protected function _prepareMassaction()
public function getRowUrl($row)
{
- return $this->getUrl('*/*/view',
+ if (!Mage::getSingleton('admin/session')->isAllowed('sales/order/invoice')) {
+ return false;
+ }
+
+ return $this->getUrl('*/sales_invoice/view',
array(
'invoice_id'=> $row->getId(),
)
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php
index e48aefca75..50842d947b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -233,7 +233,7 @@ public function getOrder()
return $this->getItem()->getOrder();
}
- Mage::throwException(Mage::helper('sales')->__('Can\'t get order instance'));
+ Mage::throwException(Mage::helper('sales')->__('Cannot get order instance'));
}
/**
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php
index 64385f7599..84cc378fae 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -83,9 +83,9 @@ public function getCustomizedOptionValue($optionInfo)
public function getSku()
{
- if ($this->getItem()->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
+ /*if ($this->getItem()->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
return $this->getItem()->getProductOptionByCode('simple_sku');
- }
+ }*/
return $this->getItem()->getSku();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name.php
index cfc65c6cf9..944938257c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name/Grouped.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name/Grouped.php
index 766b8105c7..2497996d61 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name/Grouped.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Name/Grouped.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Qty.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Qty.php
index 76a2472342..fa230fa381 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Qty.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Qty.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Configurable.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Configurable.php
index 96ebf94e17..c1c3cc94f8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Configurable.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Configurable.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Default.php b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Default.php
index 50f92e0386..e9d6eecb81 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Default.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Items/Renderer/Default.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order.php
index a3f76415e2..59f25fd065 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Abstract.php
index da42107479..ee68b52878 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -49,7 +49,7 @@ public function getOrder()
if (Mage::registry('order')) {
return Mage::registry('order');
}
- Mage::throwException(Mage::helper('sales')->__('Can\'t get order instance'));
+ Mage::throwException(Mage::helper('sales')->__('Cannot get order instance'));
}
public function getPriceDataObject()
@@ -100,14 +100,13 @@ public function getOrderInfoData()
*/
public function displayShippingPriceInclTax($order)
{
- $baseTax = $order->getBaseShippingTaxAmount();
- $tax = $order->getShippingTaxAmount();
-
- return $this->displayPrices(
- $order->getBaseShippingAmount()+$baseTax,
- $order->getShippingAmount()+$tax,
- false,
- ' '
- );
+ $shipping = $order->getShippingInclTax();
+ if ($shipping) {
+ $baseShipping = $order->getBaseShippingInclTax();
+ } else {
+ $shipping = $order->getShippingAmount()+$order->getShippingTaxAmount();
+ $baseShipping = $order->getBaseShippingAmount()+$order->getBaseShippingTaxAmount();
+ }
+ return $this->displayPrices($baseShipping, $shipping, false, ' ');
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Comments/View.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Comments/View.php
index 40714d30f6..6ff93efd46 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Comments/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Comments/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -39,7 +39,7 @@ class Mage_Adminhtml_Block_Sales_Order_Comments_View extends Mage_Adminhtml_Bloc
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
- Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.'));
}
$this->setEntity($this->getParentBlock()->getSource());
parent::_beforeToHtml();
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create.php
index 03a7102baa..dfff5f4226 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Abstract.php
index a515686d7f..8c6d3ef840 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Address.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Address.php
index 38f5fb7e66..0ca121806b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Address.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Address.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method.php
index 2fa603ff52..b869482bf8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method/Form.php
index 76ee78d2b7..c217371b0c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Billing/Method/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Comment.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Comment.php
index d4590e83c5..2a2bcbd016 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Comment.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Comment.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons.php
index 53cc406657..8ca4b7b094 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons/Form.php
index 6ec8dbf41d..ee83d19112 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Coupons/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer.php
index d86496a96c..301c3bd2b3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -43,7 +43,7 @@ public function __construct()
public function getHeaderText()
{
- return Mage::helper('sales')->__('Please select a customer');
+ return Mage::helper('sales')->__('Please Select a Customer');
}
public function getButtonsHtml()
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer/Grid.php
index 708d5d0254..d8a73ca90f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Customer/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Data.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Data.php
index 04bbda3270..bf95bd7afd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Data.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Data.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form.php
index fbf69c4bad..6014f44cf9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Account.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Account.php
index 7532e828ec..932dd985da 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Account.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Account.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Address.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Address.php
index 52948e3e41..f4966cc9c9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Address.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Form/Address.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php
index 5c867f8cff..4598ca5ac4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage/Form.php
index 4e5df5909f..81308f7833 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Header.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Header.php
index 999cc935da..dd700ff6db 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Header.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Header.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items.php
index 1120cc6986..6aa72eced8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php
index c581a0e18b..a656dbce1b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Items/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -51,12 +51,14 @@ public function getItems()
$items = $this->getParentBlock()->getItems();
foreach ($items as $item) {
$stockItem = $item->getProduct()->getStockItem();
- $check = $stockItem->checkQuoteItemQty($item->getQty(), $item->getQty(), $item->getQty());
- $item->setMessage($check->getMessage());
- $item->setHasError($check->getHasError());
- if ($item->getProduct()->getStatus() == Mage_Catalog_Model_Product_Status::STATUS_DISABLED) {
- $item->setMessage(Mage::helper('adminhtml')->__('This product is currently disabled'));
- $item->setHasError(true);
+ if ($stockItem instanceof Mage_CatalogInventory_Model_Stock_Item) {
+ $check = $stockItem->checkQuoteItemQty($item->getQty(), $item->getQty(), $item->getQty());
+ $item->setMessage($check->getMessage());
+ $item->setHasError($check->getHasError());
+ if ($item->getProduct()->getStatus() == Mage_Catalog_Model_Product_Status::STATUS_DISABLED) {
+ $item->setMessage(Mage::helper('adminhtml')->__('This product is currently disabled.'));
+ $item->setHasError(true);
+ }
}
}
return $items;
@@ -79,7 +81,11 @@ public function getOriginalEditablePrice($item)
} elseif ($item->hasCustomPrice()) {
$result = $item->getCustomPrice()*1;
} else {
- $result = $item->getOriginalPrice()*1;
+ if (Mage::helper('tax')->priceIncludesTax($this->getStore())) {
+ $result = $item->getPriceInclTax()*1;
+ } else {
+ $result = $item->getOriginalPrice()*1;
+ }
}
return $result;
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Load.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Load.php
index 5ed16447f7..911b4575a6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Load.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Load.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -39,7 +39,7 @@ protected function _toHtml()
$result = array();
foreach ($this->getSortedChildren() as $name) {
if (!$block = $this->getChild($name)) {
- $result[$name] = Mage::helper('sales')->__('Invalid block: %s', $name);
+ $result[$name] = Mage::helper('sales')->__('Invalid block: %s.', $name);
} else {
$result[$name] = $block->toHtml();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Messages.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Messages.php
index eadeb06aa5..ade1e4608f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Messages.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Messages.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter.php
index f8e0eed241..94e65c3abe 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter/Form.php
index 96d853bcb0..8e7edf72c3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Newsletter/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search.php
index 75904613ea..5c36a2d216 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -43,7 +43,7 @@ public function __construct()
public function getHeaderText()
{
- return Mage::helper('sales')->__('Please select products to add');
+ return Mage::helper('sales')->__('Please Select Products to Add');
}
public function getButtonsHtml()
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid.php
index 354c67406e..b30c2c7d9c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -94,6 +94,7 @@ protected function _prepareCollection()
->addAttributeToSelect('name')
->addAttributeToSelect('sku')
->addAttributeToSelect('price')
+ ->addMinimalPrice()
->addAttributeToFilter('type_id', array_keys(
Mage::getConfig()->getNode('adminhtml/sales/order/create/available_product_types')->asArray()
))
@@ -139,7 +140,8 @@ protected function _prepareColumns()
'type' => 'currency',
'currency_code' => $this->getStore()->getCurrentCurrencyCode(),
'rate' => $this->getStore()->getBaseCurrency()->getRate($this->getStore()->getCurrentCurrencyCode()),
- 'index' => 'price'
+ 'index' => 'price',
+ 'renderer' => 'adminhtml/sales_order_create_search_grid_renderer_price'
));
$this->addColumn('in_products', array(
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Giftmessage.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Giftmessage.php
index 33ac68fcb3..147386ed7e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Giftmessage.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Giftmessage.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Price.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Price.php
new file mode 100644
index 0000000000..01e947f033
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Search/Grid/Renderer/Price.php
@@ -0,0 +1,50 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Order_Create_Search_Grid_Renderer_Price extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Price
+{
+ /**
+ * Render minimal price for downloadable products
+ *
+ * @param Varien_Object $row
+ * @return string
+ */
+ public function render(Varien_Object $row)
+ {
+ if ($row->getTypeId() == Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE) {
+ $row->setPrice($row->getMaxPrice());
+ }
+ return parent::render($row);
+ }
+
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Address.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Address.php
index 5d75fe4934..1a7ba5bd02 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Address.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Address.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method.php
index 96c710de25..2b1eaff9e4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method/Form.php
index cb80292815..09bb7d0775 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Shipping/Method/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar.php
index 07db49c21d..4edfa42576 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Abstract.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Abstract.php
index b8dcddcbac..1ce400fd6f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Abstract.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Abstract.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Cart.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Cart.php
index 49c3095366..7e623b5da1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Cart.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Cart.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Compared.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Compared.php
index c2712d5ff5..6da9cd0931 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Compared.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Compared.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,7 +44,7 @@ public function __construct()
public function getHeaderText()
{
- return Mage::helper('sales')->__('Products in Compare List');
+ return Mage::helper('sales')->__('Products in Comparison List');
}
/**
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pcompared.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pcompared.php
index 03d1f3a0dc..fa1cf1f55c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pcompared.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pcompared.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pviewed.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pviewed.php
index 733c61290e..3c8defc144 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pviewed.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Pviewed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php
index 3c93c5f515..cfe43406ca 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Reorder.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -46,7 +46,7 @@ public function __construct()
public function getHeaderText()
{
- return Mage::helper('sales')->__('Last ordered items');
+ return Mage::helper('sales')->__('Last Ordered Items');
}
/**
@@ -58,11 +58,10 @@ public function getLastOrder()
{
$storeIds = $this->getQuote()->getStore()->getWebsite()->getStoreIds();
$collection = Mage::getResourceModel('sales/order_collection')
- ->addAttributeToSelect('*')
- ->addAttributeToFilter('customer_id', $this->getCustomerId())
- ->addAttributeToFilter('store_id', array('in' => $storeIds))
- ->addAttributeToSort('created_at', 'desc')
- ->setPage(1, 1)
+ ->addFieldToFilter('customer_id', $this->getCustomerId())
+ ->addFieldToFilter('store_id', array('in' => $storeIds))
+ ->setOrder('created_at', 'desc')
+ ->setPageSize(1)
->load();
foreach ($collection as $order) {
return $order;
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Viewed.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Viewed.php
index cba8482125..daa6204a33 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Viewed.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Viewed.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Wishlist.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Wishlist.php
index 42f6459a69..95c6a02df1 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Wishlist.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Sidebar/Wishlist.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store.php
index 2266324ff0..62f1e0c858 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -43,6 +43,6 @@ public function __construct()
public function getHeaderText()
{
- return Mage::helper('sales')->__('Please select a store');
+ return Mage::helper('sales')->__('Please Select a Store');
}
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store/Select.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store/Select.php
index 867381253c..13f4a99080 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store/Select.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Store/Select.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals.php
index cd801669cb..c68231931b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Default.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Default.php
index b5e1c28342..331e358b7b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Default.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Default.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Discount.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Discount.php
index 1a84d3a16f..2f68a2ae7a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Discount.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Discount.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Grandtotal.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Grandtotal.php
index 107af083e9..1f1c27a94d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Grandtotal.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Grandtotal.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Shipping.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Shipping.php
index baac389f52..d596798076 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Shipping.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Shipping.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Subtotal.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Subtotal.php
index 4648386d43..a6183af62d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Subtotal.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Subtotal.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Table.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Table.php
index 4f711a9224..88dc9bee25 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Table.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Table.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Tax.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Tax.php
index 2270896301..1f02d5b629 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Tax.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Totals/Tax.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create.php
index a582bd744a..5fe056d260 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Adjustments.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Adjustments.php
index fb20eca7dc..803f8cf26e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Adjustments.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Adjustments.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Adminhtml_Block_Sales_Order_Creditmemo_Create_Adjustments extends Mage_Adminhtml_Block_Template
@@ -50,4 +50,38 @@ public function getSource()
{
return $this->_source;
}
+
+ /**
+ * Get credit memo shipping amount depend on configuration settings
+ * @return float
+ */
+ public function getShippingAmount()
+ {
+ $config = Mage::getSingleton('tax/config');
+ $source = $this->getSource();
+ if ($config->displaySalesShippingInclTax($source->getOrder()->getStoreId())) {
+ $shipping = $source->getBaseShippingInclTax();
+ } else {
+ $shipping = $source->getBaseShippingAmount();
+ }
+ return $shipping*1;
+ }
+
+ /**
+ * Get label for shipping total based on configuration settings
+ * @return string
+ */
+ public function getShippingLabel()
+ {
+ $config = Mage::getSingleton('tax/config');
+ $source = $this->getSource();
+ if ($config->displaySalesShippingInclTax($source->getOrder()->getStoreId())) {
+ $label = $this->helper('sales')->__('Refund Shipping (Incl. Tax)');
+ } elseif ($config->displaySalesShippingBoth($source->getOrder()->getStoreId())) {
+ $label = $this->helper('sales')->__('Refund Shipping (Excl. Tax)');
+ } else {
+ $label = $this->helper('sales')->__('Refund Shipping');
+ }
+ return $label;
+ }
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Form.php
index 2b495a5eac..f25668379c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Items.php
index 27a386819c..309cfd3aad 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Create/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Totals.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Totals.php
index e5c79d8799..bbebb8a5ef 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/Totals.php
@@ -1,79 +1,79 @@
-
- */
-class Mage_Adminhtml_Block_Sales_Order_Creditmemo_Totals extends Mage_Adminhtml_Block_Sales_Totals
-{
- protected $_creditmemo;
-
- public function getCreditmemo()
- {
- if ($this->_creditmemo === null) {
- if ($this->hasData('creditmemo')) {
- $this->_creditmemo = $this->_getData('creditmemo');
- } elseif (Mage::registry('current_creditmemo')) {
- $this->_creditmemo = Mage::registry('current_creditmemo');
- } elseif ($this->getParentBlock() && $this->getParentBlock()->getCreditmemo()) {
- $this->_creditmemo = $this->getParentBlock()->getCreditmemo();
- }
- }
- return $this->_creditmemo;
- }
-
- public function getSource()
- {
- return $this->getCreditmemo();
- }
-
- /**
- * Initialize creditmemo totals array
- *
- * @return Mage_Sales_Block_Order_Totals
- */
- protected function _initTotals()
- {
- parent::_initTotals();
- $this->addTotal(new Varien_Object(array(
- 'code' => 'adjustment_positive',
- 'value' => $this->getSource()->getAdjustmentFeePositive(),
- 'base_value'=> $this->getSource()->getBaseAdjustmentFeePositive(),
- 'label' => $this->helper('sales')->__('Adjustment Refund')
- )));
- $this->addTotal(new Varien_Object(array(
- 'code' => 'adjustment_negative',
- 'value' => $this->getSource()->getAdjustmentFeeNegative(),
- 'base_value'=> $this->getSource()->getBaseAdjustmentFeeNegative(),
- 'label' => $this->helper('sales')->__('Adjustment Fee')
- )));
- return $this;
- }
-}
+
+ */
+class Mage_Adminhtml_Block_Sales_Order_Creditmemo_Totals extends Mage_Adminhtml_Block_Sales_Totals
+{
+ protected $_creditmemo;
+
+ public function getCreditmemo()
+ {
+ if ($this->_creditmemo === null) {
+ if ($this->hasData('creditmemo')) {
+ $this->_creditmemo = $this->_getData('creditmemo');
+ } elseif (Mage::registry('current_creditmemo')) {
+ $this->_creditmemo = Mage::registry('current_creditmemo');
+ } elseif ($this->getParentBlock() && $this->getParentBlock()->getCreditmemo()) {
+ $this->_creditmemo = $this->getParentBlock()->getCreditmemo();
+ }
+ }
+ return $this->_creditmemo;
+ }
+
+ public function getSource()
+ {
+ return $this->getCreditmemo();
+ }
+
+ /**
+ * Initialize creditmemo totals array
+ *
+ * @return Mage_Sales_Block_Order_Totals
+ */
+ protected function _initTotals()
+ {
+ parent::_initTotals();
+ $this->addTotal(new Varien_Object(array(
+ 'code' => 'adjustment_positive',
+ 'value' => $this->getSource()->getAdjustmentPositive(),
+ 'base_value'=> $this->getSource()->getBaseAdjustmentPositive(),
+ 'label' => $this->helper('sales')->__('Adjustment Refund')
+ )));
+ $this->addTotal(new Varien_Object(array(
+ 'code' => 'adjustment_negative',
+ 'value' => $this->getSource()->getAdjustmentNegative(),
+ 'base_value'=> $this->getSource()->getBaseAdjustmentNegative(),
+ 'label' => $this->helper('sales')->__('Adjustment Fee')
+ )));
+ return $this;
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View.php
index 8835212f27..2492de9bd7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -114,19 +114,12 @@ public function getCreditmemo()
public function getHeaderText()
{
if ($this->getCreditmemo()->getEmailSent()) {
- $emailSent = Mage::helper('sales')->__('Credit Memo email sent');
+ $emailSent = Mage::helper('sales')->__('the credit memo email was sent');
}
else {
- $emailSent = Mage::helper('sales')->__('Credit Memo email not sent');
+ $emailSent = Mage::helper('sales')->__('the credit memo email is not sent');
}
-
- $header = Mage::helper('sales')->__('Credit Memo #%s | Date %s | Status %s (%s)',
- $this->getCreditmemo()->getIncrementId(),
- $this->formatDate($this->getCreditmemo()->getCreatedAtDate(), 'medium', true),
- $this->getCreditmemo()->getStateName(),
- $emailSent
- );
- return $header;
+ return Mage::helper('sales')->__('Credit Memo #%1$s | %3$s | %2$s (%4$s)', $this->getCreditmemo()->getIncrementId(), $this->formatDate($this->getCreditmemo()->getCreatedAtDate(), 'medium', true), $this->getCreditmemo()->getStateName(), $emailSent);
}
/**
@@ -207,6 +200,10 @@ public function getPrintUrl()
public function updateBackButtonUrl($flag)
{
if ($flag) {
+ if ($this->getCreditmemo()->getBackUrl()) {
+ return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getCreditmemo()->getBackUrl() . '\')');
+ }
+
return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getUrl('*/sales_creditmemo/') . '\')');
}
return $this;
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Comments.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Comments.php
index 1a43479583..b3fa868129 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Comments.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Comments.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Form.php
index 7d2d14024c..f8c675a488 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Items.php
index 934d4bf0d1..fb483cd94f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Creditmemo/View/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
index eb2ed0a0a7..6d245c267e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -44,22 +44,19 @@ public function __construct()
$this->setSaveParametersInSession(true);
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_grid_collection';
+ }
+
protected function _prepareCollection()
{
- // TODO: add full name logic
- // TODO: encapsulate this logic into collection
- $collection = Mage::getResourceModel('sales/order_collection')
- ->addAttributeToSelect('*')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
- ->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
- ->addExpressionAttributeToSelect('billing_name',
- 'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
- array('billing_firstname', 'billing_lastname'))
- ->addExpressionAttributeToSelect('shipping_name',
- 'CONCAT({{shipping_firstname}}, IFNULL(CONCAT(\' \', {{shipping_lastname}}), \'\'))',
- array('shipping_firstname', 'shipping_lastname'));
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
$this->setCollection($collection);
return parent::_prepareCollection();
}
@@ -76,7 +73,7 @@ protected function _prepareColumns()
if (!Mage::app()->isSingleStoreMode()) {
$this->addColumn('store_id', array(
- 'header' => Mage::helper('sales')->__('Purchased from (store)'),
+ 'header' => Mage::helper('sales')->__('Purchased From (Store)'),
'index' => 'store_id',
'type' => 'store',
'store_view'=> true,
@@ -91,29 +88,11 @@ protected function _prepareColumns()
'width' => '100px',
));
- /*$this->addColumn('billing_firstname', array(
- 'header' => Mage::helper('sales')->__('Bill to First name'),
- 'index' => 'billing_firstname',
- ));
-
- $this->addColumn('billing_lastname', array(
- 'header' => Mage::helper('sales')->__('Bill to Last name'),
- 'index' => 'billing_lastname',
- ));*/
$this->addColumn('billing_name', array(
'header' => Mage::helper('sales')->__('Bill to Name'),
'index' => 'billing_name',
));
- /*$this->addColumn('shipping_firstname', array(
- 'header' => Mage::helper('sales')->__('Ship to First name'),
- 'index' => 'shipping_firstname',
- ));
-
- $this->addColumn('shipping_lastname', array(
- 'header' => Mage::helper('sales')->__('Ship to Last name'),
- 'index' => 'shipping_lastname',
- ));*/
$this->addColumn('shipping_name', array(
'header' => Mage::helper('sales')->__('Ship to Name'),
'index' => 'shipping_name',
@@ -151,7 +130,7 @@ protected function _prepareColumns()
'actions' => array(
array(
'caption' => Mage::helper('sales')->__('View'),
- 'url' => array('base'=>'*/*/view'),
+ 'url' => array('base'=>'*/sales_order/view'),
'field' => 'order_id'
)
),
@@ -163,6 +142,9 @@ protected function _prepareColumns()
}
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
+
return parent::_prepareColumns();
}
@@ -170,91 +152,56 @@ protected function _prepareMassaction()
{
$this->setMassactionIdField('entity_id');
$this->getMassactionBlock()->setFormFieldName('order_ids');
+ $this->getMassactionBlock()->setUseSelectAll(false);
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) {
$this->getMassactionBlock()->addItem('cancel_order', array(
'label'=> Mage::helper('sales')->__('Cancel'),
- 'url' => $this->getUrl('*/*/massCancel'),
+ 'url' => $this->getUrl('*/sales_order/massCancel'),
));
}
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) {
$this->getMassactionBlock()->addItem('hold_order', array(
'label'=> Mage::helper('sales')->__('Hold'),
- 'url' => $this->getUrl('*/*/massHold'),
+ 'url' => $this->getUrl('*/sales_order/massHold'),
));
}
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) {
$this->getMassactionBlock()->addItem('unhold_order', array(
'label'=> Mage::helper('sales')->__('Unhold'),
- 'url' => $this->getUrl('*/*/massUnhold'),
+ 'url' => $this->getUrl('*/sales_order/massUnhold'),
));
}
$this->getMassactionBlock()->addItem('pdfinvoices_order', array(
'label'=> Mage::helper('sales')->__('Print Invoices'),
- 'url' => $this->getUrl('*/*/pdfinvoices'),
+ 'url' => $this->getUrl('*/sales_order/pdfinvoices'),
));
$this->getMassactionBlock()->addItem('pdfshipments_order', array(
'label'=> Mage::helper('sales')->__('Print Packingslips'),
- 'url' => $this->getUrl('*/*/pdfshipments'),
+ 'url' => $this->getUrl('*/sales_order/pdfshipments'),
));
$this->getMassactionBlock()->addItem('pdfcreditmemos_order', array(
'label'=> Mage::helper('sales')->__('Print Credit Memos'),
- 'url' => $this->getUrl('*/*/pdfcreditmemos'),
+ 'url' => $this->getUrl('*/sales_order/pdfcreditmemos'),
));
$this->getMassactionBlock()->addItem('pdfdocs_order', array(
'label'=> Mage::helper('sales')->__('Print All'),
- 'url' => $this->getUrl('*/*/pdfdocs'),
+ 'url' => $this->getUrl('*/sales_order/pdfdocs'),
));
-// $statuses = Mage::getSingleton('sales/order_config')->getStatuses();
-// array_unshift($statuses, array('value'=>'', 'label'=>''));
-// $this->getMassactionBlock()->addItem('change_status', array(
-// 'label'=> Mage::helper('sales')->__('Change Status'),
-// 'url' => $this->getUrl('*/*/massStatus'),
-// 'additional' => array(
-// 'visibility' => array(
-// 'name' => 'status',
-// 'type' => 'select',
-// 'class' => 'required-entry',
-// 'label' => Mage::helper('sales')->__('New Status'),
-// 'values' => $statuses
-// )
-// )
-// ));
-
-// $prints = array(
-// 'empty' => array('value'=>'', 'label'=>''),
-// 'order' => Mage::helper('sales')->__('Orders'),
-// 'invoice' => Mage::helper('sales')->__('Invoices'),
-// 'shipment' => Mage::helper('sales')->__('Shipments'),
-// );
-// $this->getMassactionBlock()->addItem('print', array(
-// 'label'=> Mage::helper('sales')->__('Print'),
-// 'url' => $this->getUrl('*/*/massPrint'),
-// 'additional' => array(
-// 'visibility' => array(
-// 'name' => 'document',
-// 'type' => 'select',
-// 'class' => 'required-entry',
-// 'label' => Mage::helper('sales')->__('Document'),
-// 'values' => $prints
-// )
-// )
-// ));
-
return $this;
}
public function getRowUrl($row)
{
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
- return $this->getUrl('*/*/view', array('order_id' => $row->getId()));
+ return $this->getUrl('*/sales_order/view', array('order_id' => $row->getId()));
}
return false;
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create.php
index ffa1920c51..32b85a3774 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Form.php
index 2f7df5d036..300af78603 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Items.php
index 4e287c00d8..4021893a76 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Tracking.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Tracking.php
index 779e80cce7..40aebffa14 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Tracking.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Create/Tracking.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Totals.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Totals.php
index 5a1f0fbde0..bc269f8512 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View.php
index b0cd4b4710..6db4cdf727 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -76,8 +76,8 @@ public function __construct()
|| !$this->getInvoice()->getIsUsedForRefund())
{
$this->_addButton('capture', array( // capture?
- 'label' => Mage::helper('sales')->__('Credit Memo...'),
- 'class' => 'save',
+ 'label' => Mage::helper('sales')->__('Credit Memo'),
+ 'class' => 'go',
'onclick' => 'setLocation(\''.$this->getCreditMemoUrl().'\')'
)
);
@@ -125,23 +125,12 @@ public function getInvoice()
public function getHeaderText()
{
if ($this->getInvoice()->getEmailSent()) {
- $emailSent = Mage::helper('sales')->__('Invoice email sent');
+ $emailSent = Mage::helper('sales')->__('the invoice email was sent');
}
else {
- $emailSent = Mage::helper('sales')->__('Invoice email not sent');
+ $emailSent = Mage::helper('sales')->__('the invoice email is not sent');
}
-
- $header = Mage::helper('sales')->__('Invoice #%s | %s (%s)',
- $this->getInvoice()->getIncrementId(),
- $this->getInvoice()->getStateName(),
- $emailSent
- );
- /*$header = Mage::helper('sales')->__('Invoice #%s | Order Date: %s | Customer Name: %s',
- $this->getInvoice()->getIncrementId(),
- $this->formatDate($this->getInvoice()->getOrder()->getCreatedAt(), 'medium', true),
- $this->getInvoice()->getOrder()->getCustomerName()
- );*/
- return $header;
+ return Mage::helper('sales')->__('Invoice #%1$s | %2$s | %4$s (%3$s)', $this->getInvoice()->getIncrementId(), $this->getInvoice()->getStateName(), $emailSent, $this->formatDate($this->getInvoice()->getCreatedAtDate(), 'medium', true));
}
public function getBackUrl()
@@ -195,6 +184,9 @@ public function getPrintUrl()
public function updateBackButtonUrl($flag)
{
if ($flag) {
+ if ($this->getInvoice()->getBackUrl()) {
+ return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getInvoice()->getBackUrl() . '\')');
+ }
return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getUrl('*/sales_invoice/') . '\')');
}
return $this;
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Comments.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Comments.php
index 95c72c673c..215a378263 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Comments.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Comments.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Form.php
index e106f53803..743cbbed9e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Items.php
index 7f1c602e4c..2e5d87de0e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Invoice/View/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Payment.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Payment.php
index 332d6983e2..b3ebc1fedb 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Payment.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Payment.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -39,7 +39,7 @@ class Mage_Adminhtml_Block_Sales_Order_Payment extends Mage_Adminhtml_Block_Temp
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
- Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block'));
}
$this->setPayment($this->getParentBlock()->getOrder()->getPayment());
parent::_beforeToHtml();
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create.php
index 0d97ec1f4b..b57e65d0dd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Form.php
index 8acbfc5f9f..b20de86130 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php
index ab33987c4c..dd913f9a8b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Tracking.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Tracking.php
index d3470d025c..ac45fac0b6 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Tracking.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Create/Tracking.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Tracking/Info.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Tracking/Info.php
index 18a98ad22d..7e1067d0d0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Tracking/Info.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/Tracking/Info.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View.php
index a5bc1465be..8e5b80e4ae 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -76,14 +76,12 @@ public function getShipment()
public function getHeaderText()
{
if ($this->getShipment()->getEmailSent()) {
- $emailSent = Mage::helper('sales')->__('Shipment email sent');
+ $emailSent = Mage::helper('sales')->__('the shipment email was sent');
}
else {
- $emailSent = Mage::helper('sales')->__('Shipment email not sent');
+ $emailSent = Mage::helper('sales')->__('the shipment email is not sent');
}
-
- $header = Mage::helper('sales')->__('Shipment #%s (%s)', $this->getShipment()->getIncrementId(), $emailSent);
- return $header;
+ return Mage::helper('sales')->__('Shipment #%1$s | %3$s (%2$s)', $this->getShipment()->getIncrementId(), $emailSent, $this->formatDate($this->getShipment()->getCreatedAtDate(), 'medium', true));
}
public function getBackUrl()
@@ -111,6 +109,9 @@ public function getPrintUrl()
public function updateBackButtonUrl($flag)
{
if ($flag) {
+ if ($this->getShipment()->getBackUrl()) {
+ return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getShipment()->getBackUrl() . '\')');
+ }
return $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getUrl('*/sales_shipment/') . '\')');
}
return $this;
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Comments.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Comments.php
index af99615eb6..c1bf261698 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Comments.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Comments.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Form.php
index 49629e346e..3f8c34f69d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Items.php
index f0bb3cbabf..20fb4a3322 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Tracking.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Tracking.php
index 2c186a4071..b0462a54e0 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Tracking.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Shipment/View/Tracking.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totalbar.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totalbar.php
index 5aca2d17bd..eaa9e530f9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totalbar.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totalbar.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,7 +42,7 @@ class Mage_Adminhtml_Block_Sales_Order_Totalbar extends Mage_Adminhtml_Block_Sal
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
- Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.'));
}
$this->setOrder($this->getParentBlock()->getOrder());
$this->setSource($this->getParentBlock()->getSource());
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals.php
index 7f48e438ec..fab5c6345b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Item.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Item.php
index 12005fdfd9..ef39153ddf 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Item.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Item.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Tax.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Tax.php
index e939e38117..074ca6172d 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Tax.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/Totals/Tax.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php
index 696c3b9955..90f5fd4b89 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -50,20 +50,20 @@ public function __construct()
if ($this->_isAllowedAction('edit') && $order->canEdit()) {
$onclickJs = 'deleteConfirm(\''
- . Mage::helper('sales')->__('Are you sure? This order will be cancelled and a new one will be created instead')
+ . Mage::helper('sales')->__('Are you sure? This order will be canceled and a new one will be created instead')
. '\', \'' . $this->getEditUrl() . '\');';
$this->_addButton('order_edit', array(
'label' => Mage::helper('sales')->__('Edit'),
'onclick' => $onclickJs,
));
// see if order has non-editable products as items
- $nonEditableTypes = array_keys(Mage::getResourceSingleton('sales/order')->aggregateProductsByTypes(
+ $nonEditableTypes = array_keys($this->getOrder()->getResource()->aggregateProductsByTypes(
$order->getId(), array_keys(Mage::getConfig()->getNode('adminhtml/sales/order/create/available_product_types')->asArray()), false
));
if ($nonEditableTypes) {
$this->_updateButton('order_edit', 'onclick',
'if (!confirm(\'' .
- Mage::helper('sales')->__('This order contains (%s) items and therefore cannot be edited through the admin interface at this time, if you wish to continue editing the (%s) items will be removed, the order will be cancelled and a new order will be placed', implode(', ', $nonEditableTypes), implode(', ', $nonEditableTypes)) . '\')) return false;' . $onclickJs
+ Mage::helper('sales')->__('This order contains (%s) items and therefore cannot be edited through the admin interface at this time, if you wish to continue editing the (%s) items will be removed, the order will be canceled and a new order will be placed.', implode(', ', $nonEditableTypes), implode(', ', $nonEditableTypes)) . '\')) return false;' . $onclickJs
);
}
}
@@ -85,9 +85,11 @@ public function __construct()
}
if ($this->_isAllowedAction('creditmemo') && $order->canCreditmemo()) {
+ $message = Mage::helper('sales')->__('This will create an offline refund. To create an online refund, open an invoice and create credit memo for it. Do you wish to proceed?');
$this->_addButton('order_creditmemo', array(
- 'label' => Mage::helper('sales')->__('Credit Memo...'),
- 'onclick' => 'setLocation(\'' . $this->getCreditmemoUrl() . '\')',
+ 'label' => Mage::helper('sales')->__('Credit Memo'),
+ 'onclick' => "confirmSetLocation('{$message}', '{$this->getCreditmemoUrl()}')",
+ 'class' => 'go'
));
}
@@ -114,28 +116,52 @@ public function __construct()
));
}
+ if ($this->_isAllowedAction('review_payment')) {
+ if ($order->canReviewPayment()) {
+ $message = Mage::helper('sales')->__('Are you sure you want to accept this payment?');
+ $this->_addButton('accept_payment', array(
+ 'label' => Mage::helper('sales')->__('Accept Payment'),
+ 'onclick' => "confirmSetLocation('{$message}', '{$this->getReviewPaymentUrl('accept')}')",
+ ));
+ $message = Mage::helper('sales')->__('Are you sure you want to deny this payment?');
+ $this->_addButton('deny_payment', array(
+ 'label' => Mage::helper('sales')->__('Deny Payment'),
+ 'onclick' => "confirmSetLocation('{$message}', '{$this->getReviewPaymentUrl('deny')}')",
+ ));
+ }
+ if ($order->canFetchPaymentReviewUpdate()) {
+ $this->_addButton('get_review_payment_update', array(
+ 'label' => Mage::helper('sales')->__('Get Payment Update'),
+ 'onclick' => 'setLocation(\'' . $this->getReviewPaymentUrl('update') . '\')',
+ ));
+ }
+ }
+
if ($this->_isAllowedAction('invoice') && $order->canInvoice()) {
$_label = $order->getForcedDoShipmentWithInvoice() ?
- Mage::helper('sales')->__('Invoice and Ship...') :
- Mage::helper('sales')->__('Invoice...');
+ Mage::helper('sales')->__('Invoice and Ship') :
+ Mage::helper('sales')->__('Invoice');
$this->_addButton('order_invoice', array(
'label' => $_label,
'onclick' => 'setLocation(\'' . $this->getInvoiceUrl() . '\')',
+ 'class' => 'go'
));
}
if ($this->_isAllowedAction('ship') && $order->canShip()
&& !$order->getForcedDoShipmentWithInvoice()) {
$this->_addButton('order_ship', array(
- 'label' => Mage::helper('sales')->__('Ship...'),
+ 'label' => Mage::helper('sales')->__('Ship'),
'onclick' => 'setLocation(\'' . $this->getShipUrl() . '\')',
+ 'class' => 'go'
));
}
if ($this->_isAllowedAction('reorder') && $order->canReorder()) {
$this->_addButton('order_reorder', array(
- 'label' => Mage::helper('sales')->__('Reorder...'),
+ 'label' => Mage::helper('sales')->__('Reorder'),
'onclick' => 'setLocation(\'' . $this->getReorderUrl() . '\')',
+ 'class' => 'go'
));
}
}
@@ -167,12 +193,7 @@ public function getHeaderText()
} else {
$_extOrderId = '';
}
- $text = Mage::helper('sales')->__('Order # %s %s| Order Date %s',
- $this->getOrder()->getRealOrderId(),
- $_extOrderId,
- $this->formatDate($this->getOrder()->getCreatedAtDate(), 'medium', true)
- );
- return $text;
+ return Mage::helper('sales')->__('Order # %s %s | %s', $this->getOrder()->getRealOrderId(), $_extOrderId, $this->formatDate($this->getOrder()->getCreatedAtDate(), 'medium', true));
}
public function getUrl($params='', $params2=array())
@@ -243,4 +264,48 @@ protected function _isAllowedAction($action)
{
return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/' . $action);
}
+
+ /**
+ * Return back url for view grid
+ *
+ * @return string
+ */
+ public function getBackUrl()
+ {
+ if ($this->getOrder()->getBackUrl()) {
+ return $this->getOrder()->getBackUrl();
+ }
+
+ return $this->getUrl('*/*/');
+ }
+
+ public function getReviewPaymentUrl($action)
+ {
+ return $this->getUrl('*/*/reviewPayment', array('action' => $action));
+ }
+//
+// /**
+// * Return URL for accept payment action
+// *
+// * @return string
+// */
+// public function getAcceptPaymentUrl()
+// {
+// return $this->getUrl('*/*/reviewPayment', array('action' => 'accept'));
+// }
+//
+// /**
+// * Return URL for deny payment action
+// *
+// * @return string
+// */
+// public function getDenyPaymentUrl()
+// {
+// return $this->getUrl('*/*/reviewPayment', array('action' => 'deny'));
+// }
+//
+// public function getPaymentReviewUpdateUrl()
+// {
+// return $this->getUrl('*/*/reviewPaymentUpdate');
+// }
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Form.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Form.php
index de8e6a27c7..f61e93c109 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php
index 89010e33a1..ebd13e3409 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php
index 9a4f7e49b9..e11d37f1fd 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php
index 15a1426c69..ec7098304f 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -39,7 +39,7 @@ class Mage_Adminhtml_Block_Sales_Order_View_Info extends Mage_Adminhtml_Block_Sa
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
- Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block.'));
}
$this->setOrder($this->getParentBlock()->getOrder());
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items.php
index 053e8cf855..528938381b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -39,7 +39,7 @@ class Mage_Adminhtml_Block_Sales_Order_View_Items extends Mage_Adminhtml_Block_S
protected function _beforeToHtml()
{
if (!$this->getParentBlock()) {
- Mage::throwException(Mage::helper('adminhtml')->__('Invalid parrent block for this block'));
+ Mage::throwException(Mage::helper('adminhtml')->__('Invalid parent block for this block'));
}
$this->setOrder($this->getParentBlock()->getOrder());
parent::_beforeToHtml();
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php
index 4530939f6c..6d6f2efd78 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Messages.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Messages.php
index baf9d463c0..9071846d52 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Messages.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Messages.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -45,9 +45,6 @@ public function _prepareLayout()
* Check customer existing
*/
$customer = Mage::getModel('customer/customer')->load($this->_getOrder()->getCustomerId());
- if (!$customer->getId()) {
- //$this->addNotice(Mage::helper('sales')->__(' The customer doesn\'t exist in the system anymore'));
- }
/**
* Check Item products existing
@@ -57,17 +54,6 @@ public function _prepareLayout()
$productIds[] = $item->getProductId();
}
-// $productCollection = Mage::getModel('catalog/product')->getCollection()
-// ->addIdFilter($productIds)
-// ->load();
-//
-// foreach ($this->_getOrder()->getAllItems() as $item) {
-// if (!$productCollection->getItemById($item->getProductId())) {
-// /*$this->addNotice(
-// Mage::helper('sales')->__('The item %s (SKU %s) doesn\'t exist in the catalog anymore', $item->getName(), $item->getSku())
-// );*/
-// }
-// }
return parent::_prepareLayout();
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Creditmemos.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Creditmemos.php
index 5d63db45fd..2e6c85971e 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Creditmemos.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Creditmemos.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,23 +42,30 @@ public function __construct()
$this->setUseAjax(true);
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_creditmemo_grid_collection';
+ }
+
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_creditmemo_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('order_currency_code')
- ->addAttributeToSelect('store_currency_code')
- ->addAttributeToSelect('base_currency_code')
- ->addAttributeToSelect('state')
- ->addAttributeToSelect('grand_total')
- ->addAttributeToSelect('base_grand_total')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->addExpressionAttributeToSelect('billing_name',
- 'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
- array('billing_firstname', 'billing_lastname'))
+ $collection = Mage::getResourceModel($this->_getCollectionClass())
+ ->addFieldToSelect('entity_id')
+ ->addFieldToSelect('created_at')
+ ->addFieldToSelect('increment_id')
+ ->addFieldToSelect('order_currency_code')
+ ->addFieldToSelect('store_currency_code')
+ ->addFieldToSelect('base_currency_code')
+ ->addFieldToSelect('state')
+ ->addFieldToSelect('grand_total')
+ ->addFieldToSelect('base_grand_total')
+ ->addFieldToSelect('billing_name')
->setOrderFilter($this->getOrder())
;
$this->setCollection($collection);
@@ -73,15 +80,6 @@ protected function _prepareColumns()
'index' => 'increment_id',
));
- /*$this->addColumn('billing_firstname', array(
- 'header' => Mage::helper('sales')->__('Bill to First name'),
- 'index' => 'billing_firstname',
- ));
-
- $this->addColumn('billing_lastname', array(
- 'header' => Mage::helper('sales')->__('Bill to Last name'),
- 'index' => 'billing_lastname',
- ));*/
$this->addColumn('billing_name', array(
'header' => Mage::helper('sales')->__('Bill to Name'),
'index' => 'billing_name',
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php
index 668fc41155..efa07d07f9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/History.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -72,12 +72,12 @@ public function getFullHistory()
foreach ($order->getCreditmemosCollection() as $_memo){
$history[$_memo->getEntityId()] =
- $this->_prepareHistoryItem($this->__('Credit Memo #%s created', $_memo->getIncrementId()),
+ $this->_prepareHistoryItem($this->__('Credit memo #%s created', $_memo->getIncrementId()),
$_memo->getEmailSent(), $_memo->getCreatedAtDate());
foreach ($_memo->getCommentsCollection() as $_comment){
$history[$_comment->getEntityId()] =
- $this->_prepareHistoryItem($this->__('Credit Memo #%s comment added', $_memo->getIncrementId()),
+ $this->_prepareHistoryItem($this->__('Credit memo #%s comment added', $_memo->getIncrementId()),
$_comment->getIsCustomerNotified(), $_comment->getCreatedAtDate(), $_comment->getComment());
}
}
@@ -139,7 +139,7 @@ public function getItemCreatedAt(array $item, $dateType = 'date', $format = 'med
*/
public function getItemTitle(array $item)
{
- return (isset($item['title']) ? $this->htmlEscape($item['title']) : '');
+ return (isset($item['title']) ? $this->escapeHtml($item['title']) : '');
}
/**
@@ -162,7 +162,8 @@ public function isItemNotified(array $item, $isSimpleCheck = true)
*/
public function getItemComment(array $item)
{
- return (isset($item['comment']) ? $this->htmlEscape($item['comment']) : '');
+ $allowedTags = array('b','br','strong','i','u');
+ return (isset($item['comment']) ? $this->escapeHtml($item['comment'], $allowedTags) : '');
}
/**
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php
index 98521ca3bf..bd71a3b9db 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Info.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Invoices.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Invoices.php
index 712eb53b38..79c38c8a81 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Invoices.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Invoices.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,24 +42,30 @@ public function __construct()
$this->setUseAjax(true);
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_invoice_grid_collection';
+ }
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_invoice_collection')
- ->addAttributeToSelect('order_id')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('state')
- ->addAttributeToSelect('grand_total')
- ->addAttributeToSelect('base_grand_total')
- ->addAttributeToSelect('store_currency_code')
- ->addAttributeToSelect('base_currency_code')
- ->addAttributeToSelect('order_currency_code')
- ->joinAttribute('billing_firstname', 'order_address/firstname', 'billing_address_id', null, 'left')
- ->joinAttribute('billing_lastname', 'order_address/lastname', 'billing_address_id', null, 'left')
- ->addExpressionAttributeToSelect('billing_name',
- 'CONCAT({{billing_firstname}}, " ", {{billing_lastname}})',
- array('billing_firstname', 'billing_lastname'))
+ $collection = Mage::getResourceModel($this->_getCollectionClass())
+ ->addFieldToSelect('entity_id')
+ ->addFieldToSelect('created_at')
+ ->addFieldToSelect('order_id')
+ ->addFieldToSelect('increment_id')
+ ->addFieldToSelect('state')
+ ->addFieldToSelect('grand_total')
+ ->addFieldToSelect('base_grand_total')
+ ->addFieldToSelect('store_currency_code')
+ ->addFieldToSelect('base_currency_code')
+ ->addFieldToSelect('order_currency_code')
+ ->addFieldToSelect('billing_name')
->setOrderFilter($this->getOrder())
;
$this->setCollection($collection);
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Shipments.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Shipments.php
index 284a29e404..f8ce60261c 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Shipments.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Shipments.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -42,18 +42,24 @@ public function __construct()
$this->setUseAjax(true);
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_shipment_grid_collection';
+ }
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_shipment_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('total_qty')
- ->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
- ->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
- ->addExpressionAttributeToSelect('shipping_name',
- 'CONCAT({{shipping_firstname}}, " ", {{shipping_lastname}})',
- array('shipping_firstname', 'shipping_lastname'))
+ $collection = Mage::getResourceModel($this->_getCollectionClass())
+ ->addFieldToSelect('entity_id')
+ ->addFieldToSelect('created_at')
+ ->addFieldToSelect('increment_id')
+ ->addFieldToSelect('total_qty')
+ ->addFieldToSelect('shipping_name')
->setOrderFilter($this->getOrder())
;
$this->setCollection($collection);
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Transactions.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Transactions.php
new file mode 100644
index 0000000000..23df4b038b
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tab/Transactions.php
@@ -0,0 +1,98 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Order_View_Tab_Transactions
+ extends Mage_Adminhtml_Block_Sales_Transactions_Grid
+ implements Mage_Adminhtml_Block_Widget_Tab_Interface
+{
+
+ /**
+ * Retrieve grid url
+ *
+ * @return string
+ */
+ public function getGridUrl()
+ {
+ return $this->getUrl('*/sales_order/transactions', array('_current' => true));
+ }
+
+ /**
+ * Retrieve grid row url
+ *
+ * @return string
+ */
+ public function getRowUrl($item)
+ {
+ return $this->getUrl('*/sales_transactions/view', array('_current' => true, 'txn_id' => $item->getId()));
+ }
+
+ /**
+ * Retrieve tab label
+ *
+ * @return string
+ */
+ public function getTabLabel()
+ {
+ return Mage::helper('sales')->__('Transactions');
+ }
+
+ /**
+ * Retrieve tab title
+ *
+ * @return string
+ */
+ public function getTabTitle()
+ {
+ return Mage::helper('sales')->__('Transactions');
+ }
+
+ /**
+ * Check whether can show tab
+ *
+ * @return bool
+ */
+ public function canShowTab()
+ {
+ return true;
+ }
+
+ /**
+ * Check whether tab is hidden
+ *
+ * @return bool
+ */
+ public function isHidden()
+ {
+ return !Mage::getSingleton('admin/session')->isAllowed('sales/transactions/fetch');
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tabs.php b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tabs.php
index 9b8f848839..8153a940b9 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tabs.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Tabs.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -49,7 +49,7 @@ public function getOrder()
if (Mage::registry('order')) {
return Mage::registry('order');
}
- Mage::throwException(Mage::helper('sales')->__('Can\'t get order instance'));
+ Mage::throwException(Mage::helper('sales')->__('Cannot get the order instance.'));
}
public function __construct()
@@ -60,46 +60,4 @@ public function __construct()
$this->setTitle(Mage::helper('sales')->__('Order View'));
}
- protected function _beforeToHtml()
- {
-// $this->addTab('order_info', array(
-// 'label' => Mage::helper('sales')->__('Information'),
-// 'title' => Mage::helper('sales')->__('Order Information'),
-// 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_info')->toHtml(),
-// 'active' => true
-// ));
-//
-// $this->addTab('order_invoices', array(
-// 'label' => Mage::helper('catalogrule')->__('Invoices'),
-// 'title' => Mage::helper('catalogrule')->__('Order Invoices'),
-// 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_invoices')->toHtml(),
-// ));
-//
-// $this->addTab('order_creditmemos', array(
-// 'label' => Mage::helper('catalogrule')->__('Credit Memos'),
-// 'title' => Mage::helper('catalogrule')->__('Order Credit Memos'),
-// 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_creditmemos')->toHtml(),
-// ));
-//
-// if (!$this->getOrder()->getIsVirtual()) {
-// $this->addTab('order_shipments', array(
-// 'label' => Mage::helper('catalogrule')->__('Shipments'),
-// 'title' => Mage::helper('catalogrule')->__('Order Shipments'),
-// 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_shipments')->toHtml(),
-// ));
-// }
-//
-// /*$this->addTab('order_giftmessages', array(
-// 'label' => Mage::helper('catalogrule')->__('Gift Messages'),
-// 'title' => Mage::helper('catalogrule')->__('Order Gift Messages'),
-// 'content' => 'Gift Messages',
-// ));*/
-//
-// $this->addTab('order_history', array(
-// 'label' => Mage::helper('catalogrule')->__('Comments History'),
-// 'title' => Mage::helper('catalogrule')->__('Order History'),
-// 'content' => $this->getLayout()->createBlock('adminhtml/sales_order_view_tab_history')->toHtml(),
-// ));
- return parent::_beforeToHtml();
- }
}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Reorder/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Sales/Reorder/Renderer/Action.php
index 44867711a7..9814512bb3 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Reorder/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Reorder/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Shipment.php b/app/code/core/Mage/Adminhtml/Block/Sales/Shipment.php
index 0cfd2386b4..8e1c3e42e7 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Shipment.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Shipment.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Shipment/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Shipment/Grid.php
index e27591f8fe..c5dbcc7998 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Shipment/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Shipment/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -40,18 +40,19 @@ public function __construct()
$this->setDefaultDir('DESC');
}
+ /**
+ * Retrieve collection class
+ *
+ * @return string
+ */
+ protected function _getCollectionClass()
+ {
+ return 'sales/order_shipment_grid_collection';
+ }
+
protected function _prepareCollection()
{
- //TODO: add full name logic
- $collection = Mage::getResourceModel('sales/order_shipment_collection')
- ->addAttributeToSelect('increment_id')
- ->addAttributeToSelect('created_at')
- ->addAttributeToSelect('total_qty')
- ->joinAttribute('shipping_firstname', 'order_address/firstname', 'shipping_address_id', null, 'left')
- ->joinAttribute('shipping_lastname', 'order_address/lastname', 'shipping_address_id', null, 'left')
- ->joinAttribute('order_increment_id', 'order/increment_id', 'order_id', null, 'left')
- ->joinAttribute('order_created_at', 'order/created_at', 'order_id', null, 'left')
- ;
+ $collection = Mage::getResourceModel($this->_getCollectionClass());
$this->setCollection($collection);
return parent::_prepareCollection();
}
@@ -61,7 +62,7 @@ protected function _prepareColumns()
$this->addColumn('increment_id', array(
'header' => Mage::helper('sales')->__('Shipment #'),
'index' => 'increment_id',
- 'type' => 'number',
+ 'type' => 'text',
));
$this->addColumn('created_at', array(
@@ -82,14 +83,9 @@ protected function _prepareColumns()
'type' => 'datetime',
));
- $this->addColumn('shipping_firstname', array(
- 'header' => Mage::helper('sales')->__('Ship to First name'),
- 'index' => 'shipping_firstname',
- ));
-
- $this->addColumn('shipping_lastname', array(
- 'header' => Mage::helper('sales')->__('Ship to Last name'),
- 'index' => 'shipping_lastname',
+ $this->addColumn('shipping_name', array(
+ 'header' => Mage::helper('sales')->__('Ship to Name'),
+ 'index' => 'shipping_name',
));
$this->addColumn('total_qty', array(
@@ -107,7 +103,7 @@ protected function _prepareColumns()
'actions' => array(
array(
'caption' => Mage::helper('sales')->__('View'),
- 'url' => array('base'=>'*/*/view'),
+ 'url' => array('base'=>'*/sales_shipment/view'),
'field' => 'shipment_id'
)
),
@@ -116,12 +112,19 @@ protected function _prepareColumns()
'is_system' => true
));
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
+
return parent::_prepareColumns();
}
public function getRowUrl($row)
{
- return $this->getUrl('*/*/view',
+ if (!Mage::getSingleton('admin/session')->isAllowed('sales/order/shipment')) {
+ return false;
+ }
+
+ return $this->getUrl('*/sales_shipment/view',
array(
'shipment_id'=> $row->getId(),
)
@@ -132,10 +135,11 @@ protected function _prepareMassaction()
{
$this->setMassactionIdField('entity_id');
$this->getMassactionBlock()->setFormFieldName('shipment_ids');
+ $this->getMassactionBlock()->setUseSelectAll(false);
$this->getMassactionBlock()->addItem('pdfshipments_order', array(
'label'=> Mage::helper('sales')->__('PDF Packingslips'),
- 'url' => $this->getUrl('*/*/pdfshipments'),
+ 'url' => $this->getUrl('*/sales_shipment/pdfshipments'),
));
return $this;
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Totals.php b/app/code/core/Mage/Adminhtml/Block/Sales/Totals.php
index d63c54bf8d..8b8373d49b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sales/Totals.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Totals.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Transactions.php b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions.php
new file mode 100644
index 0000000000..99d33c84eb
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions.php
@@ -0,0 +1,44 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Transactions extends Mage_Adminhtml_Block_Widget_Grid_Container
+{
+ public function __construct()
+ {
+ $this->_controller = 'sales_transactions';
+ $this->_headerText = Mage::helper('sales')->__('Transactions');
+ parent::__construct();
+ $this->_removeButton('add');
+ }
+
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Child/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Child/Grid.php
new file mode 100644
index 0000000000..2d562c0940
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Child/Grid.php
@@ -0,0 +1,86 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Transactions_Child_Grid extends Mage_Adminhtml_Block_Sales_Transactions_Grid
+{
+ /**
+ * Columns, that should be removed from grid
+ *
+ * @var array
+ */
+ protected $_columnsToRemove = array('parent_id', 'parent_txn_id');
+
+ /**
+ * Disable pager and filter
+ *
+ */
+ public function __construct()
+ {
+ parent::__construct();
+ $this->setId('transactionChildGrid');
+ $this->setDefaultSort('created_at');
+ $this->setPagerVisibility(false);
+ $this->setFilterVisibility(false);
+ }
+
+ /**
+ * Add filter by parent transaction ID
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareCollection()
+ {
+ $collection = Mage::getResourceModel('sales/order_payment_transaction_collection');
+ $collection->addParentIdFilter(Mage::registry('current_transaction')->getId());
+ $this->setCollection($collection);
+ return parent::_prepareCollection();
+ }
+
+ /**
+ * Remove some columns and make other not sortable
+ *
+ */
+ protected function _prepareColumns()
+ {
+ $result = parent::_prepareColumns();
+
+ foreach ($this->_columns as $key => $value) {
+ if (in_array($key, $this->_columnsToRemove)) {
+ unset($this->_columns[$key]);
+ } else {
+ $this->_columns[$key]->setData('sortable', false);
+ }
+ }
+ return $result;
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail.php b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail.php
new file mode 100644
index 0000000000..920bd94985
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail.php
@@ -0,0 +1,115 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Transactions_Detail extends Mage_Adminhtml_Block_Widget_Container
+{
+ /**
+ * Transaction model
+ *
+ * @var Mage_Sales_Model_Order_Payment_Transaction
+ */
+ protected $_txn;
+
+ /**
+ * Add control buttons
+ *
+ */
+ public function __construct()
+ {
+ parent::__construct();
+
+ $this->_txn = Mage::registry('current_transaction');
+
+ $backUrl = ($this->_txn->getOrderUrl()) ? $this->_txn->getOrderUrl() : $this->getUrl('*/*/');
+ $this->_addButton('back', array(
+ 'label' => Mage::helper('sales')->__('Back'),
+ 'onclick' => "setLocation('{$backUrl}')",
+ 'class' => 'back'
+ ));
+
+ if (Mage::getSingleton('admin/session')->isAllowed('sales/transactions/fetch')
+ && $this->_txn->getOrderPaymentObject()->getMethodInstance()->canFetchTransactionInfo()) {
+ $fetchUrl = $this->getUrl('*/*/fetch' , array('_current' => true));
+ $this->_addButton('fetch', array(
+ 'label' => Mage::helper('sales')->__('Fetch'),
+ 'onclick' => "setLocation('{$fetchUrl}')",
+ 'class' => 'button'
+ ));
+ }
+ }
+
+ /**
+ * Retrieve header text
+ *
+ * @return string
+ */
+ public function getHeaderText()
+ {
+ return Mage::helper('sales')->__("Transaction # %s | %s",
+ $this->_txn->getTxnId(),
+ $this->formatDate($this->_txn->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true)
+ );
+ }
+
+ protected function _toHtml()
+ {
+ $this->setTxnIdHtml($this->escapeHtml($this->_txn->getTxnId()));
+
+ $this->setParentTxnIdUrlHtml(
+ $this->escapeHtml($this->getUrl('*/sales_transactions/view', array('txn_id' => $this->_txn->getParentId())))
+ );
+
+ $this->setParentTxnIdHtml(
+ $this->escapeHtml($this->_txn->getParentTxnId())
+ );
+
+ $this->setOrderIncrementIdHtml($this->escapeHtml($this->_txn->getOrder()->getIncrementId()));
+
+ $this->setTxnTypeHtml($this->escapeHtml($this->_txn->getTxnType()));
+
+ $this->setOrderIdUrlHtml(
+ $this->escapeHtml($this->getUrl('*/sales_order/view', array('order_id' => $this->_txn->getOrderId())))
+ );
+
+ $this->setIsClosedHtml(
+ ($this->_txn->getIsClosed()) ? Mage::helper('sales')->__('Yes') : Mage::helper('sales')->__('No')
+ );
+
+ $createdAt = (strtotime($this->_txn->getCreatedAt()))
+ ? $this->formatDate($this->_txn->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true)
+ : $this->__('N/A');
+ $this->setCreatedAtHtml($this->escapeHtml($createdAt));
+
+ return parent::_toHtml();
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail/Grid.php
new file mode 100644
index 0000000000..a18292a2ee
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Detail/Grid.php
@@ -0,0 +1,100 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Transactions_Detail_Grid extends Mage_Adminhtml_Block_Widget_Grid
+{
+ /**
+ * Initialize default sorting and html ID
+ */
+ protected function _construct()
+ {
+ $this->setId('transactionDetailsGrid');
+ $this->setPagerVisibility(false);
+ $this->setFilterVisibility(false);
+ }
+
+ /**
+ * Prepare collection for grid
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareCollection()
+ {
+ $collection = new Varien_Data_Collection();
+ foreach ($this->getTransactionAdditionalInfo() as $key => $value) {
+ $data = new Varien_Object(array('key' => $key, 'value' => $value));
+ $collection->addItem($data);
+ }
+
+ $this->setCollection($collection);
+ return parent::_prepareCollection();
+ }
+
+ /**
+ * Add columns to grid
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareColumns()
+ {
+ $this->addColumn('key', array(
+ 'header' => Mage::helper('sales')->__('Key'),
+ 'index' => 'key',
+ 'sortable' => false,
+ 'type' => 'text',
+ 'width' => '50%'
+ ));
+
+ $this->addColumn('value', array(
+ 'header' => Mage::helper('sales')->__('Value'),
+ 'index' => 'value',
+ 'sortable' => false,
+ 'type' => 'text'
+ ));
+
+ return parent::_prepareColumns();
+ }
+
+ /**
+ * Retrieve Transaction addtitional info
+ *
+ * @return array
+ */
+ public function getTransactionAdditionalInfo()
+ {
+ $info = Mage::registry('current_transaction')->getAdditionalInformation(
+ Mage_Sales_Model_Order_Payment_Transaction::RAW_DETAILS
+ );
+ return (is_array($info)) ? $info : array();
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Grid.php
new file mode 100644
index 0000000000..0408b20087
--- /dev/null
+++ b/app/code/core/Mage/Adminhtml/Block/Sales/Transactions/Grid.php
@@ -0,0 +1,159 @@
+
+ */
+class Mage_Adminhtml_Block_Sales_Transactions_Grid extends Mage_Adminhtml_Block_Widget_Grid
+{
+ /**
+ * Set grid params
+ *
+ */
+ public function __construct()
+ {
+ parent::__construct();
+ $this->setId('order_transactions');
+ $this->setUseAjax(true);
+ $this->setDefaultSort('created_at');
+ $this->setDefaultDir('DESC');
+ $this->setSaveParametersInSession(true);
+ }
+
+ /**
+ * Prepare collection for grid
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareCollection()
+ {
+ $collection = ($this->getCollection())
+ ? $this->getCollection() : Mage::getResourceModel('sales/order_payment_transaction_collection');
+ $order = Mage::registry('current_order');
+ if ($order) {
+ $collection->addOrderIdFilter($order->getId());
+ }
+ $collection->addOrderInformation(array('increment_id'));
+ $collection->addPaymentInformation(array('method'));
+ $this->setCollection($collection);
+ return parent::_prepareCollection();
+ }
+
+ /**
+ * Add columns to grid
+ *
+ * @return Mage_Adminhtml_Block_Widget_Grid
+ */
+ protected function _prepareColumns()
+ {
+ $this->addColumn('transaction_id', array(
+ 'header' => Mage::helper('sales')->__('ID #'),
+ 'index' => 'transaction_id',
+ 'type' => 'number'
+ ));
+
+ $this->addColumn('increment_id', array(
+ 'header' => Mage::helper('sales')->__('Order ID'),
+ 'index' => 'increment_id',
+ 'type' => 'text'
+ ));
+
+ $this->addColumn('txn_id', array(
+ 'header' => Mage::helper('sales')->__('Transaction ID'),
+ 'index' => 'txn_id',
+ 'type' => 'text'
+ ));
+
+ $this->addColumn('parent_txn_id', array(
+ 'header' => Mage::helper('sales')->__('Parent Transaction ID'),
+ 'index' => 'parent_txn_id',
+ 'type' => 'text'
+ ));
+
+ $this->addColumn('method', array(
+ 'header' => Mage::helper('sales')->__('Payment Method Name'),
+ 'index' => 'method',
+ 'type' => 'options',
+ 'options' => Mage::helper('payment')->getPaymentMethodList(true),
+ 'option_groups' => Mage::helper('payment')->getPaymentMethodList(true, true, true),
+ ));
+
+ $this->addColumn('txn_type', array(
+ 'header' => Mage::helper('sales')->__('Transaction Type'),
+ 'index' => 'txn_type',
+ 'type' => 'options',
+ 'options' => Mage::getSingleton('sales/order_payment_transaction')->getTransactionTypes()
+ ));
+
+ $this->addColumn('is_closed', array(
+ 'header' => Mage::helper('sales')->__('Is Closed'),
+ 'index' => 'is_closed',
+ 'width' => 1,
+ 'type' => 'options',
+ 'align' => 'center',
+ 'options' => array(
+ 1 => Mage::helper('sales')->__('Yes'),
+ 0 => Mage::helper('sales')->__('No'),
+ )
+ ));
+
+ $this->addColumn('created_at', array(
+ 'header' => Mage::helper('sales')->__('Created At'),
+ 'index' => 'created_at',
+ 'width' => 1,
+ 'type' => 'datetime',
+ 'align' => 'center',
+ 'default' => $this->__('N/A'),
+ 'html_decorators' => array('nobr')
+ ));
+
+ return parent::_prepareColumns();
+ }
+
+ /**
+ * Retrieve grid url
+ *
+ * @return string
+ */
+ public function getGridUrl()
+ {
+ return $this->getUrl('*/*/grid', array('_current' => true));
+ }
+
+ /**
+ * Retrieve row url
+ *
+ * @return string
+ */
+ public function getRowUrl($item)
+ {
+ return $this->getUrl('*/*/view', array('txn_id' => $item->getId()));
+ }
+}
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap.php b/app/code/core/Mage/Adminhtml/Block/Sitemap.php
index 34a1dc6639..5488383e2b 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit.php
index 0c34116c80..57de3b2892 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit/Form.php
index 281dddc665..9d63b2cca4 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php
index 37af607f72..e138809f33 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Action.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Action.php
index 85783ef5c9..84a1657c93 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Action.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Action.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Link.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Link.php
index f0a7142cda..68fb971892 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Link.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Link.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Time.php b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Time.php
index 555bac3b0a..d37c8c70a8 100644
--- a/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Time.php
+++ b/app/code/core/Mage/Adminhtml/Block/Sitemap/Grid/Renderer/Time.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/Store/Switcher.php b/app/code/core/Mage/Adminhtml/Block/Store/Switcher.php
index 828f7d617f..50f1afc38a 100644
--- a/app/code/core/Mage/Adminhtml/Block/Store/Switcher.php
+++ b/app/code/core/Mage/Adminhtml/Block/Store/Switcher.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Account/Edit.php b/app/code/core/Mage/Adminhtml/Block/System/Account/Edit.php
index 2402b7b596..8efa79fe5c 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Account/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Account/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Account/Edit/Form.php b/app/code/core/Mage/Adminhtml/Block/System/Account/Edit/Form.php
index 0f897828ce..1166aac899 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Account/Edit/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Account/Edit/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Cache/Edit.php b/app/code/core/Mage/Adminhtml/Block/System/Cache/Edit.php
index 73903fb39c..f66ccb4535 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Cache/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Cache/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -45,7 +45,7 @@ protected function _prepareLayout()
$this->setChild('save_button',
$this->getLayout()->createBlock('adminhtml/widget_button')
->setData(array(
- 'label' => Mage::helper('adminhtml')->__('Save cache settings'),
+ 'label' => Mage::helper('adminhtml')->__('Save Cache Settings'),
'onclick' => 'configForm.submit()',
'class' => 'save',
))
@@ -130,7 +130,7 @@ public function getCatalogData()
array(
'name' => 'refresh_layered_navigation_now',
'action' => Mage::helper('adminhtml')->__('Refresh Now*'),
- 'comment' => Mage::helper('adminhtml')->__('* - If indexing is in progress, it will be killed and new indexing process will start'),
+ 'comment' => Mage::helper('adminhtml')->__('* - If indexing is in progress, it will be killed and new indexing process will start.'),
'warning' => $warning,
)
),
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Cache/Form.php b/app/code/core/Mage/Adminhtml/Block/System/Cache/Form.php
index b7121e3a63..092c30014d 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Cache/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Cache/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Dwstree.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Dwstree.php
index 895407e7cc..ce8cb6bfc3 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Config/Dwstree.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Dwstree.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php
index 0a09181cd4..5fbe3522ce 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -48,6 +48,7 @@ public function __construct()
$this->_section = $sections->$sectionCode;
$this->setTitle((string)$this->_section->label);
+ $this->setHeaderCss((string)$this->_section->header_css);
}
protected function _prepareLayout()
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
index e49c363680..49431ff867 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -40,12 +40,19 @@ class Mage_Adminhtml_Block_System_Config_Form extends Mage_Adminhtml_Block_Widge
const SCOPE_STORES = 'stores';
/**
- * Enter description here...
+ * Config data array
*
- * @var Mage_Adminhtml_Model_Config_Data
+ * @var array
*/
protected $_configData;
+ /**
+ * Adminhtml config data instance
+ *
+ * @var Mage_Adminhtml_Model_Config_Data
+ */
+ protected $_configDataObject;
+
/**
* Enter description here...
*
@@ -111,11 +118,12 @@ protected function _initObjects()
{
$this->_configRoot = Mage::getConfig()->getNode(null, $this->getScope(), $this->getScopeCode());
- $this->_configData = Mage::getModel('adminhtml/config_data')
+ $this->_configDataObject = Mage::getModel('adminhtml/config_data')
->setSection($this->getSectionCode())
->setWebsite($this->getWebsiteCode())
- ->setStore($this->getStoreCode())
- ->load();
+ ->setStore($this->getStoreCode());
+
+ $this->_configData = $this->_configDataObject->load();
$this->_configFields = Mage::getSingleton('adminhtml/config');
@@ -173,10 +181,14 @@ public function initForm()
if (!empty($group->comment)) {
$fieldsetConfig['comment'] = (string)$group->comment;
}
+ if (!empty($group->expanded)) {
+ $fieldsetConfig['expanded'] = (bool)$group->expanded;
+ }
$fieldset = $form->addFieldset(
$section->getName() . '_' . $group->getName(), $fieldsetConfig)
->setRenderer($fieldsetRenderer);
+ $this->_prepareFieldOriginalData($fieldset, $group);
$this->_addElementTypes($fieldset);
if ($group->clone_fields) {
@@ -229,6 +241,13 @@ protected function _getDependence()
*/
public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelPrefix='')
{
+ if (!$this->_configDataObject) {
+ $this->_initObjects();
+ }
+
+ // Extends for config data
+ $configDataAdditionalGroups = array();
+
foreach ($group->fields as $elements) {
$elements = (array)$elements;
@@ -245,7 +264,22 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
if (!$this->_canShowField($e)) {
continue;
}
- $path = $section->getName() . '/' . $group->getName() . '/' . $fieldPrefix . $e->getName();
+
+ /**
+ * Look for custom defined field path
+ */
+ $path = (string)$e->config_path;
+ if (empty($path)) {
+ $path = $section->getName() . '/' . $group->getName() . '/' . $fieldPrefix . $e->getName();
+ } elseif (strrpos($path, '/') > 0) {
+ // Extend config data with new section group
+ $groupPath = substr($path, 0, strrpos($path, '/'));
+ if (!isset($configDataAdditionalGroups[$groupPath])) {
+ $this->_configData = $this->_configDataObject->extendConfig($groupPath, false, $this->_configData);
+ $configDataAdditionalGroups[$groupPath] = true;
+ }
+ }
+
$id = $section->getName() . '_' . $group->getName() . '_' . $fieldPrefix . $e->getName();
if (isset($this->_configData[$path])) {
@@ -268,7 +302,6 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
$fieldType = (string)$e->frontend_type ? (string)$e->frontend_type : 'text';
$name = 'groups['.$group->getName().'][fields]['.$fieldPrefix.$e->getName().'][value]';
$label = Mage::helper($helperName)->__($labelPrefix).' '.Mage::helper($helperName)->__((string)$e->label);
- $comment = (string)$e->comment ? Mage::helper($helperName)->__((string)$e->comment) : '';
$hint = (string)$e->hint ? Mage::helper($helperName)->__((string)$e->hint) : '';
if ($e->backend_model) {
@@ -276,10 +309,17 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
if (!$model instanceof Mage_Core_Model_Config_Data) {
Mage::throwException('Invalid config field backend model: '.(string)$e->backend_model);
}
- $model->setPath($path)->setValue($data)->afterLoad();
+ $model->setPath($path)
+ ->setValue($data)
+ ->setWebsite($this->getWebsiteCode())
+ ->setStore($this->getStoreCode())
+ ->afterLoad();
$data = $model->getValue();
}
+ $comment = $this->_prepareFieldComment($e, $helperName, $data);
+ $tooltip = $this->_prepareFieldTooltip($e, $helperName);
+
if ($e->depends) {
foreach ($e->depends->children() as $dependent) {
$dependentId = $section->getName() . '_' . $group->getName() . '_' . $fieldPrefix . $dependent->getName();
@@ -295,6 +335,7 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
'name' => $name,
'label' => $label,
'comment' => $comment,
+ 'tooltip' => $tooltip,
'hint' => $hint,
'value' => $data,
'inherit' => $inherit,
@@ -306,6 +347,7 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
'can_use_default_value' => $this->canUseDefaultValue((int)$e->show_in_default),
'can_use_website_value' => $this->canUseWebsiteValue((int)$e->show_in_website),
));
+ $this->_prepareFieldOriginalData($field, $e);
if (isset($e->validate)) {
$field->addClass($e->validate);
@@ -349,6 +391,66 @@ public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelP
return $this;
}
+ /**
+ * Set "original_data" array to the element, composed from nodes with scalar values
+ *
+ * @param Varien_Data_Form_Element_Abstract $field
+ * @param Varien_Simplexml_Element $xmlElement
+ */
+ protected function _prepareFieldOriginalData($field, $xmlElement)
+ {
+ $originalData = array();
+ foreach ($xmlElement as $key => $value) {
+ if (!$value->hasChildren()) {
+ $originalData[$key] = (string)$value;
+ }
+ }
+ $field->setOriginalData($originalData);
+ }
+
+ /**
+ * Support models "getCommentText" method for field note generation
+ *
+ * @param Mage_Core_Model_Config_Element $element
+ * @param string $helper
+ * @return string
+ */
+ protected function _prepareFieldComment($element, $helper, $currentValue)
+ {
+ $comment = '';
+ if ($element->comment) {
+ $commentInfo = $element->comment->asArray();
+ if (is_array($commentInfo)) {
+ if (isset($commentInfo['model'])) {
+ $model = Mage::getModel($commentInfo['model']);
+ if (method_exists($model, 'getCommentText')) {
+ $comment = $model->getCommentText($element, $currentValue);
+ }
+ }
+ } else {
+ $comment = Mage::helper($helper)->__($commentInfo);
+ }
+ }
+ return $comment;
+ }
+
+ /**
+ * Prepare additional comment for field like tooltip
+ *
+ * @param Mage_Core_Model_Config_Element $element
+ * @param string $helper
+ * @return string
+ */
+ protected function _prepareFieldTooltip($element, $helper)
+ {
+ if ($element->tooltip) {
+ return Mage::helper($helper)->__((string)$element->tooltip);
+ } elseif ($element->tooltip_block) {
+ return $this->getLayout()->createBlock((string)$element->tooltip_block)->toHtml();
+ }
+ return '';
+ }
+
/**
* Append dependence block at then end of form block
*
@@ -415,6 +517,11 @@ public function canUseWebsiteValue($field)
*/
protected function _canShowField($field)
{
+ $ifModuleEnabled = trim((string)$field->if_module_enabled);
+ if ($ifModuleEnabled && !Mage::helper('Core')->isModuleEnabled($ifModuleEnabled)) {
+ return false;
+ }
+
switch ($this->getScope()) {
case self::SCOPE_DEFAULT:
return (int)$field->show_in_default;
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php
index 59b580fc55..55237ee50e 100644
--- a/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php
+++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Form/Field.php
@@ -20,7 +20,7 @@
*
* @category Mage
* @package Mage_Adminhtml
- * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
+ * @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
@@ -58,7 +58,9 @@ public function render(Varien_Data_Form_Element_Abstract $element)
{
$id = $element->getHtmlId();
- $html = '
';
@@ -66,7 +66,7 @@ protected function _toHtml()
echo '
';
echo '
';
echo '';
- echo $this->__("Warning: Please don't close window during importing/exporting data");
+ echo $this->__("Warning: Please do not close the window during importing/exporting data");
} else {
echo '';
echo $this->__("No profile loaded...");
@@ -111,7 +111,7 @@ protected function _toHtml()
if($profile->getEntityType() == 'product' && $profile->getDirection() == 'import') {
echo '
';
echo '';
- echo $this->__("Please wait while we are refreshing indexes.");
+ echo $this->__("Please wait while the indexes are being refreshed.");
echo '';
echo '
__('Alphanumeric, dash and underscore characters are recommended for filenames. Improper characters are replaced with \'_\'.')?>
@@ -96,7 +97,7 @@ var sampleTemplate = '
'+
''+
'
'+
'
'+
- '__('This content requires last version of Adobe Flash Player. Get Flash', 'http://www.adobe.com/go/getflash/') ?>'+
+ 'jsQuoteEscape(Mage::helper('media')->__('This content requires last version of Adobe Flash Player. Get Flash', 'http://www.adobe.com/go/getflash/')) ?>'+
'
+
+
\ No newline at end of file
diff --git a/app/design/adminhtml/default/default/template/paypal/system/config/fieldset/hint.phtml b/app/design/adminhtml/default/default/template/paypal/system/config/fieldset/hint.phtml
new file mode 100644
index 0000000000..19e11cc238
--- /dev/null
+++ b/app/design/adminhtml/default/default/template/paypal/system/config/fieldset/hint.phtml
@@ -0,0 +1,35 @@
+
+
+
+
__('Looking for PayPal? We have our own tab to the left under Sales.')?>
__('Your server PHP settings allow you to upload files not more than %s at a time. Please modify post_max_size (currently is %s) and upload_max_filesize (currently is %s) values in php.ini if you want to upload larger files.', $this->getDataMaxSize(), $this->getPostMaxSize(), $this->getUploadMaxSize())?>
+
+
+
__('Make sure that data encoding in the file is consistent and saved in one of supported encodings (UTF-8 or ANSI).')?>