Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
90 views

Getting 500 error when access product page magento 2

When I add a product to muy category this what I found as results
Developper Magento 's user avatar
2 votes
3 answers
2k views

Magento2 Need to filter grid when value is entered in search box, the column of the data is from another table

I have added 4 columns in the grid as displayed in below screenshot. For displaying for eg. Recipient Email column I added following code in XML & it's renderer PHP file. (Code is added below) ...
Arjun's user avatar
  • 3,606
1 vote
2 answers
847 views

Magento 2 Layout update xml not working for categories

I try to use my customized .phtml file for a certain category. I go in Admin->Catalog->Categories->Design->Layout update xml I put the following code in the field layout update xml, &...
Magento Learner's user avatar
3 votes
0 answers
105 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
Daniel_12's user avatar
  • 680
0 votes
0 answers
38 views

controller not reaching magento2

One strange thing is happing in my application, I have one custom link in my email. On development server everything works fine, but on production server when I clicked the link nothing happens, ...
Daniel_12's user avatar
  • 680
0 votes
1 answer
228 views

Magento 2 What is the different between setDefaultOrder and SetSortBy in layout xml?

I'm trying to set a default sort order to products listing in category page. I have seen people suggest using <action method="setDefaultOrder"> <argument name="...
Magento Learner's user avatar
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-...
Robert's user avatar
  • 2,186
1 vote
1 answer
536 views

Magento 2 - Passing argument from backoffice in Category Layout Update XML field to frontend module or phtml

In Magento 1 I sometimes used this way to pass an argument to a category, directly from the back office Category > Custom Design tab > XML Design Update <reference name="product_list"> &...
ffab's user avatar
  • 71
2 votes
1 answer
279 views

Remove container in block class

I want to remove some items from a page when certain conditions apply. I got a solution but I'm wondering if there isn't any better way to do this. Now the code that I have is for each block that I ...
Arno Vande Cappelle's user avatar
1 vote
2 answers
2k views

Magento 2 - OWL Carousel 2 in related products issue

I try to setup OWL Carousel for Related Products in Magento 2. I overwrite this file: Magento_Catalog/templates/product/list/items.phtml this is my custom code: <div id="owlslider" ...
Robert's user avatar
  • 2,186
0 votes
1 answer
129 views

Magento 2 - Get all team members on a page

I begin in Magento development and I try to do something but I don't know how to start. I want to display on a "about us" company page all team members of a company, for example in WordPress we have ...
Robert's user avatar
  • 23
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 ...
Robert's user avatar
  • 2,186
1 vote
4 answers
1k views

Magento2.3.1 i want to remove wishlist link from top.links but not working

I have added below code in my custom Magento_Theme default.xml file to remove top.links <referenceBlock name="top.links"> <referenceBlock name="register-link" remove="true"/> ...
Rutvee Sojitra's user avatar
0 votes
1 answer
631 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 ...
Robert's user avatar
  • 2,186
1 vote
1 answer
503 views

Magento2.2.5 remove default product title and add custom phtml file on product detail page

in Magento2.2.5 I want to remove the product name and instead where it is load a custom phtml file that will call in a custom product attribute However my phtml file is not being called in here is ...
Jayreis's user avatar
  • 725
0 votes
0 answers
47 views

Moving language block in footer not getting after reference block in magento2

I want move header language block into footer after copyright but it's display before copyright block i have tried using <move destination="footer-container" element="store_language" after="...
Rutvee Sojitra's user avatar
3 votes
0 answers
28 views

How to organize layouts?

I'm on the product page and in my layout i created a block to render on the product informations, on the upsell product informations and on the related product informations but it doesn't works. The ...
help's user avatar
  • 53
2 votes
2 answers
1k views

Magento 2: I need to change template for different categories

I need to change the template for subcategories(like able to assign any category) and list.phtml is fine. But need to change template for random categories. Any one have solution for this?
Shomita's user avatar
  • 1,123
0 votes
1 answer
850 views

How to override catalog_product_view.xml?

I want to have a different theme on special products. So I have a main theme --> app/design/frontend/Main/Default and I want a different theme, which is child of my main: -- app/design/frontend/...
Marcel's user avatar
  • 123
