here is my Code public function checkCondition() { // $PrId = $this->_registry->registry(‘current_product’); // $prdId = $PrId->getId(); $categoryId = $this->getRequest()->getParam(‘id’); $ruleColl = $this->customConditionModel->create()->getCollection(); foreach ($ruleColl as $ruleKey => $ruleVal) { $prdData = $this->categoryFactory->create()->load($categoryId); $Data[] = $ruleVal->getConditions()->getName(); } $data = isset($Data); if($Data == false){ echo ''; }else{ return $Data; } // $data1 […]
Magento1
Magento2 how to convert resed password toke to readable format In M2.3 do you now how was this rp token string getting converted to code that we enter {{trans “your reset token :%token” token=$customer.rp_token}} In 2.3 code was like 45678 & M2.4 it is string value 3djzQWgymtFYsc4sKNuCIDxUG3vVkcvm
Hi I have installed magento 2 on docker.when I stop and start the container ,it shows error: failed switching to “root”: operation not permitted After I run as root also the issue persist.docker.compose.yml file as follows version: '3' services: web: image: webdevops/php-apache-dev:8.1 container_name: web restart: always user: application environment: - […]
I installed the Sebwite side-bar category extension successfully for the project, I’m currently working on and it is showing perfectly on the front end. I created a separate root category for the sidebar and it’s showing perfectly on the front end. The issue is if I click on any category […]
I made my first form: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">customer_form.customer_form_data_source</item> </item> <item name="label" xsi:type="string" translate="true">Blogpost Actions</item> <item name="reverseMetadataMerge" xsi:type="boolean">true</item> </argument> <settings> <buttons> <button name="save" class="MageGuideFirstModuleBlockAdminhtmlEditSaveButton"/> <button name="back" class="MageGuideFirstModuleBlockAdminhtmlEditBackButton"/> </buttons> <layout> <navContainerName>content</navContainerName> <type>tabs</type> </layout> <deps> <dep>add_blogpost.blogpost_data_source</dep> </deps> </settings> <fieldset name="blogpost"> <settings> <label […]
I made my own form: <?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">customer_form.customer_form_data_source</item> </item> <item name="label" xsi:type="string" translate="true">Blogpost Actions</item> <item name="reverseMetadataMerge" xsi:type="boolean">true</item> </argument> <settings> <buttons> <button name="save" class="MageGuideFirstModuleBlockAdminhtmlEditSaveButton"/> <button name="back" class="MageGuideFirstModuleBlockAdminhtmlEditBackButton"/> </buttons> <layout> <navContainerName>content</navContainerName> <type>tabs</type> </layout> <deps> <dep>add_blogpost.blogpost_data_source</dep> </deps> </settings> <fieldset name="blogpost"> <settings> <label […]
I am learning magento extention creation, and I try to add a “Create New” record in my admin grid. So far I made this grid: namespace MageGuideFirstModuleBlockAdminhtml; use MageGuideFirstModuleModelFactoriesBlogPostCollectionFactory as BlogPostCollectionFactory; use MagentoBackendBlockTemplateContext; use MagentoBackendHelperData; use MagentoFrameworkObjectManagerInterface; use MagentoBackendBlockWidgetGridExtended; use MagentoFrameworkRegistry; class Grid extends Extended { // also you can […]
I’m using magento 2, upgraded to the last version 2.4.6-p2, and I’m having an issue with the success page, but not with all payment methods… What I get in the success page is: 1 exception(s): Exception #0 (Exception): Unknown Config Class Exception #0 (Exception): Unknown Config Class <pre>#1 MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() called […]
I’m running Magento 2.4.4. I’m facing a bit of an issue with Magento 2 backend – it keeps booting me out when I’m working with multiple tabs. To put it simply, I’m tinkering with a few item cards simultaneously. When I hit the save button to store my changes, a […]