All Questions
2,007 questions
1
vote
2
answers
1k
views
Magento 2: How can we prevent HTML from being shown in the text that comes from en_US.csv file?
In en-US.csv file in our custom theme, I got a translation as below.
"We'll email you an order confirmation with details and tracking info.","Within 10 minutes we'll send an email to ...
0
votes
1
answer
183
views
Overriding a .phtml file in custom theme doesn't work
I've been trying to override D:\Projects\PMM-M2\public_html\vendor\magento\module-checkout\view\frontend\templates\success.phtml by placing the file in my custom theme at location D:\Projects\PMM-M2\...
0
votes
1
answer
588
views
Apply separate theme to multiple store view in Magento 2
I created multiple store views in the backend like Store 1, Store 2, and Store 3. Now I have three separate themes so want to assign them separately to store views.
In the backend System-> ...
1
vote
0
answers
28
views
How to create non-modularized language packs
What are the structural differences and how do you create the non-modularized language pack? Per https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/translations/xlate.html#m2devgde-xlate-...
0
votes
1
answer
399
views
Upgrade magento 2 theme
I have upgraded Magento with the latest version (i.e 2.4.4).
I would like to start upgrading the theme now (i.e Porto theme).
Version "2.2.1" is currently installed & version "4.0.2&...
9
votes
5
answers
9k
views
How to create admin theme for Magento2
This method works for Magento 1 but not for Magento 2 (version 0.42.0-beta10):
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/admin/using_custom_admin_theme_templates
4
votes
6
answers
2k
views
How to turn on Template Path Hints in Magento2 Through Code edit
I know that you can turn template path hints on in Magento2 through the Admin Panel at Stores > Configuration > ADVANCED > Developer.
Although in Magento 1 I find it much quicker to temporarily edit ...
1
vote
2
answers
573
views
Own Theme - Working with own icons
I want to add Icons for Cart, Wishlist and Account Links in the header.
I placed them /app/design/frontend/vendor/theme/web/images/icons.
I know I can set the icons like (example cart):
.minicart-...
0
votes
1
answer
235
views
Magento 2: Translation doesn't works in JS files. Can anyone help on this please?
define(
[
"jquery",
"Magento_Ui/js/modal/modal",
"mage/calendar",
"mage/translate",
], function($, modal){
// also ...
0
votes
1
answer
4k
views
XML declaration allowed only at the start of the document
i am getting this error on developer mode but works in default
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Theme layout update file
XML declaration allowed only at the start of ...
1
vote
2
answers
1k
views
Cannot translate popup message when adding a product to the cart
If you add a product to the shopping cart, a message pops up on top saying "Cannot add the item to shopping cart."
The problem is that you need to log in first, but this is not clear to the customer. ...
0
votes
1
answer
683
views
How to override shipping-address/form.html with my theme
I am trying to override the file vendor/magento/module-checkout/view/frontend/web/template/shipping-address/form.html using my theme, but I can't find which path is correct. Can someone point me in ...
1
vote
3
answers
2k
views
during theme installation im getting error
during theme installation, I'm getting this error:
Module 'Magento_InventoryCatalog':
[ERROR] Magento\Framework\Setup\Exception: Unable to apply patch Magento\InventoryCatalog\Setup\Patch\Schema\...
1
vote
0
answers
157
views
French translations are not working in email templates in Magento2
My email content is not translating to french, when admin user perform an action. We have admin form when user saved data we are triggering an email to the user. That respected email should be ...
0
votes
1
answer
550
views
Magento 2.4.3p1: Porto theme design changes not reflecting
I have installed a new instance of Magento 2.4.3p1 and new Porto theme on it. I installed demo of Porto and now I am trying to change the design color from admin but the changes are not reflected on ...
0
votes
1
answer
259
views
Unable to setup ScandiPwa theme in my localhost Magento 2
I am trying to setup ScandiPWA theme in my localhost.
All configuration are setup as per documentation provide Existing Magento 2 setup but still not show the proper scandipwa theme instead it shows ...
0
votes
0
answers
68
views
Extension Layout won't work when using a custom theme
I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page.
My extension layout file isn't being executed - instead it just executes my custom ...
1
vote
2
answers
1k
views
Magento 2 tries to load old theme on category pages
I'm using Magento 2.2.3 and after switching from the custom theme (Infortis - Ultimo) to Luma, all category pages are still displaying the Ultimo theme. The rest of the website displays using Luma so ...
0
votes
2
answers
41
views
Page loads once with no errors, multiple 403's after reload
I've been working with Magento for a number of years but I've never come across this before. I'm working on a custom theme for a new site - vanilla Magento 2.4.3 Open Source install - and recently ...
1
vote
2
answers
2k
views
Display date in different languages
On our store we have a blog where we show the "created_at" date of the entity.
But we show the same post to 5 different languages. Of course the content is translated but we don't know how we should ...
5
votes
10
answers
31k
views
Magento 2: Permission issue with generated directory
I'm having issues installing a theme due to the 'generated' directory not generating all of the files that need to be generated after I run command:
php bin/magento setup:upgrade
Which I think is ...
1
vote
1
answer
212
views
Magento 2.4 - Build Child Theme parent of theme installed via composer
)
I need a tip. I've installed a theme via composer and I need to create a child theme having as parent a theme installed via composer.
path of theme installed via composer: vendor/{vendor}/{theme}/
...
1
vote
1
answer
265
views
How to translate Maintenance mode page for multiwebsites
I want to translate Magento 2 maintenance page as per country code
Like :-
magento2/it (In the Italian language)
magento2/de (In German)
I tried using csv but it doesn't work even using __('echo the ...
0
votes
2
answers
444
views
Header of my website get disappeared
I am working on a magento2 website using a smartwave Porto theme, suddenly I noticed that the cart icon and search bar disappeared and my menu get disorganized and unclickable. I have run the ...
0
votes
1
answer
200
views
How to use same theme(Porto) for different website(multiwebsites) with different style
I want to use the same theme(Porto Theme) for different websites (multi websites) with different styles on a single Magento installation.
Please help.
0
votes
1
answer
334
views
Module translation made update safe
What is the correct way to add frontend translation for modules that are installed with composer? The solution should be updated safely. Some extension providers instruct to save the translation file ...
0
votes
1
answer
94
views
Where to find Path of the price element in Magento 2
I have installed a payment method extension and it requires adding the following;
Can I please know what element to input and where to find the path?
Thank you
0
votes
1
answer
25
views
Is My Theme Corrupting My Cart Shipping Options?
I posted a portion of this issue on Reddit, but after reading through a few posts here regarding issues with free shipping configuration I'm now wondering if the theme layered onto my site is somehow ...
0
votes
3
answers
380
views
setup:upgrade try to remove my theme!
Like in the title, every time when I use setup: upgrade i asked to remove themes:
Processing configurations data from configuration file...
The following themes will be registered: adminhtml/Magento/...
1
vote
3
answers
2k
views
magento 2 theme suddenly stopped working
Created a custom magento 2 theme and started working with it. It was working fine.
Suddenly, one day the theme is not working in frontend. In admin panel i can see the theme name, but in frontend it ...
2
votes
6
answers
1k
views
How to translate coupon title "Discount"
I tried to translate with the translate.csv file, but in this case it doesn't work.
I also tried to find the file in "checkout" folder (every file in the folder) but it doesn't contain the word "...
3
votes
2
answers
2k
views
Magento 2.1.1- i18n:collect-phrases not working
I tried to create a translation dictionary for my whole magento site by using the following command:
php magento i18n:collect-phrases -o '/var/www/html/kikinben2/app/i18n/alothemes/bn_bd/bn_BD.csv' -...
12
votes
6
answers
48k
views
Magento 2 Translations not working
I'm trying to translate some text in the checkout page:
"Provided Zip/Postal Code seems to be invalid."
However, when I add the following to frontend/..theme../Magento_Checkout/i18n/en_US.csv and ...
2
votes
0
answers
183
views
magento 2.4.3 Custom theme "Required parameter theme_dir was not passed"
I'm trying to create custom theme in my magento 2.4.3. I m getting error "" have written like this below.
1 exception(s):
Exception #0 (InvalidArgumentException): Required parameter '...
2
votes
3
answers
13k
views
Magento 2 : How to Add Custom Header
I am trying to add a custom header in Magento 2. I am creating my custom theme and add custom header page customeheader.phtml but header is not show.
0
votes
4
answers
5k
views
Element 'block', attribute 'class': 'about-us' is not a valid value of the atomic type 'blockClassType'
I migrated M1 data to M2 using ubertheme data migration pro. When I install a theme to my site and load the home page, I am getting the following exception:
1 exception(s): Exception #0
(...
21
votes
8
answers
62k
views
How to override .phtml files in Magento 2
I want to customize product details page, So it required to override some .phtml files in following locations.
So I want to know, how to override .phtml files in vendor\magento\module-catalog\view\...
0
votes
3
answers
225
views
Translate "Sorry, no quotes are available for this order at this time"
Since we use table rates and require a city/state/zip, a customer will always see "Sorry, no quotes are available for this order at this time" before choosing their shipping criteria. We ...
1
vote
0
answers
223
views
English to english translation problem magento2
I am translating the text("You canceled the coupon code.") with "Thank you for canceling the coupon code" (This is just english to english translation) from Magento\Checkout\Controller\Cart\CouponPost ...
1
vote
1
answer
582
views
Multiple translate file in a theme
Is it possible if I use multiple translate files in locale directory in my themes instead of only one file translate.csv ?
Manage a huge file with 100k+ lines is a nightmare to me.
0
votes
2
answers
4k
views
include css in magento2 for custom theme
I am trying to include custom css and js in custom theme and should come on all pages.
I have tried this from the Magento DevDocs, but I can't make it right and it's not showing. Please help me.
5
votes
1
answer
21k
views
How to check which theme is being used in a magento based website.
Suppose I found these website: http://www.made.com or this one http://www.elegantsteps.co.uk/
I know that both are based on Magento, And everyone else know it's easy install wappalyzer and it will ...
4
votes
2
answers
8k
views
Theme logo not changing in magento 2 custom theme
I had created custom theme in Magento 2 and parent theme as Magento/blank. In my custom theme I have changed logo for my theme. I had declared the theme logo in the app/design/frontend/Prasan/Sanku/...
2
votes
1
answer
2k
views
Category name (title) translation issue in Magento 2
I have 2 store views (english and another language) in one of my Magento 2 projects.
The problem I'm facing is that one of the categories has the name "Role", which is also an English word.
So when ...
1
vote
2
answers
1k
views
How to load custom.css after styles-l.css
I am working on custom theme and the parent theme is blank.I have added the below code in default_head_block.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
1
answer
562
views
On mobile submenu 'All %categoryname' is not translated - Magento 2
I can't translate the string 'All' from the subcategory on mobile menu. The file where the string appears is menu.js located on public/lib/web/mage/
And it looks like this:
.text($.mage.__('All ') + ...
7
votes
4
answers
8k
views
Magento 2.3 translations (translate label) in the admin panel (backend)
In Magento 1 I just added a translate.csv for my admin area.
How can I achieve this in Magento 2?
I just want to change the translations of a few things and add some missing translations. Can't I put ...
0
votes
2
answers
119
views
couldn't start dockergento and pull images
I am trying to setup new project locally but can't pull any docker images, tried on old project and still same issue.
tried restarting everything, re logging in docker etc.
pulled docker-hello ...
0
votes
2
answers
548
views
How to install themeforest-claue-clean-minimal-magento-2-theme in magento 2?
Getting error of theme not found while installing the theme.
0
votes
1
answer
184
views
Magento 2.4 custom theme (no parent) how to go further?
I'm really new to magento and was asked to remake our old theme (shopify store) in magento.
I've chosen to create a theme without a parent so i could have more control, following this tutorial to ...