I want to add custome validation for example firstname who user can’t use number But i don’t know why it doesn’t work I have create a module and create a file in view/frontend/web/js/validation.Js with below code : define([ 'jquery', 'jquery/ui', 'jquery/validate', 'mage/translate' ], function($){ 'use strict'; return function() { $.validator.addMethod( […]
Magento
I have a problem with the colissimo module I cannot print my parcel label because I have the following error The product code is incorrect but when I go to the product catalog my product does exist. Thank you in advance for your help
I had customize this XML <referenceContainer name="content"> <block class="MagentoCookieBlockRequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml"> <arguments> <argument name="triggers" xsi:type="array"> <item name="addToWishlistLink" xsi:type="string">.action.towishlist</item> </argument> </arguments> </block> <referenceBlock name="category.product.addto"> <block class="MagentoWishlistBlockCatalogProductProductListItemAddToWishlist" name="category.product.addto.wishlist" as="wishlist" before="compare" template="Magento_Wishlist::catalog/product/list/addto/wishlist.phtml"/> </referenceBlock> Below code is what I’ve added: <referenceBlock name="product.info.recurring.payments"> <block class="AmastyRecurringPaymentsBlockProductViewRecurringPayments" name="category.product.addto.sample" as="sample" before="wishlist" template="Magento_Wishlist::catalog/product/list/addto/wishlist.phtml"/> </referenceBlock> </referenceContainer> and here’s my php […]
How can I add this appearance from product page: to the catalog page: Please check also this question Support Question that was connected on this.
How can I reference the block of this catalog_product_view.xml file: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <update handle="amasty_product_component"/> <body> <referenceContainer name="product.info.form.content"> <block class="AmastyRecurringPaymentsBlockProductViewRecurringPayments" name="product.info.recurring.payments" before="product.info.addtocart" template="Amasty_RecurringPayments::product/view/subscriptions.phtml"/> </referenceContainer> </body> to this file: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <update handle="amasty_product_component"/> <update handle="customer_account"/> <body> <referenceContainer name="content"> <block class="MagentoCookieBlockRequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml"> <arguments> <argument name="triggers" xsi:type="array"> <item name="addToWishlistLink" xsi:type="string">.action.towishlist</item> </argument> […]
I write custom module for admin panel. The entire admin panel works correctly. Styles and scripts are loaded everywhere. But custom module page looks like I checked source code. Valid CSS path looks like http://test.ru/static/version1663599491/adminhtml/Magento/backend/en_EN/extjs/resources/css/ext-all.css But in custom module page I have this – <link rel="stylesheet" type="text/css" media="all" href="http://test.ru/static/version1663599491/adminhtml/_view/en_EN/extjs/resources/css/ext-all.css" /> […]
Upon trying to place a test order post upgrading Magento to 2.4.4, I found the following error in the system log. Could you please help me understand and fix the error? Next Exception: Report ID: webapi-6326e5782661e; Message: Validate class not found from basename ‘MagentoFrameworkValidatorEmailAddress’ in /home/magento/web/magento2.perfectmakeupmirrors.com/public_html/vendor/magento/framework/Webapi/ErrorProcessor.php:208 Stack trace:
Here is my catalog_product_view.xml: I want to insert one CustomBlock to this final price block, so i can use getChildHtml() to call in template final_price.phtml, but it does not work so far, why ? <referenceBlock name="product.price.final"> <block class="MagentoFrameworkViewElementTemplate" name="custom.block" template="CustomModule::custom.phtml"/> </referenceBlock>