11

I found my problem... Magento 2 has a built in feature that allows the user to specify countries for optional post code. In that feature, you can remove validation for selected countries. Settings can be found in: Admin Panel > Stores > Settings > Configuration > General > General > Country options > Zip/Postal Code is Optional for You have to un-tick ...


11

Here is the short answer: Magento load all css assets into asset groups. Asset groups are created based on the css properties and which is what stands crucial for the rendering order of css assets. In Details First of all, There are lot of things happens behind the scene. So in order to make this answer abbreviated as possible, I would love to consider an ...


6

I was facing the same problem after creating a custom theme. Whenever I tried to deploy the static content using command: php bin/magento setup:static-content:deploy -f I was facing an error saying: Cannot read contents from file ...... etc. After debugging, I found that in the theme table of my database.. The parent_id for the newly created theme was ...


5

EDIT: This describes why it was failing and a way to work around it, but JNDPNT/Altravista has the right answer so I updated. Trouble is, we want to run setup:upgrade as late in the deploy process as possible - in the chance something happens to bail the deploy, allows easier rollback than after setup:upgrade has run. It's unfortunate to have to change this ...


4

Yes you can achieve this thing by writing small code What you can do is add add layout via event layout_load_before, you can use this event to add your dynamic layout. Here is sample code for you, please modify as per your need what you can do is create events.xml in your module [Vendor]/[Module]/etc/frontend/events.xml <?xml version="1.0"?> <...


4

when you create a new theme you need to run bin/magento setup:upgrade before deploy


4

It is possible that the type of your theme is changed to virtual. You can check the same in table theme. The value in type column has to be 0. 0: Physical 1: Virtual 2: Staging


4

You should first start by understanding basic structure of Magento if you are a beginner, for that you can read from devdocs. Check here, you can take some help of basics of frontend development. I also suggest to read some blogs of experts suggested here Even you can attend bootcamps arranged by Magento community itself.


4

Create below path in your custom theme: app/design/frontend/{{your package}}/{{your theme}}/Magento_Checkout/ Copy the required template, layout or web files to be modified from vendor/magento/module-checkout/view/frontend Update the files and flush cache to get the changes reflected. If you are modifying web files then don't forget to redeploy the ...


4

We are creating a custom theme based on pwa-studio with this repo https://github.com/Jordaneisenburger/fallback-studio


3

The value of the htmlId attribute must be matched by the regular expression [a-zA-Z][a-zA-Z\d-_:]. [a-zA-Z][a-zA-Z\d-_:] means Start with a letter (uppercase or lowercase) rest of the characters can be: a letter (uppercase or lowercase) a digit (0 to 9) the character - (minus) the character _ (underscore) the character : (colon) That's it. You are ...


3

Ok, it seems you can use the displayArea rather than trying to remove the component. Setting; displayArea="nothing" seems to have removed it


3

Magento 2.2 and 2.1 does not have feature for support the pwa. One of most import component of PWA that is GraphQl that does not exit Magento 2.1 and magento 2.2. If you want to use pwa then use Magento version 2.3.


3

app/design/frontend/Module/theme/Magento_Checkout/web/template/minicart/item/default.html <div class="product-item-pricing"> <!-- ko if: canApplyMsrp --> <div class="details-map"> <span class="label" data-bind="i18n: 'Price'"></span> <span class="value" ...


2

Use as below... <css src="Magento_Theme::css/home/slider.css" media="all" /> instead of <css src="Magento_Theme::css/home/slider.css" />


2

I have patch for this issue. You need to override these two files. vendor/magento/module-wishlist/Helper/Data.php vendor/magento/module-wishlist/Observer/CustomerLogin.php Override Data.php and CustomerLogin.php with di.xml app/code/{Vendor}/{Module}/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...


2

This is too broad question but i tried sum up for you. You can create the basic theme with currently provided link. But for creating theme data import you need to create module's for importing data. Like if follow this example for creating the cms block for run time. Create installer Script Create csv data Save with model Now taking example <?php ...


2

You can remove class by this way: Go to your admin panel > cms home page. There is one tab DESIGN and in this tab add your XML code in Layout Update XML area. <referenceContainer name="container_name" htmlClass=""> Keep empty so it will remove the class. Run command: php bin/magento cache:flush


2

The correct path is: app/design/frontend/MJ/theme/Magento_Braintree/web/template/form.html Delete all the other files and make sure you’ve deployed static content. Depending on the version of Magento 2 and your deployment mode, that might be what’s causing the issue. Go to pub/static/{your file path} and check if the file exists. It will only work when the ...


2

If you only need to translate success message Than There no need to override whole controller. You can create CSV file and add your desired translation. app/design/frontend/VendorName/ThemeName/i18n/en_US.csv Than add as below. "Thank you for registering with %1.","Your custom text" Deploy static content and clear cache.


2

In addition to Sourav's answer, from what I can tell under Magento 2.3.3 you also need to override the vendor/magento/theme-frontend-luma/Magento_Theme/layout/default_head_blocks.xml file in your theme as the default_head_blocks.xml includes these lines: <font src="fonts/opensans/light/opensans-300.woff2"/> <font src="fonts/opensans/regular/...


2

I cannot explain this, but the error was fixed by just rearranging the elements in one line like this: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::THEME, 'frontend/Test/mine', __DIR__ ); Reference here


2

Correct name should be: Magento_PageCache if you want to override template(.phtml), theme file path will be: app/design/frontend/{Package}/{theme}/Magento_PageCache/templates For layout(.xml) it should be: app/design/frontend/{Package}/{theme}/Magento_PageCache/layout


2

First of all, If you've set favicon from Design Config, you need to remove that icon if you want to display different favicon for front-end and back-end. So please remove favicon icon from here and save config and then clear cache. Content > Design > Configuration > Select your Store view and edit > HTML Head > Favicon icon > Remove > Save Config And if ...


2

Hope this three commands will solve your problem php bin/magento se:up php bin/magento setup:static-content:deploy -f php bin/magento s:d:c also enable the cache php bin/magento cache:enable or else try uninstall the theme php bin/magento theme:uninstall


1

You can change the text "Save 60% off sale" from the static block. Go to Content -> Static Blocks from admin and find the static block "Home Images Block" with an identifier "home-images-two" and edit text and save this static block. After this flush cache. You can change the text "Find Your Next Magento 2 Theme" from the static block. Go to Content -> ...


1

Try to run below commands in magento2 directory php bin/magento setup:upgrade //Install/upgrade modules, clear caches, di, view_preprocessed, etc. php bin/magento setup:static-content:deploy [<languages>] // Generate static content


1

This is not a valid json {'openedState': 'active', , 'active': true} Notice the 2 commas with just a blank space between them. Check where this is generated and why do you get an empty space.


1

Weird problems usually have weird solutions All was working fine, but some catalog categories in project had checked attribute "Use parent category settings", and that parent category had forced the original Theme1/custom


1

Try the below xml code: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block class="Backend\RewriteSales\...


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