Questions tagged [xml]

Denotes questions about XML files and XML processing.

335 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
433 views

Magento2: how to add remove header links conditionally

how to add remove header links conditionally. I am trying to show my account link only when the customer is logged in. Otherwise it should be hidden. How to do the same using xml files.
0
votes
0answers
153 views

Adding script that is not in a .js file in the <head> Magento 2 without using 'misc scripts' in admin

I have some js script which I'd like to place in the section of my Magento 2 site. I do not want to add in 'miscellaneous scripts' section. I want to add this in my themes default.xml file. However, ...
0
votes
0answers
3k views

sidebar and sidebar additional Magento2

In default /vendor/magento/module-theme/view/frontend/page_layout/2columns-left.xml file is next code <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
275 views

how to add a top link in custom module at prefered position

Can anyone let me know how to add custom top link on top menu after create an account link or at any place I want to put before/after. I have tried with after attribute but its not changing position ...
0
votes
1answer
80 views

How to change the id in the <aside> tag on magento content pages

down vote favorite I'm sorting out the blog on my magento based site, currently using an aheadworks extension but moving to wordpress. Both AW and WP have the sidebar (search, recent posts, etc) in ...
0
votes
1answer
135 views

Remove CSS file from installed extension?

I am using theme254k Package of default Theme of Magento 1.8.1.0. I installed an extension. This extension added a CSS file. I would like to remove this CSS file. How can I do that ?
0
votes
1answer
1k views

Magento 2: Change UI template

For the checkout, I would like to use a different UI template to that which is used on the cart. Currently, they both use the same UI template: <item name="template" xsi:type="string">ui/form/...
0
votes
1answer
135 views

How to enable or disable footer link in magento2.1 with helper function dynamically from xml based on my own config value?

I have my own contact us module in magento.I want to remove default contact us link from footer and add my own link. I have remove default contact page link and add my own link. I want that when my ...
0
votes
0answers
220 views

layout xml does not load

I have a module with below details, for some reason layout xml files does not load. I can make this out, because the js and css mentioned in the layout files are not getting loaded. /var/www/html/...
0
votes
1answer
35 views

Getting to block from layout xml issue

This is my layout: <?xml version="1.0"?> <layout> <adminhtml_customer_edit> <reference name="accordion"> <block type="mynamespace_mymodule/...
0
votes
0answers
824 views

Magento 2 moving the sku on product page

I'm trying to move the sku on the product page but no matter what i do it sits at the top when I would like it at the bottom: XML: <page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
112 views

What is Mgt_Base module?

I was hunting for the cause of some SimpleXMLElement errors in my log when I found out the culprit was some module in app/etc/modules called Mgt_Base. The errors showed up when I accessed the ...
0
votes
1answer
70 views

Module causing simpleXML error

After digging around for the cause of a SimpleXMLElement::__construct() error in my logs, I found the culprit to be the module called Mgt_Base.xml in app/etc/modules/. When disabling this module, the ...
0
votes
1answer
2k views

Change meta title of customer login page

Trying to change the meta title of the customer login page in Magento2 at example.com/customer/account/login/. Added tag to my xml file but no luck. Please advise. Here's my xml layout: <?xml ...
0
votes
1answer
102 views

Loading Javascript file when module load

I am developing custom Module in Magento 1. Now I would like to load my module specific JS file when then module enabled. In this regard I used below xml code in a separate xml file named as module ...
0
votes
0answers
61 views

Add content to media.phtml without modifying the code

I have added custom code to media.phtml. media.phtml shows the product image. The product images get cached and therefore my custom code is getting cached also and I do not want it to be. What I ...
0
votes
1answer
374 views

How to add column in orders Excel xml export?

In magento backend it is possible to export the list of the orders in Excel XML format. I would like to add columns in this file such as the company name (present in the customer address) and the ...
0
votes
1answer
132 views

Serving a different product page for certain products with router

