Hot answers tagged

2

First : Try to rm -rf generated/ then bin/magento setup:di:compile to be sure your generated code is the good one. If the error persist you might have an issue in your magento installation ? I would recommend to make sure your composer dependencies is up do date with the vendor. Quick fix if nothing works try to setup an empty array for the required null ...


2

You have to set default store Id like the below code. $prices[] = $this->specialPriceFactory->create() ->setSku('test-sku') ->setStoreId(0) ->setPrice($data[1]) ->setPriceFrom($priceFrom) ->setPriceTo($priceTo); 0 is the default store id if we have to set 0 then it's applicable for all


2

You need to follow this steps : Confirm the Elasticsearch is configured and running properly for magento 2.4.3 Try to run this command. php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento setup:di:compile sudo chmod -R ...


1

I can give you the answer to your 1st question which is:: 'first_name and last_name in newsletter form in frontend.' this, as I am the new learner so there will be some mistakes in naming conventions and all hope you we never mind The answer of:: first_name and last_name in newsletter form you have to override the core phtml file of this form in your custom ...


1

Try this <?php namespace Hl\Smsnotification\Helper; use Magento\Framework\App\Helper\Context; use Magento\Framework\Locale\CurrencyInterface; use Magento\Store\Model\StoreManagerInterface; use Magento\Store\Model\ScopeInterface; use Magedelight\SMSNotification\Helper\Data as MainHelper; class Smsdata extends MainHelper { private $storeManager; ...


1

Update the Smsdata.php constructor as below and try again. public function __construct( Context $context, CurrencyInterface $localeCurrency, StoreManagerInterface $storeManager ) { $this->storeManager = $storeManager; $this->localecurrency = $localeCurrency; parent::__construct($context, $localeCurrency, $storeManager); } we ...


1

Elasticsearch is required for latest Magento installations, it won't work without it. You can work towards building your own mysql search after removing search functionality entirely for Magento along with elasticsearch if you do want to remove elasticsearch. If you want to go that route you can follow this blog post - https://www.yireo.com/blog/2020-09-26-...


Only top voted, non community-wiki answers of a minimum length are eligible