All Questions
1,215 questions
1
vote
1
answer
927
views
How to create page in customer account section Magento 2
I want to create new page and link to => HISTORY
how i can do this??
where I can add a new link?
2
votes
0
answers
39
views
Magento2: Minicart issue on Custom layout
I am using a custom layout for the category page.
Here is my code:
app/code/Custom/Module/view/frontend/page_layout/equipment.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www....
1
vote
1
answer
2k
views
Magento2: programmatically add layout for specific products
Good evening.
I need to add layout for products, which SKUs start from 9 (so 9XXXX).
I've read we can add this though handler or some other methods.
If someone had experience with that moment, ...
0
votes
2
answers
2k
views
Remove merged css and js from layout in magento2
I have enabled js and css merging and bundling from the configuration.
we can remove particular js or css using below code.
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
2
answers
2k
views
Issue with multiple custom product details tabs not displaying
In catalog_product_view.xml I have the following section:
<referenceBlock name="product.info.details">
<block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::...
2
votes
1
answer
873
views
Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file
I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to ...
0
votes
1
answer
677
views
How to use different page layouts depends on base layout specified?
I have to use different page layouts (<page>) depends on base layout (<layout>) specified for a product.
For example,
if I select a layout in product's 'Design' menu with the name
...
1
vote
1
answer
902
views
magento 2 createBlock from argument item
My custom module xml file contains the block code. I want to call that block code directly using createBlock method and set template to show in specific template. My block code is adding animated ...
2
votes
5
answers
2k
views
Remove cms block from only cms home page
I have created a cms block and using widget added inside header page container, now I want to remove that block from only home page.
How can i achieve this?
Widget screenshot to display block
1
vote
2
answers
2k
views
Adding contents to default customer sign up / create account page - Magento 2
I would like to add a banner image and some contents to default create customer account page at www.domain.com/customer/account/create/, how do i do it? Or Can I add a CMS Page or static block to it?
8
votes
2
answers
7k
views
Magento 2 : How to debug knockoutjs getRegion() bindings
Shipping address is displayed using below knockout js code.
I am having a hard time finding the back-end code that's setting data for getRegion('ship-to') function even though I could see the UI JS ...
7
votes
1
answer
2k
views
Header and footer in an external file
I'm using an index.php file under /pub/custom folder, which is used to create custom designs.
This file is completely written in html and javascript.
Is there any way to include current theme ...
2
votes
1
answer
1k
views
magento 2 Infortis ultimo theme display category tree menu on the left of the search result page
I am using the Infortis ultimo theme, in the included feature, i was able to add the category tree menu on the left bar of each category page, but how can i add it to the search result page?
is this ...
1
vote
0
answers
480
views
How to move product.info.mailto block in custom layout file in magento 2?
In vendor file
\magento226\vendor\magento\module-catalog\view\frontend\layout\catalog_product_view.xml
I found
<container name="product.info.extrahint" as="extrahint" label="Product View ...
2
votes
1
answer
167
views
Handling templates without a module name specified
I have a 3rd party extension installed and I needed to overwrite on block because I could not use events or plugins on it.
The block is added in the layout file like this:
<block class="Vendor\...
1
vote
3
answers
3k
views
How to move notification message top of the page for all page
I am trying to move all notification message on the top below header(or any specific location)
I followed this link but this only achieve top for customer page only
Magento 2: Change message ...
0
votes
2
answers
1k
views
How to rename the product detail tab title, and display as the last tab?
How to rename the product detail tab title, and display as the last tab?
This is what i added, but didn't make any effect.
the file is at the following location:
/app/design/frontend/Infortis/...
1
vote
1
answer
341
views
How to override or extend template and layout files for an extension downloaded by composer?
I have an extension that is downloaded through composer, there are two files i would like to update. How to I override/extend the files? what is the correct paths i need to create in app/design/...
1
vote
0
answers
214
views
Magento 2 - display custom product details tab conditionally & as an URL
I want to create a custom product detail tab "Q&A" and only display the tab when there is an Q&A questions exist for the product, and the tab will be the hyperlink to the FAQ page ( for ...
1
vote
2
answers
1k
views
Magento 2: Override XML file from vendor folder to app folder doesn't work/update
I tried to override the XML file by copying the file from
vendor/magento/module-catalog/view/frontend/layout/catalog_category_view_type_default.xml
to
app/design/frontend/Infortis/base/...
0
votes
0
answers
188
views
How do I create a "floating" widget/block?
I'm trying to create a floating widget/block that can sit over on the left of my website like the attached picture. I want to advertise my catalogue for download.
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(...
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 ...
2
votes
1
answer
1k
views
Magento 2 product page include custom phtml file before reviews section
Can anyone help me how to include custom phtml file before reviews section in magento2
please find the screenshot below:
When i click on the button it is going to add to cart.
Thanks
2
votes
1
answer
1k
views
Magento 2.3 Help removing wasted white space in mobile version
I am sure this is a simple one to answer, if you go to our site www.terabytecomponents.co.uk and open chrome developer tools to switch to mobile view, there's have 2 divs that are creating a white ...
1
vote
1
answer
151
views
Removing CSS as part of custom page layout
I have a custom page layout defined as lf_cms in layouts.xml file, and am trying to remove the css file as defined in default_head_blocks.xml and load a new CSS file, except the CSS changes are not ...
2
votes
2
answers
2k
views
Magento 2 How to add external Js in a page
I want to add an external js in my home page. The external js loads a popup form in my home page. I have tried the code in phtml file and also in xml file. In both case the form will appear. But some ...
1
vote
0
answers
80
views
how to call a grid file in form.xml in magento2
Hello everyone I want to call the grid file which is located below path
Magneto\PopupQuestion\Ui\Component\Listing\Column\Products in form.xml
Who to write the class for it I have written like ...
2
votes
0
answers
1k
views
Broken reference Error log in Layout magento 2?
Actually i am facing this error due to layout mistake.please guide
me.
[2019-02-18 06:28:17] main.INFO: Broken reference: the 'breadcrumbs' tries to reorder itself towards 'category.cms', but ...
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($...
0
votes
1
answer
350
views
Magento 2: Errors displaying on setting devolper mode
On setting developer mode this error is displaying want to find the files which are causing this error what should I do remove this error.
[2019-02-14 12:58:34] main.INFO: Cache file with merged ...
1
vote
0
answers
649
views
Magento 2 move page main title into div with product_list_toolbar
I want to move the page main title on the category list page into custom div and also include the product_list_toolbar into that div.
The problem I face is that I can not simply move the ...
2
votes
2
answers
835
views
Remove block from layout depends on condition
I want to remove block product.info.addtocart from layout depends on some conditions
2
votes
1
answer
4k
views
How to add custom button in sales orders grid page in admin magento 2
I want to add a new custom button to the sales order grid pageactions, i was trying creating Plugin for "Magento\Backend\Block\Widget\Button\Toolbar" but in the grid containers this block is not used, ...
0
votes
2
answers
1k
views
Magento2 render custom block in adminhtml layout.xml
I can not render my custom block within my custom template,
Point is on newsletter subscriber, I extend newsletter_subscriber_form.xml,
Add container within my block but it says that template is ...
0
votes
1
answer
368
views
Magento 2 Block class instantiate issue
I am using Magento 2.2.6. In my custom module I add catalog_category_view.xml add a block
<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1
answer
642
views
How to duplicate category title and move description below product grid
I'm just diving into template/block/layout customization in Magento 2.2 and I'd like to move my category title from being left aligned to being aligned above the description.
Currently it's like this:...
2
votes
1
answer
835
views
Remove price filter for specific category
I can remove all filters in category with this line:
<referenceContainer name="catalog.leftnav" remove="true" />
But, I need to remove only price filter for specific category. Can I do this ...
3
votes
1
answer
488
views
Magento 2 add div around compare in header
I want to add a div container with class around the compare ul in the header.
How can I achieve that inside my custom default.xml file?
0
votes
0
answers
310
views
Magento2 top header section change layout
Currently in my site display this
I need search section move to top as look wise below
If anyone idea reply me how to search section move in magento2
0
votes
1
answer
1k
views
Solved: Magento 2 move productpage title around div
I want to move the product page title around a container div.
I added the following to my catalog_product_view.xml file, but that does not add the div with class container.
What am I missing?
<...
0
votes
2
answers
1k
views
Show Separate product detail page based on attribute value in Magento 2
Shall we load separate product detail page based on the product attribute value in magento2 ?
I have created the attribute product called "type_of_product"
If this attribute value is "Test 2", I ...
0
votes
1
answer
326
views
Solve warning "User Agent Exception override product and CMS pages rules"
I'm Trying to create a dynamic grid containing multiple fields using this code in my ui_component
<fieldset name="multi_answer">
<settings>
<collapsible>true</collapsible>...
2
votes
1
answer
3k
views
How to change layout of catalog search page if results are empty
Wanted to change from two columns to the one column xml when catalog search results returns zero counts.
Using Magento 2.3 version of the community.
Showing empty sidebar on the left side.
0
votes
2
answers
351
views
Load Custom Template file with argument as product id or sku in magento2
I have created a custom module and calling that template file from the CMS page as like below.
{{block class="Vendor\Module\Block\Custom" template="Vendor_Module::custom.phtml"}}
In templates/...
0
votes
0
answers
615
views
Magento2.3 - Layout Updates in Child Theme don't work
Please also find updates on the bottom
I want to get rid of all the product compare features on my website.
Unfortunately everything I found so far, doesn't work.
Here's what I tried:
We are using ...
0
votes
2
answers
2k
views
Add custom block below cart summary page magento 2
Dears,
How can I add my custom block to cart summary page? I checked the checkout_cart_index.xml file but couldn't find exact location so could you guys provide me any solution?
Thanks,
Max
0
votes
2
answers
2k
views
Magento 2 - Adding custom layout handle for layouts (1 column, 2column etc) set via product admin page
I want separate layout handles defined for products dependent on their layout set via the layout options for product within admin (1 column, 2 column left, 2 column right).
I need to set additional ...
0
votes
1
answer
160
views
Magento 2 : custom template file for different categories
I want to set custom template file for different categories.
How to set custom phtml file for different categories using XML file?
Any help would be appreciated.
0
votes
3
answers
2k
views
Magento 2 override cacheable="false" with own theme
I'm trying to override a Magento default xml layout file vendor/magento/module-review/view/frontend/layout/customer_account_index.xml
<referenceContainer name="content">
<block class="...