All Questions
35 questions
106
votes
4
answers
58k
views
Explanation of UI Component Grid in Magento 2
Is there a good explaination and/or sample of the bare minimum configuration needed to create a UI Component Grid in Magento 2?
I know there are myriad core components, such as
./vendor/magento/...
25
votes
1
answer
15k
views
Magento 2: Adding Arbitrary HTML to the <head> of Every Page?
In Magento 2, is it possible to add an arbitrary bit of HTML to every frontend/cart page's <head/>?
I know I can add a block to the content/<body> area with code something like this
<...
15
votes
2
answers
17k
views
What is <update handle="customer_account"/>?
What is the Handler?
Can someone explain the below code?
<update handle="customer_account"/>
or same code like above for example :
<update handle="default"/>
and how it worked !?
5
votes
1
answer
4k
views
Magento 2 - editing module structure and functions
in Magento 1.x you could duplicate the extensions to app/design/frontend/themeName/default/template/or/layout and then modify it's layout or functionality via xml or phtml files.
How do we duplicate ...
5
votes
1
answer
376
views
Magento 2: What are the "top level tags" in a Module Layout Handle XML File Called?
In Magento 2, layout handle XML files introduced a few new top level tags (body, head, etc)
<page>
<body>
<!-- ... -->
</body>
<head>
<!--...
4
votes
3
answers
5k
views
Magento 2 - get final prices include tax and round
I've custom block phtml in my old store and I need to be converted to Magento 2.
Magento 1.9.x code:
$_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(...
4
votes
1
answer
2k
views
Magento 2: Include header and footer in external php
I want to include header and footer layout of Magento 2 to external PHP file, I am using my own code(external PHP) to make a frontend page. how to add header and footer layout theme in Magento 2 to my ...
3
votes
1
answer
2k
views
Magento 2 Migration Settings error
I migrate settings from Magento 1.9.3.10 to Magento 2.3, after the migration was successful when I try to reindex or flush de cache from command line I have this error:
The website with id 0 that ...
2
votes
4
answers
2k
views
Magento 2: Create HTTP Paths to Frontend Assets via PHP Code
In Magento 2, is it possible to generate an HTTP path to a module's front-end asset files (CSS, Javascript) using PHP?
i.e. I know it's possible to add code like the following to a layout handle XML ...
2
votes
1
answer
1k
views
Magento 2 move reviews form inside list.phtml file
By default magento 2 review structure is like this -
/templates/review.phtml and inside it you have -
/product/view/list.phtml and Magento_Review/templates/form.phtml files.
form.phtml file is ...
2
votes
2
answers
1k
views
Magento 2 - Best way to check if the current category is child
I want to change the design of my store depends of the categories and subcategories.
I need to check if the current category is subcategory and if is subcategory then display something there.
I ...
1
vote
2
answers
5k
views
Magento 2 - Change the product page layout only for configurable products
I create the layout for simple products. Magento_Catalog/layout/catalog_product_view.xml
Now I want to add this line:
<move element="product.info" destination="content" before="-"/>
but only ...
1
vote
2
answers
4k
views
Magento 2 - Get country name from country code
I want to get country name from country code, in Magento 1.9 I use the code like this to get country name:
$countryCollection = Mage::getModel('directory/country_api')->items();
foreach($...
1
vote
2
answers
2k
views
Magento2 - Override Template order summary in sales email order
I have the template that is using the following to render order summary
{{layout handle="sales_email_order_items" order=$order
area="frontend"}}
it is taking the code from the following template
...
1
vote
1
answer
739
views
Magento 2 - Category url load very slow
I have a very strange problem in frontend when open a category after in the adminhtml change the Design Layout to 1 column. If the category have the Design Layout 2 columns-left for example everything ...
1
vote
0
answers
26
views
How to modify part of the design of the details of the article magento 2?
I want to be able to modify a part of the page of the details of the products of magento 2
The marked part is the one that I want to be able to edit, add or remove content is that section.
So far I ...
1
vote
1
answer
1k
views
Magento 2: Configure just only for one country
We have a magento 2 store, with more than 20 stores location and they are being separately maintained in the same web site, we do sell only in the country. is there anyway that I could completely get ...
1
vote
0
answers
168
views
Change select value toggle name
How can i change Yes to Active and No to Deactive?
i've tried it with toOptionArray():
class ActiveDeactive implements \Magento\Framework\Option\ArrayInterface
{
public function toOptionArray()
...
1
vote
2
answers
2k
views
Add top.links to the header Magento 2
I create a custome theme based on Blank theme, I want to display top.links in header like in the following image:
How I can add that links and much important that Basket like in the image?
Thanks
0
votes
1
answer
630
views
Layout XML Error - Magento 2
I change the deploy mode to developer on Magento 2 and now I see the following error:
1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is ...
0
votes
3
answers
2k
views
Magento 2 - Categories not display when Page Cache is on
I have a very strange issue on Magento 2.2.2, if I enable the Page Cache (Full page caching - FPC) the top navigation is not display anymore.
What I can do?
Thank you
0
votes
1
answer
1k
views
Magento 2 - Change top navigation submenu position
I create a new theme for Magento 2 based on Luma theme. I change the submenu of the top navigation to be 100% width.
.navigation .level0 .submenu {
max-width: 1280px;
width: 1280px;
...
0
votes
1
answer
2k
views
overriding problem in Magento 2
I'm trying to extending Magento 2.x Search Box, But it's not overriding my module.
My code is:
Learning/CustomSearch/view/frontend/layout/default.xml
<?xml version="1.0"?>
<page xmlns:xsi="...
0
votes
1
answer
676
views
How can I get the url of my new module?
This is a simple Hello World in a Block, I would like how can I get the URL of this, to check the website this HelloWorld.
I don't know to check my exercises, because I don't know how to get the URL ...
0
votes
1
answer
1k
views
Magento 2 Insert / Move page.main.title inside my custom block
I have create a custom xml for Category Page and I need to move the Category Title inside my Block. This is my custom.xml code:
<?xml version="1.0"?>
<page xmlns:xsi="http://...
0
votes
1
answer
291
views
Magento 2 - Can't add static block to my theme
I use Magento 2.2.4 and I want to add a static block with the name "support" in the right side of the top menu, but what I try not working.
I try to add this in the phtml file
<?php echo $block-&...
0
votes
1
answer
117
views
Magento 2 add custom style
I create a new Magento 2 theme extend Luma. I want to add a css file to rewrite the default Luma style.
I add in the default_head_blocks.xml file:
<?xml version="1.0"?>
<page xmlns:xsi="...
0
votes
1
answer
28
views
How to add another progress step of CART before the Shipping progress bar in magento 2
Hi, In magento 2 how can we add another progress bar on checkout page. By default there are 2 "Shipping" , "Review & Payments". I want to add another which will be like "...
0
votes
1
answer
19
views
Breadcrum issue after embeding advance search on home page:magento2
I have moved the advance search form on home page with the custom template as:
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../....
0
votes
1
answer
219
views
Magento 2 - Add Size Chart issue
I try to add Size Chart block on product view page in Magento 2. I add this code in catalog_product_view.xml
<referenceContainer name="product.info.main">
<block class="Magento\Catalog\...
0
votes
2
answers
758
views
Why is Magento 2 creating this Interceptor file?
I've been comparing two versions of a website I'm working on -- one is fine and the other has a broken layout -- and the main difference I've found between them is the following file:
generated/code/...
0
votes
1
answer
1k
views
How to call a social login block to header login popup in magento 2
I installed the social login extension, It works fine in registration page & registration page sign-in popup. But in others pages it's not displaying social logins block in sign-in popup. Here is ...
0
votes
2
answers
219
views
Magento 2.0.1 problem with my custom theme
I am using Magento 2.0.1 and I created a custom theme in app\design\frontend\MyTheme
Now, I am setting my custom theme in back end and I created following folders and files
\web
\media
\etc
...
0
votes
2
answers
2k
views
Magento 2 - Full width for a section in product view page
I add a new block in Product View page:
<referenceContainer name="content">
<container name="containertwo" as="containertwo" label="ontainer" htmlTag="container" htmlClass="my-...
0
votes
3
answers
1k
views
Move Search Bar (Magento 2)
I want to move the search bar from right to the center of the homepage using xml.