0 votes
2 answers
1k views

Possible way to fix luma Layout

Encounter this issue (Layout are wrong ).What is the possible issue for this? Tried dicompile, clear cache and reindex.Still not working exception.log main.CRITICAL: Path "/var/www/html/var/...
Ed Tan's user avatar
  • 183
5 votes
1 answer
1k views

Set custom tab in customer edit page Active

I created a custom tab for customer edit page in backend like this: app/code/Namespace/Module/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
blue's user avatar
  • 128
0 votes
0 answers
42 views

Overriding template not working in dev branch

I have overridden a file vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/address/edit.phtml and placed the replaced file in: app/design/frontend/ParentTheme/...
Harshith S's user avatar
0 votes
1 answer
143 views

Wrong Layouts in Magento2 Adminhtml

I noticed a strange behavior in a M2 System, I think this is related to a 3rd party module. All layouts which should be 1column layouts are 2 column layouts actually so something overwrites the ...
gewaechshaus's user avatar
3 votes
1 answer
292 views

SOLVED Createblock definition in magento 2

i search around a lot about references of this function. but the documentation have a big lack. does somebody explain me this part of code (deeply) ? $this->getLayout()->createBlock(...
Pavel's user avatar
  • 33
1 vote
1 answer
548 views

Difference templates and layouts

https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/debug-theme.html I am following the magento docs to create a theme for practicing, it shows me how to find these things but I would ...
paranoid kid's user avatar
0 votes
1 answer
1k views

recently viewed product collection is empty in magento 2

I have added a code in Magento_Catalog/layout/catalog_product_view.xml <referenceBlock name="product.info.details"> <block class="Magento\Reports\Block\Product\Widget\Viewed" name="...
Jafar Pinjar's user avatar
  • 1,961
1 vote
2 answers
870 views

Magento 2 how to remove “SKU field” via Layout Update XML?

I'm stuck on this: I need to remove the SKU field from product page only for few products, I'm sure that I can do it with "layout update XML" tab but all my attempts have failed.. any help? :)
Silver's user avatar
  • 119
2 votes
2 answers
736 views

Magento 2: How to add a div in below navigation?

I am trying to get a div displayed directly below the navigation on a theme which extends Luma I have added the following into my Magento_Theme/layout/default.xml but cannot see any results. The ...
Boss Nass's user avatar
  • 264
0 votes
1 answer
1k views

How can i add block to existing layout in catalog_category_view.xml?

I want change layout of catalaog_category_view.xml but i can't. I override block category.products and it's work but how can i add my own block to existing category.products block? Because i want add ...
Pepe44's user avatar
  • 43
1 vote
1 answer
416 views

How I can add custom block to layout using php in Magento 2

I have created a custom block, as I want to add this layout to my current layout. Following is my block: <referenceContainer name="sidebar.main"> <block class="Vendor\ModuleName\...
Waqar Ali's user avatar
  • 2,348
0 votes
1 answer
1k views

Magento 2 : Exclude CSS from merged file just for the homepage

I have merge and minify CSS enabled and I would like to know if is there a way to exclude a specific CSS file from the final merged file, but only for the homepage? I know how to remove a CSS file ...
Richard Laws's user avatar
0 votes
1 answer
82 views

CMS statsic blocks doesn't show for Ar store language - Magento 2?

i have a multi language Magento2 Store and i have CMS static blocks in home page , so to translate these blocks i had to duplicate each block and change store view to En or Ar for each block to show ...
mahmudy-91's user avatar
3 votes
1 answer
425 views

Magento 2 view product give different result for different category

