Skip to content

Siteground: ftp like snail

Hi, Anyone use this hosting? Cannot use wget to download. Use ftp but connection like using modem 56k. Even my speed is 300Mbps but downl… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1898690&goto=newpost

Magento 2 get categories graphql fails with “There is no attribute class assigned to field categoryList”

Request: query { categories { items { name } } } Error Response: { “errors”: [ { “debugMessage”: “There is no attribute class assigned to field categoryList”, “message”: “Internal server error”, “extensions”: { “category”: “internal” }, “locations”: [ { “line”:… Read More »Magento 2 get categories graphql fails with “There is no attribute class assigned to field categoryList”

How and when should I use the Magento 2 commands bin/magento setup:upgrade, bin/magento setup:di:compile, and bin/magento static:content:deploy -f?

I’m new to Magento 2 and I’m trying to understand the purpose and appropriate usage of some important commands. Specifically, I would like to know more about the following commands: bin/magento setup:upgrade bin/magento setup:di:compile bin/magento static:content:deploy -f What are the… Read More »How and when should I use the Magento 2 commands bin/magento setup:upgrade, bin/magento setup:di:compile, and bin/magento static:content:deploy -f?

In magento 2 javascript , How i can wait till a component/node initialize then i can excute my code?

How to wait till components exists in registry . I want to wait till global component “messages” initialize then I can add error/success message. // view/frontend/templates/messages.phtml <script type=”text/x-magento-init”> { “*”: { “Magento_Ui/js/core/app”: { “components”: { “messages”: { “component”: “Magento_Theme/js/view/messages” }… Read More »In magento 2 javascript , How i can wait till a component/node initialize then i can excute my code?

custom attribute value not save in the Database

<?php declare(strict_types=1); namespace VendorModuleSetupPatchData; use MagentoEavModelConfig; use MagentoEavModelEntityAttributeSetFactory as AttributeSetFactory; use MagentoEavModelEntityAttributeSourceBoolean; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkExceptionLocalizedException; use MagentoFrameworkSetupPatchDataPatchInterface; use Zend_Validate_Exception; /** * @class CustomerSync */ class CustomerSync implements DataPatchInterface { /** * @var Config */ private Config $eavConfig; /** *… Read More »custom attribute value not save in the Database

How to change cart subtotal price in order summary block magento2

How can I do that? this is my code. $quote = $this->checkoutSession->getQuote(); $grand_total = $quote->getGrandTotal(); $new_grand_total = $grand_total + $fee; $quote->setGrandTotal($new_grand_total); $quote->setBaseGrandTotal($new_grand_total); $quote->collectTotals(); $quote->save(); $this->checkoutSession->getQuote()->collectTotals()->save();