I've developed a module that sends some product pages to a product customization wizard. I've used getProductUrl() to change the links to point to the customization URL. http://mywebsite.com/designer/...
0
votes
2answers
143 views

Magento 2: New theme XML files not loaded on live site

My new theme works locally, but when once uploaded to live server, selected in the Admin, it shows some content, but it's not using my new XML files. The new default_head_blocks.xml defintely isn't ...
0
votes
0answers
67 views

How do I change Magento Success Page XML layout?

This is the content of my layout: <checkout_onepage_success> <reference name="content"> <remove name="checkout.success"></remove> <block type="...
0
votes
2answers
828 views

Magento 1.9.2.4 Add Cart To Header

I need to add a cart to the header. I am creating my own custom theme which feeds of the RWD theme. I need a cart that shows total items and value.
0
votes
1answer
154 views

Magento Shipping Method

I have created a custom shipping method in Magento but my question how i can call a request from external gateway and read XML data in Magento shipping method .
0
votes
3answers
2k views

Show/Hide Editor Not Responding

I have tried to look for previous solution and couldn't find any relevant topics. So I guess I should post a new question here. We are trying to toggle the WYSIWYG editor (Which is turned by default) ...
0
votes
1answer
50 views

Filter products (out of stock) with xml

I found this code in a xml file: <action method="setAvailableProducts"> <value helper="mmartinovic_productlist/getAvailableOrders"></value> </action> Is there a similar ...
0
votes
0answers
445 views

Change app/etc/local.xml programmatically (simplexml?)

does anybody know the best way to change a node in local.xml within a custom module? Is there functionality within magento I can use or do I need to focus on a simplexml function in php? Currenly I ...
0
votes
2answers
83 views

How to write direct link of js in magento

In magento 1 in xml <script src="http://www.abc/aa/abc.js"></script> In magento 2 i am trying to ad like this in my xml but its not adding how can i add js using link without download ...
0
votes
2answers
246 views

Remove a shipping method from a store view

I have a magento store with 1 website operating 2 store views within it. I want to hide a shipping method which is displayed in a list item in one of the store views. I understand I can use css ...
0
votes
1answer
536 views

How to add js file to admin category edit via xml?

I have created a module and I am trying to include a custom js file into the category edit page. In my config.xml file I have: <config> ... <adminhtml> <layout> ...
0
votes
1answer
167 views

system.log to so many error message

my magento shopping mall is so many error comes up what problem...? and cpu28~27% possession..this is normality ? please tell me ! this is my systemp.log 2016-01-29T00:09:03+00:00 CRIT (2): Not ...
0
votes
4answers
55 views

Loading a custom block into Magento

Magento is still very much a learning curve for myself but I'm trying to steer away from so much of my hard-coded, procedural PHP and start following the Magento MVC. I've set myself the task of ...
0
votes
0answers
502 views

Magento2 attributes construct error in Entity

I have made a dummy module in Magento2 , just wanted to observer cart add event, but while making few files i am getting this error a:4:{i:0;s:168:"Warning: DOMDocument::loadXML(): attributes ...
0
votes
0answers
146 views

Shopping cart and checkout in 1 page

How do I put shopping cart and checkout in the same page? I don't want any extensions. I want to do it in XML, but I don't how to do it.
0
votes
2answers
78 views

Is the order notification email avaiable by default in Magento 1.9.1 version?

but in magento 1.9.1 the order notification email are available by default ?, because It does not work
0
votes
1answer
691 views

Product get Small image from collection

i have tried a lot to get only small image from product collection of product object to create custom XML feed for my products. but could not able to get succeed yet. $imgname = Mage::helper('...
-1
votes
1answer
120 views

Magento 2.2.2 How to add external script in Design Layout update XML?

What is the equivalent to the bellow code for Magento 2.2.2 This work for magento 1.9.2.7 : <reference name="head"> <block type="core/text" name="pixel"> <action method="...

1
3 4 5 6
7