diff --git a/.htaccess b/.htaccess index 360a61895f3fa..365054378918f 100644 --- a/.htaccess +++ b/.htaccess @@ -180,4 +180,4 @@ ## If running in cluster environment, uncomment this ## http://developer.yahoo.com/performance/rules.html#etags - #FileETag none + #FileETag none \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 34e9246bff500..370a2aca82477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,40 @@ +2.0.0.0-dev65 +============= +* Fixed bugs: + * Fixed inability to execute System Backup, Database Backup, and Media Backup +* Indexer implementation: + * Implemented a new optimized Catalog Category Flat Indexer +* Cron improvements: + * Added the ability to divide cron tasks into groups + * Added the ability to run cron groups in separate processes +* Caching improvements: + * Added a new mechanism to identify uniquely page content (hash-key for cache storage) + * Added a tab for Page Cache mechanism in System Configuration + * Implemented the ability to configure the Varnish caching server settings and download it as a .vcl file +* LESS pre-processing to CSS + * LESS files in library, theme, module are automatically compiled to CSS during materialization + * LESS files compilation caching mechanism added in Developer mode +* Modularity improvements: + * Moved the Shortcut Buttons abstraction from PayPal to Catalog + * Moved the Recurring Profile functionality to a separate module + * Moved the Billing Agreements functionality to the PayPal module +* Improvements in code coverage calculation: + * Added code coverage calculation in the clover xml format for unit tests +* GitHub requests: + * [#377] (https://github.com/magento/magento2/issues/377) Remove and avoid javascript eval() calls + * [#319] (https://github.com/magento/magento2/issues/319) No message was displayed when product added to shopping cart. + * [#367] (https://github.com/magento/magento2/issues/367) Improve the error message from the contact form + * [#469] (https://github.com/magento/magento2/issues/469) Can't change prices on different websites for custom options +* Updated the Customer service exception handling, and added tests +* Added usage of the Customer service to the Customer module, replacing some direct usage of the Customer model +* Updated various PHPDoc with the parameter and return types + 2.0.0.0-dev64 ============= * Modularity improvements: * Moved abstract shopping cart logic from the Paypal module to the Payments module * Caching improvements: * Added a new mechanism to uniquely identify page content (a hash-key for cache storage) - * Replaced the "magentoZoom" plugin with two widgets: the "gallery" and "zoom" * Fixed bugs: * Fixed an issue with inserting an image in WYSIWYG editor where the selected folder was stored in session * Fixed an issue with CMS Page Links not being shown because of the empty text in the link @@ -17,6 +47,7 @@ * Created the architecture for the email template library * Introduced a consistent approach for using the Config scope * Fixed an issue with the dependency static test +* Replaced the "magentoZoom" plugin with two widgets: the "gallery" and "zoom" 2.0.0.0-dev63 ============= diff --git a/app/code/Magento/AdminNotification/Model/System/Message/Security.php b/app/code/Magento/AdminNotification/Model/System/Message/Security.php index d4b41ceff5ca8..89b189239c9be 100644 --- a/app/code/Magento/AdminNotification/Model/System/Message/Security.php +++ b/app/code/Magento/AdminNotification/Model/System/Message/Security.php @@ -27,7 +27,7 @@ class Security implements \Magento\AdminNotification\Model\System\MessageInterface { /** - * Cache kay for saving verification result + * Cache key for saving verification result */ const VERIFICATION_RESULT_CACHE_KEY = 'configuration_files_access_level_verification'; diff --git a/app/code/Magento/AdminNotification/view/adminhtml/system/messages.phtml b/app/code/Magento/AdminNotification/view/adminhtml/system/messages.phtml index 302955e401eb4..941013895d70b 100644 --- a/app/code/Magento/AdminNotification/view/adminhtml/system/messages.phtml +++ b/app/code/Magento/AdminNotification/view/adminhtml/system/messages.phtml @@ -43,7 +43,7 @@ getMajorCount();?> -
+
diff --git a/app/code/Magento/AdminNotification/view/adminhtml/system/notification.js b/app/code/Magento/AdminNotification/view/adminhtml/system/notification.js index 47603554cb092..d03b59581ec80 100644 --- a/app/code/Magento/AdminNotification/view/adminhtml/system/notification.js +++ b/app/code/Magento/AdminNotification/view/adminhtml/system/notification.js @@ -21,7 +21,7 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ /*jshint jquery:true*/ -(function ($) { +jQuery(function ($) { $.template( 'systemMessageDialog', '
  • {{html text}}
  • ' @@ -69,5 +69,5 @@ $('#message-system-all').systemMessageDialog('open', 2); }); }); -})(jQuery); +}); diff --git a/app/code/Magento/Authorizenet/Helper/Backend.php b/app/code/Magento/Authorizenet/Helper/Backend.php index c30b972e33939..9d95af65de8e5 100644 --- a/app/code/Magento/Authorizenet/Helper/Backend.php +++ b/app/code/Magento/Authorizenet/Helper/Backend.php @@ -104,7 +104,7 @@ public function getRedirectIframeUrl($params) */ public function getRelyUrl($storeId = null) { - return $this->_storeManager->getDefaultStoreView()->getBaseUrl(\Magento\Core\Model\Store::URL_TYPE_LINK) + return $this->_storeManager->getDefaultStoreView()->getBaseUrl(\Magento\UrlInterface::URL_TYPE_LINK) . 'authorizenet/directpost_payment/backendResponse'; } } diff --git a/app/code/Magento/Authorizenet/Helper/Data.php b/app/code/Magento/Authorizenet/Helper/Data.php index 0cc27f6694c84..4f7ffbe3bc976 100644 --- a/app/code/Magento/Authorizenet/Helper/Data.php +++ b/app/code/Magento/Authorizenet/Helper/Data.php @@ -331,7 +331,7 @@ public function getPaymentMethodsHtml(\Magento\App\ViewInterface $view) */ public function getRelyUrl($storeId = null) { - return $this->_storeManager->getStore($storeId)->getBaseUrl(\Magento\Core\Model\Store::URL_TYPE_LINK) + return $this->_storeManager->getStore($storeId)->getBaseUrl(\Magento\UrlInterface::URL_TYPE_LINK) . 'authorizenet/directpost_payment/response'; } } diff --git a/pub/lib/mage/directpost.js b/app/code/Magento/Authorizenet/view/adminhtml/js/direct-post.js similarity index 100% rename from pub/lib/mage/directpost.js rename to app/code/Magento/Authorizenet/view/adminhtml/js/direct-post.js diff --git a/app/code/Magento/Authorizenet/view/adminhtml/layout/sales_order_create_index.xml b/app/code/Magento/Authorizenet/view/adminhtml/layout/sales_order_create_index.xml index d5fe24b53fc0b..a67d411e3e383 100644 --- a/app/code/Magento/Authorizenet/view/adminhtml/layout/sales_order_create_index.xml +++ b/app/code/Magento/Authorizenet/view/adminhtml/layout/sales_order_create_index.xml @@ -25,9 +25,9 @@ --> - + - mage/directpost.js + Magento_Authorizenet::js/direct-post.js diff --git a/app/code/Magento/Authorizenet/view/frontend/directpost/form.phtml b/app/code/Magento/Authorizenet/view/frontend/directpost/form.phtml index 6cac0c3c0743b..48833474be34d 100644 --- a/app/code/Magento/Authorizenet/view/frontend/directpost/form.phtml +++ b/app/code/Magento/Authorizenet/view/frontend/directpost/form.phtml @@ -38,7 +38,7 @@ $_orderUrl = $this->helper('Magento\Authorizenet\Helper\Data')->getPlaceOrderFro -
    + $this->getRequest()->isSecure())) ?>"}, "validation":[]}'>

    @@ -92,10 +92,10 @@ $_orderUrl = $this->helper('Magento\Authorizenet\Helper\Data')->getPlaceOrderFro
    - +
    diff --git a/app/code/Magento/Backup/Model/Config/Backend/Cron.php b/app/code/Magento/Backup/Model/Config/Backend/Cron.php index 10efaae705441..a8a625d93e0c9 100644 --- a/app/code/Magento/Backup/Model/Config/Backend/Cron.php +++ b/app/code/Magento/Backup/Model/Config/Backend/Cron.php @@ -29,8 +29,8 @@ class Cron extends \Magento\Core\Model\Config\Value { - const CRON_STRING_PATH = 'crontab/jobs/system_backup/schedule/cron_expr'; - const CRON_MODEL_PATH = 'crontab/jobs/system_backup/run/model'; + const CRON_STRING_PATH = 'crontab/default/jobs/system_backup/schedule/cron_expr'; + const CRON_MODEL_PATH = 'crontab/default/jobs/system_backup/run/model'; const XML_PATH_BACKUP_ENABLED = 'groups/backup/fields/enabled/value'; const XML_PATH_BACKUP_TIME = 'groups/backup/fields/time/value'; diff --git a/app/code/Magento/Backup/etc/crontab.xml b/app/code/Magento/Backup/etc/crontab.xml index 2e30a77acf6b6..6757dafaefb87 100644 --- a/app/code/Magento/Backup/etc/crontab.xml +++ b/app/code/Magento/Backup/etc/crontab.xml @@ -24,5 +24,7 @@ */ --> - + + + diff --git a/app/code/Magento/Backup/view/adminhtml/backup/dialogs.phtml b/app/code/Magento/Backup/view/adminhtml/backup/dialogs.phtml index 7af80e070f7d6..a1c426fdd224f 100644 --- a/app/code/Magento/Backup/view/adminhtml/backup/dialogs.phtml +++ b/app/code/Magento/Backup/view/adminhtml/backup/dialogs.phtml @@ -88,7 +88,7 @@ - + @@ -141,7 +141,7 @@ - + diff --git a/app/code/Magento/Bundle/Model/Product/Type.php b/app/code/Magento/Bundle/Model/Product/Type.php index f0a39119339ea..89c7abe5343c1 100644 --- a/app/code/Magento/Bundle/Model/Product/Type.php +++ b/app/code/Magento/Bundle/Model/Product/Type.php @@ -659,7 +659,7 @@ protected function _prepareProduct(\Magento\Object $buyRequest, $product, $proce $optionIds = array_keys($options); if (empty($optionIds) && $isStrictProcessMode) { - return __('Please select options for the product.'); + return __('Please specify product option(s).'); } $product->getTypeInstance()->setStoreFilter($product->getStoreId(), $product); diff --git a/app/code/Magento/Bundle/view/frontend/catalog/product/view/summary.phtml b/app/code/Magento/Bundle/view/frontend/catalog/product/view/summary.phtml index df0f704074c66..c2f873b2fbf0a 100644 --- a/app/code/Magento/Bundle/view/frontend/catalog/product/view/summary.phtml +++ b/app/code/Magento/Bundle/view/frontend/catalog/product/view/summary.phtml @@ -51,7 +51,7 @@
    -
      +
        + data-mage-init='{"translateInline":{"ajaxUrl":"getAjaxUrl() ?>"},"loader":{}}'>
        -
        +
        + data-mage-init='{"loader": {"icon": "getViewFileUrl('images/ajax-loader-tr.gif', array('area' => \Magento\Backend\App\Area\FrontNameResolver::AREA_CODE)) ?>"}}'>
        \ No newline at end of file diff --git a/app/code/Magento/PageCache/view/frontend/js/page-cache.js b/app/code/Magento/PageCache/view/frontend/js/page-cache.js index f306ada4af154..a6a2b0ce9b7ef 100644 --- a/app/code/Magento/PageCache/view/frontend/js/page-cache.js +++ b/app/code/Magento/PageCache/view/frontend/js/page-cache.js @@ -39,7 +39,9 @@ return ; } var placeholders = this._searchPlaceholders(this.element.comments()); - this._ajax(placeholders, version); + if (placeholders.length) { + this._ajax(placeholders, version); + } }, _searchPlaceholders: function (elements) { var placeholders = [], diff --git a/app/code/Magento/Payment/Block/Form.php b/app/code/Magento/Payment/Block/Form.php index 70bd146153ca4..814346bac9c7d 100644 --- a/app/code/Magento/Payment/Block/Form.php +++ b/app/code/Magento/Payment/Block/Form.php @@ -67,14 +67,4 @@ public function getInfoData($field) { return $this->escapeHtml($this->getMethod()->getInfoInstance()->getData($field)); } - - /** - * Check whether current payment method can create billing agreement - * - * @return bool - */ - public function canCreateBillingAgreement() - { - return $this->getMethod()->canCreateBillingAgreement(); - } } diff --git a/app/code/Magento/Payment/Helper/Data.php b/app/code/Magento/Payment/Helper/Data.php index 42ee51a7f76f8..17aefd45873b2 100644 --- a/app/code/Magento/Payment/Helper/Data.php +++ b/app/code/Magento/Payment/Helper/Data.php @@ -224,24 +224,6 @@ public function getInfoBlockHtml(\Magento\Payment\Model\Info $info, $storeId) return $paymentBlockHtml; } - /** - * Retrieve available billing agreement methods - * - * @param mixed $store - * @param \Magento\Sales\Model\Quote $quote - * @return array - */ - public function getBillingAgreementMethods($store = null, $quote = null) - { - $result = array(); - foreach ($this->getStoreMethods($store, $quote) as $method) { - if ($method->canManageBillingAgreements()) { - $result[] = $method; - } - } - return $result; - } - /** * Get payment methods that implement recurring profilez management * @@ -339,27 +321,6 @@ public function getPaymentMethodList($sorted = true, $asLabelValue = false, $wit return $methods; } - /** - * Retrieve all billing agreement methods (code and label) - * - * @return array - */ - public function getAllBillingAgreementMethods() - { - $result = array(); - $interface = 'Magento\Payment\Model\Billing\Agreement\MethodInterface'; - foreach ($this->getPaymentMethods() as $code => $data) { - if (!isset($data['model'])) { - continue; - } - $method = $data['model']; - if (in_array($interface, class_implements($method))) { - $result[$code] = $data['title']; - } - } - return $result; - } - /** * Returns value of Zero Subtotal Checkout / Enabled * diff --git a/app/code/Magento/Payment/Model/Method/AbstractMethod.php b/app/code/Magento/Payment/Model/Method/AbstractMethod.php index 34fba2e5f0f8b..4a94fcc70f324 100644 --- a/app/code/Magento/Payment/Model/Method/AbstractMethod.php +++ b/app/code/Magento/Payment/Model/Method/AbstractMethod.php @@ -85,7 +85,6 @@ abstract class AbstractMethod extends \Magento\Object protected $_isInitializeNeeded = false; protected $_canFetchTransactionInfo = false; protected $_canReviewPayment = false; - protected $_canCreateBillingAgreement = false; protected $_canManageRecurringProfiles = true; /**#@-*/ @@ -266,16 +265,6 @@ public function canFetchTransactionInfo() return $this->_canFetchTransactionInfo; } - /** - * Check whether payment method instance can create billing agreements - * - * @return bool - */ - public function canCreateBillingAgreement() - { - return $this->_canCreateBillingAgreement; - } - /** * Fetch transaction info * @@ -340,16 +329,6 @@ public function canUseForCurrency($currencyCode) return true; } - /** - * Check manage billing agreements availability - * - * @return bool - */ - public function canManageBillingAgreements() - { - return ($this instanceof \Magento\Payment\Model\Billing\Agreement\MethodInterface); - } - /** * Whether can manage recurring profiles * diff --git a/app/code/Magento/Payment/Model/Observer.php b/app/code/Magento/Payment/Model/Observer.php index 8f0939cb4e10e..2c7a1d8dc425c 100644 --- a/app/code/Magento/Payment/Model/Observer.php +++ b/app/code/Magento/Payment/Model/Observer.php @@ -31,27 +31,6 @@ class Observer { - /** - * Locale model - * - * @var \Magento\Core\Model\LocaleInterface - */ - protected $_locale; - - /** - * Store manager - * - * @var \Magento\Core\Model\StoreManagerInterface - */ - protected $_storeManager; - - /** - * Recurring profile factory - * - * @var \Magento\Payment\Model\Recurring\ProfileFactory - */ - protected $_profileFactory; - /** * @var \Magento\Sales\Model\Order\Config */ @@ -70,24 +49,15 @@ class Observer /** * Construct * - * @param \Magento\Core\Model\LocaleInterface $locale - * @param \Magento\Core\Model\StoreManagerInterface $storeManager - * @param \Magento\Payment\Model\Recurring\ProfileFactory $profileFactory * @param \Magento\Sales\Model\Order\Config $salesOrderConfig * @param \Magento\Payment\Model\Config $paymentConfig * @param \Magento\Core\Model\Resource\Config $resourceConfig */ public function __construct( - \Magento\Core\Model\LocaleInterface $locale, - \Magento\Core\Model\StoreManagerInterface $storeManager, - \Magento\Payment\Model\Recurring\ProfileFactory $profileFactory, \Magento\Sales\Model\Order\Config $salesOrderConfig, \Magento\Payment\Model\Config $paymentConfig, \Magento\Core\Model\Resource\Config $resourceConfig ) { - $this->_locale = $locale; - $this->_storeManager = $storeManager; - $this->_profileFactory = $profileFactory; $this->_salesOrderConfig = $salesOrderConfig; $this->_paymentConfig = $paymentConfig; $this->_resourceConfig = $resourceConfig; @@ -122,52 +92,6 @@ public function salesOrderBeforeSave($observer) return $this; } - /** - * Collect buy request and set it as custom option - * - * Also sets the collected information and schedule as informational static options - * - * @param \Magento\Event\Observer $observer - */ - public function prepareProductRecurringProfileOptions($observer) - { - $product = $observer->getEvent()->getProduct(); - $buyRequest = $observer->getEvent()->getBuyRequest(); - - if (!$product->isRecurring()) { - return; - } - - /** @var \Magento\Payment\Model\Recurring\Profile $profile */ - $profile = $this->_profileFactory->create(); - $profile->setLocale($this->_locale) - ->setStore($this->_storeManager->getStore()) - ->importBuyRequest($buyRequest) - ->importProduct($product); - if (!$profile) { - return; - } - - // add the start datetime as product custom option - $product->addCustomOption(\Magento\Payment\Model\Recurring\Profile::PRODUCT_OPTIONS_KEY, - serialize(array('start_datetime' => $profile->getStartDatetime())) - ); - - // duplicate as 'additional_options' to render with the product statically - $infoOptions = array(array( - 'label' => $profile->getFieldLabel('start_datetime'), - 'value' => $profile->exportStartDatetime(true), - )); - - foreach ($profile->exportScheduleInfo() as $info) { - $infoOptions[] = array( - 'label' => $info->getTitle(), - 'value' => $info->getSchedule(), - ); - } - $product->addCustomOption('additional_options', serialize($infoOptions)); - } - /** * Sets current instructions for bank transfer account * diff --git a/app/code/Magento/Payment/Model/Recurring/Profile/MethodInterface.php b/app/code/Magento/Payment/Model/Recurring/Profile/MethodInterface.php index 512ae1dec9cd3..09915846eafcc 100644 --- a/app/code/Magento/Payment/Model/Recurring/Profile/MethodInterface.php +++ b/app/code/Magento/Payment/Model/Recurring/Profile/MethodInterface.php @@ -34,18 +34,18 @@ interface MethodInterface /** * Validate data * - * @param \Magento\Payment\Model\Recurring\Profile $profile + * @param \Magento\RecurringProfile\Model\RecurringProfile $profile * @throws \Magento\Core\Exception */ - public function validateRecurringProfile(\Magento\Payment\Model\Recurring\Profile $profile); + public function validateRecurringProfile(\Magento\RecurringProfile\Model\RecurringProfile $profile); /** * Submit to the gateway * - * @param \Magento\Payment\Model\Recurring\Profile $profile + * @param \Magento\RecurringProfile\Model\RecurringProfile $profile * @param \Magento\Payment\Model\Info $paymentInfo */ - public function submitRecurringProfile(\Magento\Payment\Model\Recurring\Profile $profile, \Magento\Payment\Model\Info $paymentInfo); + public function submitRecurringProfile(\Magento\RecurringProfile\Model\RecurringProfile $profile, \Magento\Payment\Model\Info $paymentInfo); /** * Fetch details @@ -65,14 +65,14 @@ public function canGetRecurringProfileDetails(); /** * Update data * - * @param \Magento\Payment\Model\Recurring\Profile $profile + * @param \Magento\RecurringProfile\Model\RecurringProfile $profile */ - public function updateRecurringProfile(\Magento\Payment\Model\Recurring\Profile $profile); + public function updateRecurringProfile(\Magento\RecurringProfile\Model\RecurringProfile $profile); /** * Manage status * - * @param \Magento\Payment\Model\Recurring\Profile $profile + * @param \Magento\RecurringProfile\Model\RecurringProfile $profile */ - public function updateRecurringProfileStatus(\Magento\Payment\Model\Recurring\Profile $profile); + public function updateRecurringProfileStatus(\Magento\RecurringProfile\Model\RecurringProfile $profile); } diff --git a/app/code/Magento/Payment/etc/module.xml b/app/code/Magento/Payment/etc/module.xml index 8e7c3f3b0db22..32167e3ad081e 100755 --- a/app/code/Magento/Payment/etc/module.xml +++ b/app/code/Magento/Payment/etc/module.xml @@ -31,10 +31,10 @@ - + diff --git a/app/code/Magento/Payment/i18n/de_DE.csv b/app/code/Magento/Payment/i18n/de_DE.csv index ef94b55e742df..01a02a0dfe5de 100644 --- a/app/code/Magento/Payment/i18n/de_DE.csv +++ b/app/code/Magento/Payment/i18n/de_DE.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","Automatische Abrechnung beim nächsten Zyklus" "Automatically Invoice All Items","Automatische Abrechnung aller Artikel" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Den ausstehenden Betrag automatisch im nächsten Rechnungslauf verrechnen (wenn es fehlgeschlagene Zahlungen gab)." -"Billing Agreement status is not set.","Abrechnungsvereinbarungsstatus ist nicht gesetzt." "Billing Amount","Rechnungsbetrag" "Billing Frequency","Abrechnungsfrequenz" "Billing Interval","Abrechnungsperiode" @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","Probeperiodenfrequenz ist falsch." "Trial period max cycles is wrong.","Maximale Zyklen für Probeperiode ist falsch." "Two Weeks","Zwei Wochen" -"Unable to save Billing Agreement:","Abrechnungsvereinbarung kann nicht gespeichert werden:" "Unit for billing during the subscription period.","Einheit für Abrechnung der Abonnementperiode." "Unsupported currency code: %s.","Nicht unterstützter Währungscode: %s." "Void action is not available.","Leer-Aktion ist nicht verfügbar." diff --git a/app/code/Magento/Payment/i18n/en_US.csv b/app/code/Magento/Payment/i18n/en_US.csv index ef675a0b52b3c..d58c49c1acd61 100644 --- a/app/code/Magento/Payment/i18n/en_US.csv +++ b/app/code/Magento/Payment/i18n/en_US.csv @@ -11,7 +11,6 @@ "Automatically Invoice All Items","Automatically Invoice All Items" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments)." "Bank Transfer Payment","Bank Transfer Payment" -"Billing Agreement status is not set.","Billing Agreement status is not set." "Billing Amount","Billing Amount" "Billing Frequency","Billing Frequency" "Billing Interval","Billing Interval" @@ -128,7 +127,6 @@ "Trial period frequency is wrong.","Trial period frequency is wrong." "Trial period max cycles is wrong.","Trial period max cycles is wrong." "Two Weeks","Two Weeks" -"Unable to save Billing Agreement:","Unable to save Billing Agreement:" "Unit for billing during the subscription period.","Unit for billing during the subscription period." "Unsupported currency code: %s.","Unsupported currency code: %s." "Void action is not available.","Void action is not available." diff --git a/app/code/Magento/Payment/i18n/es_ES.csv b/app/code/Magento/Payment/i18n/es_ES.csv index f695a73f26241..e39542c6cc65a 100644 --- a/app/code/Magento/Payment/i18n/es_ES.csv +++ b/app/code/Magento/Payment/i18n/es_ES.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","Pasar la factura automáticamente en el próximo ciclo" "Automatically Invoice All Items","Facturar automáticamente todos los artículos" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Pasar automáticamente el saldo pendiente de la factura en el próximo ciclo de facturación (en caso de que se produzca un error en los pagos)." -"Billing Agreement status is not set.","No se ha establecido el estado del acuerdo de facturación." "Billing Amount","Cantidad de facturación" "Billing Frequency","Frecuencia de facturación" "Billing Interval","Período de facturación" @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","La frecuencia del período de prueba es incorrecta." "Trial period max cycles is wrong.","Los ciclos máximos del período de prueba son incorrectos." "Two Weeks","Dos Semanas" -"Unable to save Billing Agreement:","No se puede guardar el Contrato de Facturación:" "Unit for billing during the subscription period.","Unidad de facturación durante el período de suscripción." "Unsupported currency code: %s.","Código de divisa no compatible: %s." "Void action is not available.","La anulación no se encuentra disponible." diff --git a/app/code/Magento/Payment/i18n/fr_FR.csv b/app/code/Magento/Payment/i18n/fr_FR.csv index 5cbd540ef7c82..784d60447f09a 100644 --- a/app/code/Magento/Payment/i18n/fr_FR.csv +++ b/app/code/Magento/Payment/i18n/fr_FR.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","Facturer automatiquement lors du prochain cycle." "Automatically Invoice All Items","Facturer automatiquement tous les objets." "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Facturer automatiquement le montant restant dans le cycle suivant (si des paiements ont échoué)" -"Billing Agreement status is not set.","Le statut du contrat de facturation n'est pas réglé." "Billing Amount","Montant de la facturation." "Billing Frequency","Fréquence de facturation." "Billing Interval","Période de facturation." @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","La fréquence des périodes d'essai est incorrecte." "Trial period max cycles is wrong.","Le période maximale des cycles d'essai est incorrecte." "Two Weeks","Deux semaines" -"Unable to save Billing Agreement:","Impossible d'enregistrer l'accord de facturation :" "Unit for billing during the subscription period.","Unité de facturation pour la période de souscription." "Unsupported currency code: %s.","Code de devise non supporté : %s." "Void action is not available.","L'action annuler n'est pas disponible." diff --git a/app/code/Magento/Payment/i18n/nl_NL.csv b/app/code/Magento/Payment/i18n/nl_NL.csv index c94f918fb1d76..c764d62ae203d 100644 --- a/app/code/Magento/Payment/i18n/nl_NL.csv +++ b/app/code/Magento/Payment/i18n/nl_NL.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","Auto Rekening in Volgende Cyclus" "Automatically Invoice All Items","Automatische Factuur Alle Items" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Breng automatisch de uitstaande balanshoeveelheid in rekening in de volgende betaalcyclus (als er mislukte betalingen waren)." -"Billing Agreement status is not set.","Betaalovereenkomst status is niet opgesteld." "Billing Amount","Grootte Rekening" "Billing Frequency","Frequentie Rekening" "Billing Interval","Periode Rekening" @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","Trial periode frequentie is verkeerd." "Trial period max cycles is wrong.","Trial periode maximum hoeveelheid cycli is verkeerd." "Two Weeks","Twee Weken" -"Unable to save Billing Agreement:","Niet mogelijk om Betalingsovereenkomst op te slaan:" "Unit for billing during the subscription period.","Eenheid voor het factureren tijdens de subscriptie periode." "Unsupported currency code: %s.","Niet-ondersteunde valuta code: %s." "Void action is not available.","Vernietigactie is niet beschikbaar." diff --git a/app/code/Magento/Payment/i18n/pt_BR.csv b/app/code/Magento/Payment/i18n/pt_BR.csv index b8bdf197f85db..8f20d79cd72b0 100644 --- a/app/code/Magento/Payment/i18n/pt_BR.csv +++ b/app/code/Magento/Payment/i18n/pt_BR.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","Faturar Automaticamente no Próximo Ciclo" "Automatically Invoice All Items","Faturar Automaticamente Todos os Itens" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","Faturar automaticamente o valor do balanço em destaque no próximo ciclo de faturamento (se houve falha de pagamentos)." -"Billing Agreement status is not set.","Acordo de estado de Faturamento não está definido." "Billing Amount","Valor de Faturamento" "Billing Frequency","Frequência de Faturamento" "Billing Interval","Período de Faturamento" @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","Teste de faturamento de frequência está errado." "Trial period max cycles is wrong.","Ciclo máximo de período experimental está errado." "Two Weeks","Duas Semanas" -"Unable to save Billing Agreement:","Não foi possível salvar Acordo de Cobrança:" "Unit for billing during the subscription period.","Unidade de faturamento durante o período de subscrição." "Unsupported currency code: %s.","Código de moeda não suportada: %s." "Void action is not available.","Ação de cancelamento não está disponível." diff --git a/app/code/Magento/Payment/i18n/zh_CN.csv b/app/code/Magento/Payment/i18n/zh_CN.csv index 650342707b6ce..ad02c486e04bb 100644 --- a/app/code/Magento/Payment/i18n/zh_CN.csv +++ b/app/code/Magento/Payment/i18n/zh_CN.csv @@ -10,7 +10,6 @@ "Auto Bill on Next Cycle","下个周期自动记账" "Automatically Invoice All Items","对所有商品自动创建发票" "Automatically bill the outstanding balance amount in the next billing cycle (if there were failed payments).","下个记账周期对余款额度自动记账(如果有失败的支付的话)。" -"Billing Agreement status is not set.","记账协议状态未设置。" "Billing Amount","记账额度" "Billing Frequency","记账频率" "Billing Interval","记账周期" @@ -121,7 +120,6 @@ "Trial period frequency is wrong.","尝试周期频率有误。" "Trial period max cycles is wrong.","尝试周期最大周期有误。" "Two Weeks","两周" -"Unable to save Billing Agreement:","无法保存记账协议:" "Unit for billing during the subscription period.","订阅期限内的记账单位。" "Unsupported currency code: %s.","不支持的货币代码:%s" "Void action is not available.","空操作不可用。" diff --git a/app/code/Magento/Payment/view/adminhtml/form/cc.phtml b/app/code/Magento/Payment/view/adminhtml/form/cc.phtml index a959fe6516975..9639d74df0d1a 100644 --- a/app/code/Magento/Payment/view/adminhtml/form/cc.phtml +++ b/app/code/Magento/Payment/view/adminhtml/form/cc.phtml @@ -105,9 +105,9 @@ var SSChecked = function() { var elm = $('_cc_type'); if (['SS','SM','SO'].indexOf(elm.value) != -1) { - $('_cc_type_ss_div').show(); + jQuery('#' + '_cc_type_ss_div').show().removeClass('ignore-validate'); } else { - $('_cc_type_ss_div').hide(); + jQuery('#' + '_cc_type_ss_div').hide().addClass('ignore-validate'); } }; Event.observe($('_cc_type'), 'change', SSChecked); diff --git a/app/code/Magento/Payment/view/adminhtml/form/ccsave.phtml b/app/code/Magento/Payment/view/adminhtml/form/ccsave.phtml index f6d632f930b67..5862d71eec5ae 100644 --- a/app/code/Magento/Payment/view/adminhtml/form/ccsave.phtml +++ b/app/code/Magento/Payment/view/adminhtml/form/ccsave.phtml @@ -116,9 +116,9 @@ var SSChecked = function() { var elm = $('_cc_type'); if (['SS','SM','SO'].indexOf(elm.value) != -1) { - $('_cc_type_ss_div').show(); + jQuery('#' + '_cc_type_ss_div').show().removeClass('ignore-validate'); } else { - $('_cc_type_ss_div').hide(); + jQuery('#' + '_cc_type_ss_div').hide().addClass('ignore-validate'); } }; Event.observe($('_cc_type'), 'change', SSChecked); diff --git a/app/code/Magento/Payment/view/frontend/form/cc.phtml b/app/code/Magento/Payment/view/frontend/form/cc.phtml index d6f5e0a38132a..f00b0f21cbe2c 100644 --- a/app/code/Magento/Payment/view/frontend/form/cc.phtml +++ b/app/code/Magento/Payment/view/frontend/form/cc.phtml @@ -76,10 +76,10 @@
        - +
        diff --git a/app/code/Magento/Sales/view/frontend/billing/agreements.phtml b/app/code/Magento/Paypal/view/frontend/billing/agreements.phtml similarity index 98% rename from app/code/Magento/Sales/view/frontend/billing/agreements.phtml rename to app/code/Magento/Paypal/view/frontend/billing/agreements.phtml index 1611ca416dd4e..cac5faca8fa99 100644 --- a/app/code/Magento/Sales/view/frontend/billing/agreements.phtml +++ b/app/code/Magento/Paypal/view/frontend/billing/agreements.phtml @@ -22,7 +22,7 @@ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> - +
        getBillingAgreements(); ?> 0): ?> diff --git a/app/code/Magento/Paypal/view/frontend/checkout/onepage/success/billing_agreement.phtml b/app/code/Magento/Paypal/view/frontend/checkout/onepage/success/billing_agreement.phtml new file mode 100644 index 0000000000000..0ff348e20ca8f --- /dev/null +++ b/app/code/Magento/Paypal/view/frontend/checkout/onepage/success/billing_agreement.phtml @@ -0,0 +1,26 @@ + + +

        %s', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?>

        diff --git a/app/code/Magento/Paypal/view/frontend/layout/SHORTCUT_popup.xml b/app/code/Magento/Paypal/view/frontend/layout/SHORTCUT_popup.xml deleted file mode 100644 index 6abd619074b56..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/SHORTCUT_popup.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - 1 - - - after - - - - - - - 1 - - - after - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/catalog_category_view.xml b/app/code/Magento/Paypal/view/frontend/layout/catalog_category_view.xml index 93954b747f8a3..8ffeb3397cbf9 100644 --- a/app/code/Magento/Paypal/view/frontend/layout/catalog_category_view.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/catalog_category_view.xml @@ -24,7 +24,6 @@ */ --> - diff --git a/app/code/Magento/Paypal/view/frontend/layout/catalog_product_view.xml b/app/code/Magento/Paypal/view/frontend/layout/catalog_product_view.xml deleted file mode 100644 index df80c2c2a4541..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/catalog_product_view.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 1 - - - - - - - 1 - - - - - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/checkout_cart_index.xml b/app/code/Magento/Paypal/view/frontend/layout/checkout_cart_index.xml deleted file mode 100644 index 406bf753fa84b..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/checkout_cart_index.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - 1 - - - - - 1 - - - - - - - 1 - - - - - 1 - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/checkout_onepage_success.xml b/app/code/Magento/Paypal/view/frontend/layout/checkout_onepage_success.xml index 313d109b31dc3..7795d20aff15e 100644 --- a/app/code/Magento/Paypal/view/frontend/layout/checkout_onepage_success.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/checkout_onepage_success.xml @@ -24,5 +24,7 @@ */ --> - + + + diff --git a/app/code/Magento/Paypal/view/frontend/layout/customer_account.xml b/app/code/Magento/Paypal/view/frontend/layout/customer_account.xml new file mode 100644 index 0000000000000..884dfa61a8862 --- /dev/null +++ b/app/code/Magento/Paypal/view/frontend/layout/customer_account.xml @@ -0,0 +1,35 @@ + + + + + + + paypal/billing_agreement + Billing Agreements + + + + diff --git a/app/code/Magento/Paypal/view/frontend/layout/default.xml b/app/code/Magento/Paypal/view/frontend/layout/default.xml deleted file mode 100644 index c5d6aeafa3752..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/default.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - diff --git a/app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_index.xml b/app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_index.xml similarity index 87% rename from app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_index.xml rename to app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_index.xml index 53ae82c291ed8..b2390bc3ab6b2 100644 --- a/app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_index.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_index.xml @@ -26,6 +26,6 @@ - + diff --git a/app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_view.xml b/app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_view.xml similarity index 86% rename from app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_view.xml rename to app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_view.xml index f5bcc48c0ffcb..62eebc08ef863 100644 --- a/app/code/Magento/Sales/view/frontend/layout/sales_billing_agreement_view.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/paypal_billing_agreement_view.xml @@ -26,6 +26,6 @@ - + diff --git a/app/code/Magento/Paypal/view/frontend/layout/paypal_express_review.xml b/app/code/Magento/Paypal/view/frontend/layout/paypal_express_review.xml index d9bb4cf14d20d..0cfaa74173635 100644 --- a/app/code/Magento/Paypal/view/frontend/layout/paypal_express_review.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/paypal_express_review.xml @@ -45,7 +45,7 @@ as="totals" template="onepage/review/totals.phtml" cacheable="false"/> + as="agreements" template="agreements.phtml"/> diff --git a/app/code/Magento/Paypal/view/frontend/layout/paypal_payflowexpress_review.xml b/app/code/Magento/Paypal/view/frontend/layout/paypal_payflowexpress_review.xml index 5cdaf6ca42ce7..0b195afe9d890 100644 --- a/app/code/Magento/Paypal/view/frontend/layout/paypal_payflowexpress_review.xml +++ b/app/code/Magento/Paypal/view/frontend/layout/paypal_payflowexpress_review.xml @@ -43,7 +43,7 @@ as="totals" template="onepage/review/totals.phtml" cacheable="false"/> + as="agreements" template="agreements.phtml"/> diff --git a/app/code/Magento/Paypal/view/frontend/layout/review_product_list.xml b/app/code/Magento/Paypal/view/frontend/layout/review_product_list.xml deleted file mode 100644 index 313d109b31dc3..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/review_product_list.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/tag_customer_view.xml b/app/code/Magento/Paypal/view/frontend/layout/tag_customer_view.xml deleted file mode 100644 index 313d109b31dc3..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/tag_customer_view.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/tag_product_list.xml b/app/code/Magento/Paypal/view/frontend/layout/tag_product_list.xml deleted file mode 100644 index 313d109b31dc3..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/tag_product_list.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/app/code/Magento/Paypal/view/frontend/layout/wishlist_index_index.xml b/app/code/Magento/Paypal/view/frontend/layout/wishlist_index_index.xml deleted file mode 100644 index 313d109b31dc3..0000000000000 --- a/app/code/Magento/Paypal/view/frontend/layout/wishlist_index_index.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/app/code/Magento/Sales/view/frontend/payment/form/billing/agreement.phtml b/app/code/Magento/Paypal/view/frontend/payment/form/billing/agreement.phtml similarity index 94% rename from app/code/Magento/Sales/view/frontend/payment/form/billing/agreement.phtml rename to app/code/Magento/Paypal/view/frontend/payment/form/billing/agreement.phtml index 35b7c95f8c73d..e0ee151a77c25 100644 --- a/app/code/Magento/Sales/view/frontend/payment/form/billing/agreement.phtml +++ b/app/code/Magento/Paypal/view/frontend/payment/form/billing/agreement.phtml @@ -18,12 +18,11 @@ * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * - * @category design * @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> - + getMethodCode() ?>