Questions tagged [xml]

Denotes questions about XML files and XML processing.

299 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
34 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 ...
0
votes
1answer
11 views

History order comment not show when export order in magento 1.x

I have three field comment, this can save after order. It work and show on order history comment like this But when i export xml it not show, i think problem at here, 2 links are the same. 2 comment ...
0
votes
1answer
41 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/...
0
votes
0answers
51 views

magento dev:urn-catalog:generate command fails to detect secret file

I'm running the following command "magento dev:urn-catalog:generate .idea/misc.xml " to use the functionality of Magento 2 to automatically resolve all my URN's so PhpStorm will stop giving me ...
0
votes
0answers
20 views

system.log from getFeedData() they are filling up my logs

Every time I am checking my system.log file I would always find the following warnings. ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the ...
0
votes
0answers
32 views

Export All Products From Magento to XML File

I'm trying to export all our listed products from our magento site to an XML file - appears the only option via admin site is to do this via CSV - this comes out unreadable. Can you advise?
0
votes
0answers
16 views

Change mobile navigation

I am trying to work out which xml file controls the menu on luma for mobile so that I can remove the Menu/Account section here at the top So I can achieve something similar to this
0
votes
0answers
26 views

How to render UI Component grid using .xhtml file?

I was used following code but no luck 1) abc.phtml include ($block->getTemplateFile('Vendorname_Modulename::event.xhtml')); 2) event.xhtml <?xml version="1.0" encoding="UTF-8"?> <...
0
votes
0answers
16 views

magento 2 use class constant value into XML file

