Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
2
votes
1answer
195 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
5
votes
1answer
2k views

Magento 2 Add text in checkout page via XML

I'm trying to add custom text in checkout page via XML. I have my custom checkout_index_index.xml file with this inside: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="...
2
votes
1answer
142 views

Show different logo when logged in

How to show different logo when the user is logged in?
2
votes
2answers
106 views

Prevent page layout from inheriting default.xml?

I have a <link> tag in the <head> section of my default.xml file, and I'd like to prevent that particular tag from rendering on the checkout page. Is there anything I can add to ...
3
votes
2answers
2k views

Magento 2 - How to remove main navigation from XML

We want to remove Magento's default main navigation using xml file but don't want to use remove, because ifconfig not working with remove. We want to remove main navigation only when our custom ...
2
votes
2answers
332 views

Can't apply custom layout update to block?

I have a static block identifier named 'can_content_block_ideas' and within that block the following template file is being called {{block type='core/template' template='can/home/featured.phtml}} ...
1
vote
1answer
532 views

Magento 2: Change links html class in customer account navigation

I'm trying to change the html classes for my customer_account_navigation block. What I actually want to achieve is to display different icons for every single link. I tried the following in the ...
1
vote
0answers
140 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() ...
0
votes
1answer
652 views

Huge input lookup on admin configurable product page

Whenever I try to open a large configurable product with over 4000 simple products I get the following error: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : internal ...
1
vote
0answers
22 views

XML Error in storeviews Magento 1.9

Hello i try to create an xml feed, but it works only in some of my store views. I get the following error on line 419 at column 29: Input is not proper UTF-8, indicate encoding ! Bytes: 0x1F 0x63 ...
3
votes
4answers
7k views

Add .phtml file on all pages magento 2

I want to add my custom.phtml file on the top of all pages. How can I do this using custom module ? Any suggestion would be appreciated. Thanks
0
votes
3answers
1k views

Magento 1.9 - Load external script async the right way

How can I load external scripts async (and preferably also defer). I know I can add attributes to local scripts like this: <action method="addJs"><script>js/script.js</script><...
1
vote
0answers
110 views

Magento 2 override Magento_Checkout updatecart.phtml and include js file

I want to override updatecart.phtml and put some custom javascript in this file. When i put it in my theme file it goed wel, but how to include the javascript? I prefer it to do it in my own module ...
1
vote
2answers
318 views

Footer does not appear correctly

I have several footer and several header for different pages and I insert them through XML as follows in my local.xml: <checkout_cart_index> <reference name="header"> <...
2
votes
1answer
2k views

Magento 2 DOM validation exception when in developer mode

I'm running Magento 2.2.1 and Infortis Ultimo 2.5.1. When I'm in developer mode and I attempt to access a product page on the front end, I get the exception. Exception #0 (Magento\Framework\Config\...
1
vote
1answer
205 views

Disable/Readonly admin options Magento 1 [duplicate]

How can I disable the size option for catalog products in Magento 1. I've searched Google and StackOverflow and I can't find a good solution. Is there someone that can help me? Thanks a lot!
0
votes
1answer
129 views

404 error system>config>new module

I'm trying to setup a section in system>configuration for an existing module which doesn't yet have a section there. This is my first time doing this so I may have missed something. adminhtml.xml (...
0
votes
0answers
24 views

How to find current xml loaded in product page

I understand the magento 2 template engine but I have difficulties in find the current xml loaded in the product page. I have searched in the template folder for catalog_product_view.xml, I have ...
10
votes
3answers
3k views

XML Parsing Errors

I believe I have a syntax error or something? I'm confident it's either something to do with xml or syntax. Everything appears to be in order when i look into the file. This error is dealing with the ...
1
vote
1answer
82 views

Edit New Products Title Magento 2

In my home i added a widget for new products but i want to rename new products to something else`
1
vote
1answer
296 views

Divide footer into two sections Magento 2

I want to divide my footer into two sections using xml.
1
vote
0answers
21 views

Theme execution flow

I would like to know theme execution flow of Magento 2. I select a theme name 'A' and try to visit a page. Then I change the theme to 'B' and try to visit that same page. Which execution flow the ...
3
votes
1answer
2k views

How to pass arguments to phtml block?

I've updated the default breadcrumbs.phtml which now displays the company logo within the breadcrumb section, however I do not need the logo to show on category pages. I have tried to update my ...
0
votes
2answers
1k views

Remove block not working in custom xml layout?

I've created a custom layout xml for a page template and I am trying to remove some blocks that are being added to the page. I've got template path hints on and have search through the site to find ...
3
votes
2answers
166 views

Magento 1 exception log - Invalid Block type

Having an issue with my exception.log, it keeps firing these errors. I understand (i think) it has something to do with an xml block with eyemagine and expression engine. Which files should i ...
3
votes
2answers
4k views

MAGENTO 2 remove sidebar.main sidebar.aditional with xml update does not work

So I have the in my category->Display Settings->Display Mode set to "Static block only" And category->Design->Layout set to "1 column" And category->Design->Layout Update XML <...
13
votes
6answers
11k views

Admin config error: Undefined index: id in Iterator.php on line 59

Can someone please explain this error to me? Exception #0 (Exception): Notice: Undefined index: id in /home/staging/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59 ...
0
votes
1answer
1k views

How to remove Create an Account button on Success Page in Magento 2?

I want to remove Create An Account button with "You can track your order status by creating an account." text on success page in Magento 2. I have removed checkout.registration block from ...
1
vote
0answers
143 views

Adding block inside a block Magento 2 [closed]

I am trying to add a block inside a block in footer links. I am trying the following code. <referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\...
1
vote
1answer
48 views

Footer links in magento 2 [closed]

Footer links are not properly aligned in the footer section.
1
vote
3answers
2k views

Remove the main menu from the homepage

I'm trying to remove the main menu from the homepage, for this I used the following code in my custom template: <referenceBlock name="store.menu" remove="true" /> But the menu is still there ...
1
vote
1answer
525 views

Magento 2 - Move homepage cms content after a custom div

I have a custom phtml file that I've included on the homepage, this has several divs that call in static blocks. Here is a simplified version: <div class="my-div-1"> <?php echo $block-&...
3
votes
2answers
418 views

Magento 2.2.1 XML Validation issue

I have upgraded Magento version from 2.1.4 to 2.2.1. Upgrade was successfull but once after Upgrade when i open homepage it's showing following error, 1 exception(s): Exception #0 (Magento\Framework\...
1
vote
1answer
211 views

Composition of HTML view of Magento 2

How a HTML view of Magento 2 composed ? I know this is a broad question. Actually I am trying to remove Header and Footer from Print out of Sales Order. I can see a HTML view of Magento 2 when I am ...
1
vote
3answers
6k views

magento 2 add static block on category page left sidebar only

I have override Module-Catalog into my theme's folder. I want to add custom blocks in category sidebar. so in catalog_category_View.xml file i have added following code which works if i put it in ...
0
votes
2answers
2k views

Move Mini Cart (Magento 2)

I want to change the position of the mini cart in my theme. i am able to change it using css but it disturbs the mobile view. So is there any way i can do it using xml
1
vote
2answers
496 views

Add block in layout XML only for one store view

I have a Magento 2.1.x installation with two store views. I would like to show a particular block in the footer only for one store view. In Magento 1.9.x I would have done it in this way: <...
1
vote
1answer
779 views

Move page.title above image placeholder

I am trying to move the product title above the image.gallery but I cannot figure out how the XML file should be set up. I am editing in the catalog_product_view.xml file. The main page title div ...
0
votes
2answers
268 views

How get the product SKU in XML magento 1.9

I want to create a product XML file like this: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <root> <stocks> <product> <sku>883503536128&...
3
votes
1answer
1k views

Move/Push page.main.title block into Breadcrumbs Magento2

I want to move page.main.title block to my breadcrumbs container, not before or after it, I want to push it inside breadcrumbs template and remove other wheres. So this is my ~/Magento_Theme/...
0
votes
1answer
108 views

How can I create an XML when an invoice gets created in admin [closed]

How can I create an XML when an invoice has been created. Whenever order invoice gets created, it creates in a particular folder automatically.
0
votes
2answers
581 views

Move Search Bar (Magento 2)

I want to move the search bar from right to the center of the homepage using xml.
0
votes
1answer
165 views

How do I get my product pages to all have the one column layout?

I only use simple products. Some of my product pages are set to one column and some are set to 2 columns right. I want all of them set to one column. I have a child theme that uses the ...
0
votes
1answer
340 views

Change media template for single product

I am trying to update the media template via XML in Magento. Somehow my method is not working: First I included <?php var_dump($this->getNameInLayout()); ?>in the template to get the correct ...
0
votes
1answer
573 views

'Varien_Exception' with message 'Invalid method Mage_Sales_Model_Order

I have created a module witch Generating order xml for ERP. I have created a Observer file but it gives me a Invalid method Mage_Sales_Model_Order. My code is :- protected function sendFile($filePath,...
0
votes
2answers
400 views

Theme layout not showing on products page

i installed pixtron theme on magento 2, on frontend at products display page the layout of theme is not displaying up properly. any guidance or help highly appreciated ! ( herewith images attached )
0
votes
1answer
256 views

How to add a script attribute to addItem

I want to add an embedded MailChimp script to my Magento 1 installation. However, the script has an attribute: <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/...
2
votes
0answers
404 views

Magento 2.2: Add/Remove class in a div from default.xml

How to add or remove a class in the store-switcher div from default.xml ? I tried this : <referenceBlock name="store_switcher"> <arguments> <argument name="...
0
votes
1answer
573 views

Generate order xml for ERP in magento 1.9

How to create a XML file of B2C Order format in Magento 1.9? whenever order genrate it creates in a particular folder automatically. And send to ERP System.
1
vote
1answer
138 views

Include google maps libraries through default_head_blocks.xml

When trying to implement the google maps API script in default_head_blocks.xml <script src="https://maps.googleapis.com/maps/api/js?key=mykey&libraries=places" src_type="url"/> it doesn't ...