New answers tagged

0

Add 'validation' index in layout processor for your custom field as 'validate-area-required' => true, And add your mixin validation-mixin.js with define([ 'jquery', 'Magento_Ui/js/lib/validation/utils' ], function ($, utils) { "use strict"; return function (validator) { var selected_country = $('div#shipping-new-address-form&...


0

This can be due to multiple reason and can impact cumulatively. Analyses below stated and points and act on each. Important one as per your screen posted. 1. Low quality of hosting, VPS: 2. Run in Production mode. 3. Check JS overall required on checkout,lower the JS size better it will be. 4. Turn on cache( I expect this is in place). 5. Analyses ...


1

That is magento's definition of one page checkout. Notice how the controller stays the same when switching between shipping and payment. This terminology comes from Magento 1 where before 'One page checkout' the checkout was split into multiple steps and separate screens. One page checkout was added after. If you are after truly on one page you will have ...


0

curl_setopt($ch, CURLOPT_SSLCERT, '/home//public_html/certs/ApplePay.crt.pem'); curl_setopt($ch, CURLOPT_SSLKEY,'/home//public_html/certs/ApplePay.key.pem');


2

Create an around plugin on the method Magento\SalesRule\Model\RulesApllier::addDiscountDescription. That's the one that adds the coupon code to the discount title. Make it look like this: public function aroundAddDiscountDescription( \Magento\SalesRule\Model\RulesApplier $rulesApplier, callable $proceed, \Magento\Quote\Model\Quote\Address $...


1

VAT Validation is native in Magento 2.3.x: https://docs.magento.com/m2/ee/user_guide/tax/vat.html You can find the configurations, Validation, and how to configure VAT ID Validation. In certain business-to-business transactions, VAT is not assessed. Magento can validate a customer’s VAT ID to ensure that VAT is assessed (or not assessed) properly. See ...


1

Please Follow below steps for validate VAT Number in checkout on selection of shipping country Note : Magento is checking VAT(tax) Validation only for European countries. 1. Vendorname\Modulename\etc\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...


0

This error results from invalidly configured payment method in admin. However I can't tell you how to fix yet as I don't know which payment method you are using. Please go to stores => configuration => sales => payment method to check this information


0

try this: function() { var spinner = $(this), input = spinner.find('input[type="your inpur type"]'); }


1

You can use Magento\Customer\Model\Session $customerSession to get current customer group id for logged in customers. You can use the below code in your DisablePayment.php file for the same. namespace Vendor\Module\Observer; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; use Psr\Log\LoggerInterface; class ...


0

Open the Developer tools in Chrome or Firefox and right click to select inspect element,once you have the target click in hover and inspect the CSS properties, maybe the text is the same color that your background.


1

I had the same problem. The component option of your custom_field must be declare as "Magento_Ui/js/form/element/select" instead of "Magento_Ui/js/form/element/abstract". Regards.


0

Override core price.js for shipping method into your theme. path : /vendor/magento/module-tax/view/frontend/web/js/view/checkout/shipping_method/price.js move the file in your theme Replace below code : /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ define([ 'uiComponent', '...


0

Also remove this js code from your pub folder. It may be pub/static/frontend/MyVendor/MyTheme/js/theme.js I just finished dealing with the same problem. In my case, I wanted to render the cart summary widget in another page and being sticky just ruins everything. I simply ran the following line of code when my javascript component loads and it removes ...


1

I have got the solution. It is very simple like javascript variable window.checkoutConfig contains many other variables and checkout details. To get checkout cart URL, use window.checkoutConfig.cartUrl to get cart URL. I have updated my code as below and it worked! <div class="actions-toolbar" id="shipping-method-buttons-container"> <div ...


0

The problem lies on the store's language which could contain special characters such as " ' \ / Let's say you have these code in your phtml template: <script> require([ 'theJsClassYouWantedToLoad', 'mage/translate' ], function (theJsClassYouWantedToLoad, $t) { var test = $t('Some random text'); }); </script> ...


0

I was facing this problem on Magento 2, and realized it only happens when using Redis. The problem was solved by increasing break_after_frontend from 5 to 15 in app/etc/env.php. I saw people struggling with the same problem on Magento 1, and the solution is quite much the same, but in app/etc/local.xml as described here.


2

You need to override template in below path inside your custom theme. app/design/frontend/vendor/theme/Magento_Checkout/web/template/form/element/email.html <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <!-- ko ifnot: isCustomerLoggedIn() --> <!-- ko foreach: getRegion('before-...


1

Here is what made it work: protected function getCustomOptions(): array { // used $json as a test to see if it works $json = "{\"_1564763325005_5\":{\"addresses\":\"123 My Street, Bldg. 1, Palm Springs, CA 92234\"},\"_1566830530708_708\":{\"addresses\":\"2123 My Street, Bldg 23, Reno, NV, 12345\"}}"; $arrayResult = json_decode($json, ...


0

BTW, in the last image of my question i got another error i just wanna share how i solved it, so the error was about 404 of jquery.hashchange.js, but i found that in Magento 2.3.2 there is no need for jquery.hashchange.js, in my project i have some Custome Module and overridden files which was messing with jquery, This Commited Changes helped me, Remove ...


1

The FCA have recently announced an 18-month plan (extension?) to this. The FCA will not take enforcement action against firms if they do not meet the relevant requirements for SCA from 14 September 2019 in areas covered by the agreed plan, where there is evidence that they have taken the necessary steps to comply with the plan. At the end ...


0

The sales rules heavily depend on the customer group and address. The validation is done in app/code/core/Mage/SalesRule/Model/Validator.php by the protected function _canProcessRule($rule, $address). Since _canProcessRule is a protected method, you can't use it directly, but you can extend app/code/core/Mage/SalesRule/Model/Validator.php and add your own ...


0

Please override this file to your theme like : vendor/magento/module-checkout/view/frontend/web/shipping-information.html to app/design/frontend/theme/default/Magento_Checkout/web/shipping-information.html


0

What you need to do is to add a new field to the address model. All you need to do is to follow the steps present on this page of the official Magento 2 documentation: https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html


0

Something like this should work no issue tried and tested. <?php namespace Vendor\Module\Block\Checkout; use Magento\Checkout\Model\Session; use Magento\Framework\View\Element\Template\Context; use Magento\Sales\Model\OrderFactory; class Success extends \Magento\Framework\View\Element\Template { protected $scopeConfig; protected $...


1

I have asked this from Magento slack channel, see below: Piotr just replied: ok got some clarifiication. PayPal Standard/Express/HSS Pro is not affected. All the others (PayFlow Pro, PayFlow Link, PP Payments Pro 2.0/3.0, PP Advanced) are affected and the recomemdnation is to switch to Braintree


2

From what i can see, your content hasnt been deployed properly. The solution for this is to redeploy. please follow the below steps to do this rm -rf var/view_processed/ pub/static/ generation/ bin/magento setup:di:compile bin/magneto setup:static-content:deploy (if you have additional languages e.g. en_US en_GB de_DE) -f bin/magento c:f this should ...


0

I use this approach: require(['Magento_Checkout/js/action/get-totals'], function(a) { a([]); } );


2

Remove Postcode from Checkout Beacuse the php validation return false, inside class Magento\Quote\Model\Quote\Address you will find validate function : First create the di.xml inisde you extension directly in folder etc YourVendor/YourExtName/etc/di.xml and fill : <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...


0

Try changing xml to <item name="city" xsi:type="array"> <item name="visible" xsi:type="boolean">false</item> <item name="validation" xsi:type="array"> <item name="required-entry" xsi:type="boolean">false</item> </item> </item>


1

The FCA have recently announced an 18-month plan (extension?) to this. The FCA will not take enforcement action against firms if they do not meet the relevant requirements for SCA from 14 September 2019 in areas covered by the agreed plan, where there is evidence that they have taken the necessary steps to comply with the plan. At the end of the 18-month ...


3

This new directive has a significant compliance impact on most payment processing services involving credit cards or bank transfers for goods & services sold to customers in the EU. If you need to take action depends on the way each payment module is working. PayPal redirects to their own payment page, so they should take care of the PSD2 requirements. ...


0

It seems quite clear from the exception that the weights passed to shipping method for the item in the cart is not a well-formed integer value. You'll have to investigate the source of weights is it product data or some other source.


Top 50 recent answers are included