I want to add a column of a newly created boolean attribute, but it doesn’t work, I have read blogs where they give the same advice but it hasn’t worked I have followed the following steps: Create boolean attribute: Extend the Product class from the vendor appcodeVendorModuleetcadminhtmldi.xml <?xml version="1.0"?> <config […]
Daily Archives: July 30, 2021
To optimize magento2 i have created admin as separate node (ubuntu20)and fronted node(ubuntu20) in AWS. Now im trying to implement Elastic cache redis with magento. I have created Redis in AWS but im bit confused with the approach, can some guide me if the following is right way Install redis […]
I created: di.xml on app/code/Filter/Sorting/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoCatalogModelConfig"> <plugin name="Filter_Sorting::addCustomSortOptions" type="FilterSortingPluginModelConfig" /> </type> <type name="MagentoCatalogBlockProductProductListToolbar"> <plugin name="Filter_Sorting::implementCustomSortOptions" type="FilterSortingPluginProductProductListToolbar" /> </type> </config> for my Config.php on app/code/Filter/Sorting/Plugin: <?php namespace FilterSortingPluginModel; class Config { public function afterGetAttributeUsedForSortByArray(MagentoCatalogModelConfig $catalogConfig, $options) { //Remove default sorting options unset($options['position']); unset($options['name']); unset($options['price']); //New […]
I have overridden Magento’s default order grid controller. I’m trying to apply different filters based on the custom cookie I set. My di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoSalesModelResourceModelOrderGridCollection" type="SalesfilterGridModelResourceModelOrderGridCollection" /> </config> This override is working fine! My class: <?php /** * Copyright © Magento, Inc. All rights reserved. […]
We got a custom shipping module created to handle shipping to addresses from within the US and Canada. I would need to change tax label from Tax to Tax(PST/GST/HST) in the payment page only when the destination country is Canada. Below is the whole script handling custom shipping. How can […]
We all know the popularity of the Chrome browser. This browser has made life easier for developers and being a developer using its built-in developer… Read More The post 9 Features of Chrome Developer Tools That You Must Know appeared first on GeeksforGeeks.
Given the adjacency list and number of vertices and edges of a graph, the task is to represent the adjacency list for a directed graph.… Read More The post Print Adjacency List for a Directed Graph appeared first on GeeksforGeeks.
Three characters {#, *, . } represents a constellation of stars and galaxies in space. Each galaxy is demarcated by # characters. There can be… Read More The post TCS CodeVita 9 ( Zone 1) 2020 | Constellation appeared first on GeeksforGeeks.
Given an integer N, the task is to find the minimum steps to visit all integers in the range [1, N] by selecting any integer… Read More The post Minimum jumps to traverse all integers in range [1, N] such that integer i can jump i steps appeared first on […]