A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

Try to change Index product price into Update By Schedule. I found that plugin tries to reindex prices in trunsaction.


0

Finally, I've figured out by myself, I want popup preview on grid's actions Column, so you can start by adding below code Test/PreviewPopup/view/adminhtml/layout/previewpopup_actionslog_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...


0

Make sure that the cookie domain is set to your domain: php bin/magento config:show web/cookie/cookie_domain if not, then set it like this: php bin/magento config:set web/cookie/cookie_domain www.example.com


0

Here is your block file code protected $_countryFactory; public function __construct( .............................. \Magento\Directory\Model\Config\Source\Country $countryFactory, .............................. ) { .............................. $this->_countryFactory = $countryFactory; .............................. } protected function _prepareForm(...


0

After making some efforts,i found mistake in id of country field and region(State) field, Thanks For Support!


0

Follow This Step :- 1) rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code 2) php bin/magento setup:upgrade 3) php bin/magento setup:static-content:deploy en_US -f 4) php bin/magento cache:flush


0

The command you were running missing the theme and language code. bin/magento setup:static-content:deploy --theme Magento/backend en_US


0

Recently experienced the same thing on a Magento 2 install, having already updated my app/etc/env.php and all the references in core_config_data and run a cache:flush. Running setup:di:compile fixed this for me (even though the site I'd moved was in development mode).


0

Hi this is the good code to create programatically a product image attribute, and add it to images group, tested on magento 2.3.3 File : upgradeSchema.php <?php namespace YourExtension\Catalog\Setup; class UpgradeSchema implements \Magento\Framework\Setup\UpgradeSchemaInterface { /** * Eav setup factory * @var EavSetupFactory */ private $...


0

I'm not sure if anyone else is still having this issue, but here is what worked for me. Upgraded from 1.9.x to 2.3.3. The issue is duplicate entries in the url_rewrite table. The issue was on removing .html suffix on just products. After backing up the url_rewrite table I ran UPDATE `url_rewrite` SET `request_path` = REPLACE(`request_path`, ".html", "") ...


0

I made an helper that accordingly to the customerId on frontend, returns true or false if he's admin (all you gotta do is place the customerId that is an admin frontend's account). public function isAdmin(){ $customerId = $this->_customerSession->getId(); if($customerId == 3){ return true; } else return false; ...


0

After endlessly trying all the suggested tweaks to php.ini and cleaning cache, my magento2 still wouldn't accept cookies from localhost even if I used the linux machine name instead, making it seem like a domain name. i finally resorted to using localho.st which is a domain name that resolves dns to your local ip address and this is what worked.


0

UPDATE catalog_product_entity SET sku='' WHERE sku IS NULL; worked for me, thanks Sohel.


0

Wow, still relevant in 2020. Only thing that works for me is to leave cookie domains blank on both domain.com and dev.domain.com (I use non-www same as OP) and then set different backend admin urls via Custom Admin Path setting in admin. Obviously you have to do this via database if you can't access directly. Anyone comment on the dangers of leaving cookie ...


0

A route will turn a URL into an Action Controller and a method. Unlike other convention based PHP MVC systems, with Magento you need to explicitly define a route in the global Magento config. For more details, Can you please read.


1

Assume you are using a custom module names "Company_MyModule". step 1) create requirejs-config.js under app/code/Company/MyModule/view/frontend/ File : app/code/Company/MyModule/view/frontend/requirejs-config.js var config = { map: { '*': { configurable: 'Company_MyModule/js/configurable-custom' } } }; step 2) ...


2

Method 1: Override configurable js without mixin Create requirejs-config.js under app/code/Vendor/Module/view/frontend/requirejs-config.js with below content: var config = { map: { '*': { 'Magento_ConfigurableProduct/js/configurable':'Vendor_Module/js/configurable' } } }; Now create configurable.js under app/code/Vendor/Module/...


Top 50 recent answers are included