Pass json object in Magento GraphQL
I am required to pass json object in GraphQL Query. Is there any alternate way to do this currently GraphQL support Json as String.
I am required to pass json object in GraphQL Query. Is there any alternate way to do this currently GraphQL support Json as String.
public function getProductCollection() { $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $filterableAttributes = $objectManager->create(MagentoCatalogModelLayerCategoryFilterableAttributeList::class); $attributes = $filterableAttributes->getList(); $price=$this->getRequest()->getParam(‘price’); $cat=$this->getRequest()->getParam(‘cat’); $sortby=$this->getRequest()->getParam(‘product_list_order’); if (empty($sortby)) { $sortby=’position’; } $listdesc=$this->getRequest()->getParam(‘product_list_dir’); $page=($this->getRequest()->getParam(‘p’))? $this->getRequest()->getParam(‘p’) : 1; //get values of current limit $pageSize=($this->getRequest()->getParam(‘limit’))? $this->getRequest()->getParam(‘limit’) : 3; $collection = $this->_productCollectionFactory->create(); $collection->addAttributeToSelect(‘*’); $collection->setOrder(‘title’,’ASC’);… Read More »In this collection This BEst seller give me error it’s not working, unable to sort by best seller ASC, DESC not working in this condition
I am trying to create a country dropdown for a custom product attribute. This is the error message: Error: Call to undefined method MagentoDirectoryModelConfigSourceCountry::setAttribute() in /var/www/html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:652 This is my install: $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, ‘countries’, [ ‘group’ => ‘Countries’, ‘type’ => ‘text’,… Read More »Country Dropdown For Custom Product Attribute does not work
How to add a reorder link in the order confirmation email Magento 2 using a custom controller?
I am trying to add category selector in my block page without UI component. This is my block file. <?php namespace UedakanamonoBannerSliderBlockAdminhtmlBannerEditTab; use MagentoBackendBlockTemplateContext; use MagentoBackendBlockWidgetButton; use MagentoBackendBlockWidgetFormElementDependence; use MagentoBackendBlockWidgetFormGeneric; use MagentoBackendBlockWidgetTabTabInterface; use MagentoCmsModelWysiwygConfig as WysiwygConfig; use MagentoConfigModelConfigSourceEnabledisable; use MagentoConfigModelConfigStructureElementDependencyFieldFactory;… Read More »How to add category select in admin block page without UI component?
I’m having some issues with connecting our magento backend url with Next js App The api request isn’t working correctly and give self signed certificate error My apollo client import { useMemo } from “react”; import { ApolloClient, HttpLink, InMemoryCache… Read More »Connecting graphql api backend link with Next13 self signed certificate
I’m trying to programmatically create a dynamic schema using the included webonyx/graphql extension like in this code snippet. Define my schema, it’s types, convert it to a string, paste its contents into the schema.graphqls and then flush the cache for… Read More »How to serve graphql schema directly instead of through a ‘schema.graphqls’ file
I tried overriding the info/purchaseorder.phml to add additional data on email and admin order view. I used plugin to override the template. The admin order view is working as expected but the order email is not sending. I checked the… Read More »Overriding info/purchaseorder doesn’t send order email
I am trying to create a new order using the /V1/orders/create rest API but when I search on google or dev docs it shows me a different set of API to do the order process (https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-intro.html). So is there a… Read More »Can you create new orders using the /V1/orders/create rest API?
An Adobe Commerce Architect is working on a multi-server horizontally scaled Adobe Commerce on-premise installation. There are three nodes up and running the Adobe Commerce installation: node A, node B, and node C. A load balancer redirects traffic to each… Read More »Magento Multiple nodes maintenance mode(exam question)