I’m getting the below error: [2022-09-20T20:10:16.753904+00:00] main.CRITICAL: Error: Call to a member function isSaleable() on null in C:xampphtdocsmagento2vendormagentomodule-catalogviewfrontendtemplatesproductlistaddtocompare.phtml:32 and the line 32 was contain a code: <?php if ($product->isSaleable() && $block->isRecurringEnable($product)): ?> also the $product contains: public function getProduct() { $product = parent::getProduct(); if ($product && $product->getTypeInstance()->getStoreFilter($product) === null) { […]
Magento2
Magento Open Source 2.4.5 I am having issues with emails. They are coming through without the email body content and just “We’re sorry, an error has occurred while generating this content.” The following is from our system.log: InvalidArgumentException: Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded in […]
I am using a custom theme built off of Amasty’s Jet Theme. I am trying to use the grouped product type to sell parts from a schematics image. The idea is to have the schematic full width across the top of the product page, with all of the grouped items […]
After running site audits with Google Insights and Lighthouse I am getting the following: Ensure text remains visible during webfont load Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading. Learn more.FCPLCP Magento Specify @font-display when defining custom fonts. URL Potential Savings …font/porto-icons.woff2 (www.mydomain) 20 […]
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( […]
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> […]