New answers tagged

0

Found a way using Magento\Search\Model\ResourceModel\Query\CollectionFactory ... $searchCollection = $this->_queryCollectionFactory->create() ->setPopularQueryFilter($this->_storeManager->getStore()->getId()) ->setPageSize(5) ->load() ->getItems(); foreach($searchCollection as $k=>$v) { echo $vv->...


0

This error means item field doesn't exit in you pub/static/.. folder location. Try clearing out your pub/static folder containing all js files run command <magento root directory> rm -rf pub/static/* to remove all static files <magento root directory> bin/magento s:static-content:d -f to re-deploy all your static content.


0

You need to overide this method https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Controller/Product/View.php#L78 https://magento.stackexchange.com/a/86501/70343 Check stock with something like this https://magento.stackexchange.com/a/97952/70343 Then redirect using something like this https://magento.stackexchange.com/a/...


0

If you want to display out of stock Configurable Product price then need to override Magento\Catalog\Pricing\Render\FinalPriceBox.php file and change the code in protected function _toHtml() for display out of stock Configurable Product price. Follow below file path. File path: magento/app/code/Vendor/OutofstockProductPrice/registration.php <?php \...


1

Minicart confirmation popup button text Ok and Cancel option comes to the below file path. You can able to find that two button text form there. File path: magento/vendor/magento/module-ui/view/base/web/js/modal/confirm.js buttons: [{ text: $t('Cancel'), class: 'action-secondary action-dismiss', /** * Click handler. */ click: ...


1

The best practice is to use mixins way with the full path of js. app/code/Vendor/Module/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_Search/form-mini': { 'Vendor_Module/js/mixins/form-mini': true } } } }; app/code/Vendor/Module/view/frontend/web/js/mixins/...


Top 50 recent answers are included