Hi I am working with the Magento 2 constant, the following constant i want to use in XML file class Data extends \Magento\Framework\App\Helper\AbstractHelper { const CUSTOM_TAX_CODE = 'customtax'...
0
votes
0answers
36 views

magento : Give condition in xml file

Condition in xml file catalog.xml <xsl:if product="bundle" > <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/&...
0
votes
1answer
18 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
21 views

Some of product detail page error- Element 'reference': This element is not expected

When I tried to change or open product I got next message: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'reference': This element is not expected. Line: 1 ...
0
votes
1answer
36 views

Magento 2 read custom xml file from third party server and load it in our magento site

I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible. Not any authentication set. <valley street name="jackson"> <item> &...
0
votes
0answers
12 views

create custome xml in magento 2

i create custom XML file <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:chalaksoft:...
0
votes
0answers
38 views

Product Form with Custom Datasource not showing default values except image of product in magneto 2 Admin

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
0
votes
0answers
18 views

Magento 2 Data in SSRS Reports

Has anyone been able to query Magento 2 (any entity, but I am specifically using orders) using the XML data source in SSRS Report Builder? I am having difficulty structuring the connection string. If ...
0
votes
0answers
18 views

Grid name=“collection” on di.xml work with an undefined path

When I want to generate the Grid on my admin panel, I need to add that on my di.xml. the code : <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> ...
0
votes
0answers
177 views

Magento2 : How to add button in admin custom module page?

I want to add one button here how I can add code?? and how to add action controller any idea ?? i already tried this answer(https://magento.stackexchange.com/a/212656/73525) but showing error ...
0
votes
0answers
23 views

Migrate from opencart to magento is i need to resubmit xml sitemap to google webmaster after successfully migration?

After migration from opencart to magento is i need to submit xml sitemap to google webmaster?
0
votes
0answers
21 views

Trying to add an external CSS file to a specific CMS page in Magento 2.2.5

I can't seem to get external CSS file to load on a specific Magento 2.2.5 CMS page. My current XML layout update code is this <body> <attribute name="class" value="stacked"/> <...
0
votes
1answer
62 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...
0
votes
0answers
63 views

Export Category name in xml feed Magento 1.9.2

I have the script below for exporting product xml feed for magento 1.9.2 The problem is that I cannot export the category name for each product The scipt is: require 'app/Mage.php'; Mage::app(); $...
0
votes
0answers
39 views

Magento Amasty FPC and Dynamic Content

We have Amasty FPC and want to use their hole punch method for Dynamic Content but I’m a little confused on the XML configuration file. Their is two methods which have the block exclusions - one is ...
0
votes
0answers
16 views

Magento2 make logo inline with navigation

To make the logo and nav sections inline is it better to move the logo into the nav or the nav into the header?
0
votes
2answers
218 views

How to override order sales model in magento 1.9

I have stuck with this. I am trying to override sales/ order model _saveafter function with my custom module. I have the following code \app\code\local\Rkt\SalesNew\etc\config.xml <modules> ...
0
votes
0answers
17 views

Magento2 If I move containers with XML it kills css

I applied custom css to my navigation bar. Then when I moved the nav bar into the header via xml my css was no longer working. Why is that? The correct css is in the section.
0
votes
0answers
409 views

Magento2 set image size in etc/view.xml

I have this XML to set my image sizes for both related products and my catalog widget on my home page. The Related Products portion works but the home page one doesn't. <media> <images ...
0
votes
0answers
79 views

Move element is not working as expected in magento 2.1

In category_catelog_view.xml I need to move a custom layered navigation above the product grid. I tried all of the listed below <move element="custom.left.layered_nav" destination="content" before=...
0
votes
0answers
85 views

Magento 2 on mobile display layered navigation before products

In default Magento theme, on the category page, the layered navigation is at the left column, and products in the main. This is OK. However on mobile, it first displays the products, and after the ...
0
votes
0answers
31 views

Change Module position in xml

I used a module Product Videos in Magento 1. I like to show a videos in description tab ? It is possible ?
0
votes
0answers
46 views

In mftf, popup elements are not getting identified

In Test folder xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> <...
0
votes
0answers
52 views

XML product feed category problem

I have written a php script so I can produce for my Magento 1.9.3.8 an xml product feed to send my products to another price comparison site. I have a problem with the category path of my products ...
0
votes
0answers
28 views

Magento2 Functional Testing Framework (MFTF) - URL not redirecting properly

I want to redirect below page - <amOnPage url="admin/system_config/edit/section/adminconf/" stepKey="navigateToIncommCartTimeout"/> But it is redirecting only admin/system_config/edit/...
0
votes
1answer
36 views

Override function from grouped.php

I am changing the table for a grouped product. I have overridden the grouped.phtml file to make changes. But I need to override the function: getAssociatedProducts($product) // Grouped.php Because ...
0
votes
1answer
97 views

Magento 2 - what event should I observe to change/intercept the calculation of subtotals on Cart

I am using Magento 2. I made an observer that observes anytime a new item is added to the cart. The observer works properly, I also managed to create a single product discount with this observer, ...
0
votes
1answer
305 views

Magento 2 - Move Block Not Working

I've created a faqs.xml for a bespoke page template and this is my code: <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
1answer
244 views

How add text in custom theme header magento 2

<referenceContainer name="header.wrapper"> <block class="Magento\Theme\Block\Html\Header" name="header.links" after="logo"> <arguments> <...
0
votes
0answers
14 views

Magento 2.2.5 Conflict when deleting links from the customer account page

When deleting the following links, the block-wishlist-management block is deleted as well when checking the Wishlists on the customer account space. Why? : <referenceBlock name="customer-...
0
votes
1answer
190 views

Magento 2 Add CMS/phtml block bottom before product_list_toolbar and after product_list (Between)

I am not able to add a cms block in category page. XML: <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="my_module::test.phtml"/> what I ...
0
votes
0answers
59 views

call breadcrumbs block twice in page.xml magento 1.9

I am trying to call breadcrumbs.phtml file twice through page.xml file. In page.xml breadcrumbs are added here <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">...
0
votes
1answer
113 views

Magento 2 overwrite checkout.cart.item.renderers block

I tried to set a new template for checkout.cart.item.renderers block and i found some issue, beucause I didn't know that i have to overwrite separately each type of product. I will post my solution, ...
0
votes
1answer
787 views

Move related products to “Details” tab on product page

I would like to move related products to "Details" tab below description on product page.
0
votes
0answers
112 views

Copy block in XML file

I need to copy the block cart.summary in checkout_cart_index.xml. How can I do this ? I've copied the block and change the same but it not working. (I only have my original block)
0
votes
0answers
17 views

Magento 2 - Move Blocks based on Design Layout Type of Product

I want to have a few layout types for products and control this via either the category and apply to child products or via individual products. I want for example to change to a 2 column view ...
0
votes
2answers
505 views

Remove My Account top bar when user is not logged in

i want to remove magento top link My Account if user is not logged in ,i do not want to modify core files, i tried to get solution but could not find any working one . i tried below method in : "...
0
votes
0answers
90 views

Loads of system error logs in Magento 1

For instance when i'm clearing cache i get some errors and they are pointing to a core module here: 2018-10-04T15:20:26+00:00 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser ...
0
votes
0answers
68 views

How to generate xml sitemap with new request_path after URL re-write?

I have just updated request_path for the product from www.xyz.com/my_product to www.xyz.com/my_product_new through url rewrite. The request_path is inserted in the database correctly and working ...
0
votes
0answers
181 views

Magento 2: Warning: simplexml_load_string(): Entity: line 1: parser error : XML declaration allowed only at the start of the document

I am using magento 2.0 I have learn magento2 tutorials(No frills magento2 layout) of alan storm. I have create two xml files. when i run controller file then give Following error Warning: ...
0
votes
3answers
32 views

Magento 2 accidental theme move

I FTP'd into my server with filezilla. I accidentally moved one theme into another. I have since moved it back but now its pulling in the footer from its parent theme, luma. Default.xml and Default ...
0
votes
1answer
133 views

How to Change Block class for sales order status history tab

Below is the Block <action method="addTab"> <argument name="name" xsi:type="string">order_history</argument> <argument name="block" ...