Skip to content

magento man

escapeUrl is deprecated?

Can someone help & explain to me what does escapeUrl is deprecated mean? What I need to do for the changes? thanks <?= /* @escapeNotVerified */ $item->getQtyOrdered() ?> x <a href=”<?= $block->escapeUrl($productUrl) ?>”><?= /* @escapeNotVerified */ $block->getProductName($item->getProductId()) ?></a>

Error: Call to a member function isSaleable() on null

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() {… Read More »Error: Call to a member function isSaleable() on null

Magento2.3.5: How to get Customer Grid custom columns values in CSV?

I want to to add custom columns values in export option in customer grid, but only heading are showing in csv file not values. here is my customer grid custom columns. VendorModule/view/adminhtml/ui_component/customer_listing.xml <?xml version=”1.0″ encoding=”UTF-8″?> <listing xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <columns name=”customer_columns”… Read More »Magento2.3.5: How to get Customer Grid custom columns values in CSV?