I am required to pass json object in GraphQL Query. Is there any alternate way to do this currently GraphQL support Json as String.
Magento1
How to define details array in the below request: query{ results( id: "56", details: { name: "yamini", bloodGroup: "AB+" age:25 } ) { message } }
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', 'frontend' => '', 'label' => 'Countries', 'input' => 'multiselect', 'class' […]
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'); $collection->setPageSize($pageSize); $collection->setCurPage($page); foreach ($attributes as $attributes1 ) { $attributefrontend = […]
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 logs and found this issue. [2023-07-02T18:23:59.552138+00:00] report.CRITICAL: MagentoFrameworkExceptionValidatorException: Invalid template […]
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 node evenly. The Remote Storage module is enabled and set […]
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 way to create an order using /V1/orders/create? if none then […]
So basically I added a custom select address attribute. This selection has 2 available values. If value A is selected the required validation of the form for firstname and lastname is removed and making the company input required. If value B is selected it will be vice versa. The saving […]
so other than the baseline required apache mods for magento 2.4.4 (as per https://devdocs.magento.com/guides/v2.3/install-gde/prereq/apache.html). What other mods do you think should be enabled in apache to improve performance? For example, I noticed that I don’t have mod_cache enabled, should I? Or will that break magento? Thanks for your advice in […]