For learning purpose I just added following css in my Module: .newcolor { background: #ffff00 !important; box-shadow: 1px 5px 5px 1px rgba(66, 103, 178, 0.51); font-size: 23px !important; ...
Yusuf Ibrahim's user avatar
2 votes
0 answers
256 views

Missing column in Shopping Cart Table in magento 2

Here is my snapshot: The row of "Angel Light Running Short" does not having column stock. And then I tried to empty my app/code/Company/ModuleName/view/frontend/templates/cart/item/default.phtml ...
Yusuf Ibrahim's user avatar
0 votes
1 answer
13 views

Customization mistakes and changing the layout type of a core page configuration xml

In the official M2 docs we have this quote Changing handle inheritance. For example, you should not change the page type parent handle. Pulled from here M2 Frontend Dev Docs By this I understand ...
vitoriodachef's user avatar
1 vote
1 answer
843 views

Add an Element on the top of header.panel.wrapper

I need to place an element ot the most top of page. the position is exactly on the top of header.panel.wrapper. My objection is to have some elements on the the most top of header. Any help ...
Yusuf Ibrahim's user avatar
1 vote
2 answers
2k views

Move recently viewed product or completely remove it

Magento has a great feature to show recently viewed product, but now I need to move this element (recently viewed product) to exactly on the top of footer. I have no clue about how to show/hide or ...
Yusuf Ibrahim's user avatar
1 vote
1 answer
215 views

Unknown UL LI tag broke the layout

I got this annoying issue: that's unwanted spaces thats caused by unknown HTML: My question is how to remove that unwanted annoying html (UL/LI) from home page? Thanks
Yusuf Ibrahim's user avatar
1 vote
1 answer
114 views

Home to make a Multi Level Field Dependency in Admin Form Magento 2

I have 3 Field type Display On Container the visibility of [Display on , container] depends on value of type field value of [container] depends on value of [Display on ] on field I have tried this ...
Waqar Ali's user avatar
  • 2,348
0 votes
1 answer
300 views

Apply a jQuery whitespace trim to an adminhtml filter input

My goal is to load a simple jQuery function to trim any whitespace in an admin backend filter input. The use case involves a scanner inputting codes with spaces that will turn up no results. I have ...
lasalsaverde's user avatar
0 votes
1 answer
2k views

Magento 2: Header and footer not loading in custom module's CMS layout

I am developing a custom theme which inherits from Magento/blank. I am attempting to develop a CMS homepage layout within a custom module. I have created the module and successfully applied the ...
Muckee's user avatar
  • 709
2 votes
1 answer
2k views

Move static block on category page

I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a ...
quickshiftin's user avatar
  • 1,436
3 votes
2 answers
5k views

How to Get Layout Name in which is block is placed

I have My block <block class="Vendor\ModuleName\Block\Frontend\Linked" name="catalog.product.linked" template="Vendor_ModuleName::slide.phtml" /> in this file app\code\Vendor\ModuleName\...
Waqar Ali's user avatar
  • 2,348
0 votes
1 answer
182 views

Order of execution of the <referenceBlock name="before.body.end">

I want to add a js script near the </body> tag. But, in my project there are more than one layout files having <referenceBlock name="before.body.end">. So, is there a specific order in ...
nikin's user avatar
  • 1,142
0 votes
1 answer
59 views

Some product pages layout issue Magento 2

Suddenly my site has suffering layout issue on some product pages. I checked in console and it says require is not a defined, but many other product pages and site is working fine.
Arsalan Ul Haq's user avatar
6 votes
3 answers
6k views

How to remove an argument's item in LayoutXML

How can I remove an argument's item in Magento's LyoutXML? For instance I would like to remove <item name="msrp_price" xsi:type="array"> from catalog_product_prices.xml. In my theme's ...
Holly's user avatar
  • 4,923
4 votes
2 answers
4k views

Defer JS / CSS Magento 2 via layout files?

After reading a lot of devdocs, I can see there is a case for deferring in CSS and JS in the manual https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/layout-types.html#layout-types-...
dawhoo's user avatar
  • 851
0 votes
1 answer
70 views

Add additional tab after reviews

I am trying to have a few more additional tabs added after the Reviews tab, though my tab keeps appearing as the first tab <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/...
Boss Nass's user avatar
  • 264
1 vote
2 answers
409 views

Move category description from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme: <move element="category....
Karkan's user avatar
  • 75
0 votes
5 answers
4k views

How to move the phone number field from checkout page magento 2

I want to move to the phone field. My XML <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:...
sudo55's user avatar
  • 1,014

1
4 5
6
7 8
25