xml – Preço do frete some da página de checkout – MAGENTO 2

Galera boa noite, estou com um problema a respeito do magento 2, eu estava mudando o layout da pagina de carrinho e percebi que se eu alterar qualquer coisa no xml Checkout_cart_index.xml o preço do frete simplesmente para de aparecer. Eu sei que oque traz ele é um código “data-bind=”text: getFormattedPrice(method.price_excl_tax)”. Alguem ja teve esse problema?

inserir a descrição da imagem aqui

Se eu simplesmente adicionar qualquer coisa ou alterar algo no checkout_cart_index o valor do frete some

inserir a descrição da imagem aqui

Como resolver isso ? eu preciso editar esse layout e preciso que o valor conste ao lado do frete

Delphi leitura de xml com xmldocument

Tenho um xml com nos com o mesmo nome como faço para ler esses valores ?

        <det nItem="4">
            <prod>
                <cProd>7544</cProd>
                <cEAN>SEM GTIN</cEAN>
                <xProd>ORG CLEAR 37X15X13CM NAT</xProd>
                <NCM>39249000</NCM>
                <CFOP>6202</CFOP>
                <uCom>UN</uCom>
                <qCom>2.00</qCom>
                <vUnCom>18.1400</vUnCom>
                <vProd>36.28</vProd>
                <cEANTrib/>
                <uTrib>UN</uTrib>
                <qTrib>2.00</qTrib>
                <vUnTrib>18.1400</vUnTrib>
                <indTot>1</indTot>
            </prod>
            <imposto>
                <ICMS>
                    <ICMSSN101>
                        <orig>0</orig>
                        <CSOSN>101</CSOSN>
                        <pCredSN>2.75</pCredSN>
                        <vCredICMSSN>1.00</vCredICMSSN>
                    </ICMSSN101>
                </ICMS>
                <IPI>
                    <cEnq>999</cEnq>
                    <IPITrib>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pIPI>0</pIPI>
                        <vIPI>0.00</vIPI>
                    </IPITrib>
                </IPI>
                <PIS>
                    <PISOutr>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pPIS>0.00</pPIS>
                        <vPIS>0.00</vPIS>
                    </PISOutr>
                </PIS>
                <COFINS>
                    <COFINSOutr>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pCOFINS>0.00</pCOFINS>
                        <vCOFINS>0.00</vCOFINS>
                    </COFINSOutr>
                </COFINS>
            </imposto>
        </det>
        <det nItem="5">
            <prod>
                <cProd>7547</cProd>
                <cEAN>SEM GTIN</cEAN>
                <xProd>ORG CLEAR TP 30X15X7CM NAT</xProd>
                <NCM>39249000</NCM>
                <CFOP>6202</CFOP>
                <uCom>UN</uCom>
                <qCom>1.00</qCom>
                <vUnCom>17.2300</vUnCom>
                <vProd>17.23</vProd>
                <cEANTrib/>
                <uTrib>UN</uTrib>
                <qTrib>1.00</qTrib>
                <vUnTrib>17.2300</vUnTrib>
                <indTot>1</indTot>
            </prod>
            <imposto>
                <ICMS>
                    <ICMSSN101>
                        <orig>0</orig>
                        <CSOSN>101</CSOSN>
                        <pCredSN>2.75</pCredSN>
                        <vCredICMSSN>0.47</vCredICMSSN>
                    </ICMSSN101>
                </ICMS>
                <IPI>
                    <cEnq>999</cEnq>
                    <IPITrib>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pIPI>0</pIPI>
                        <vIPI>0.00</vIPI>
                    </IPITrib>
                </IPI>
                <PIS>
                    <PISOutr>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pPIS>0.00</pPIS>
                        <vPIS>0.00</vPIS>
                    </PISOutr>
                </PIS>
                <COFINS>
                    <COFINSOutr>
                        <CST>99</CST>
                        <vBC>0.00</vBC>
                        <pCOFINS>0.00</pCOFINS>
                        <vCOFINS>0.00</vCOFINS>
                    </COFINSOutr>
                </COFINS>
            </imposto>
        </det>
        <det nItem="6">

wordpress – Google Sitemap XML isn’t showing About Page, Contact Page, Etc, only

My google sitemap has been uploaded to Google Search Console using example.com/sitemap_index.xml
When I click to the page in google search console ‘sitemaps read:’ I can only see the following:

  • example.com/author-sitemap.xml
  • example.com/category-sitemap.xml
  • example.com/e-landing-page-sitemap.xml
  • example.com/page-sitemap.xml
  • example.com/post-sitemap.xml

The actual pages my site consists of are:

  • example.com/about
  • example.com/work
  • example.com/services
  • example.com/contact

Should the about/work/services pages be listed in Google Search Console when I click into the sitemap_index.xml file? Or have I done the XML file incorrectly?

I am using a Child Theme on Elementor on WordPress.
The only thing in my robots.txt file is the following:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

I do have a devoted page example.com/sitemap with all my pages listed out

my active sitemap on Google Search Console

xml – Comprobar que una variable existe JAVA

double estimatedOverallContractAmount

estimatedOverallContractAmount es una primitiva. Hay un espacio de memoria reservado para el valor, el valor siempre existirá (aunque pueda ser 0.0).

if (estimatedOverallContractAmount) {

A diferencia de otros lenguajes (C/C++), if y while espera una expresión booleana. En C te comprobaria si estimatedOverallContractAmount se evalúa a 0 (false) o no (true), en Java estimatedOverallContractAmount debería ser true o false.

El equivalente en Java sería

if (estimatedOverallContractAmount != 0d) {

que es una expresión que es true o false.

En todo caso,

double estimatedOverallContractAmount = Double.parseDouble(estimatedOverallContractAmountNode.getTextContent());

Si aquí estimatedOverallContractAmountNode.getTextContent() devuelve null o la cadena vacía, te saltará una excepción porque no se puede parsear como double (recordemos, es una primitiva, no hay valor null). Este es el valor que tienes que controlar, antes de hacer ninguna conversión.

if ((estimatedOverallContractAmountNode.getTextContent() != null) && !estimatedOverallContractAmountNode.getTextContent().isBlank()) {

When the site changes to use `www` does the XML sitemap need to be resubmitted via Google Search Console?

You actually need to re-authenticate your new www site. www is a subdomain, and unless your registered a domain with all it’s subdomains to Google Search Console, you need to register every subdomain. Since you need open a new asset in Google Search Console, you will also need to resubmit your sitemap.xml

Thanks to the comment from Stephen, I am adding a screenshot:

enter image description here

Stephen is correct, if you have verified a domain property, you are good to go. If you have verified a single url property, you might need to verify the www property.

plugins – Retrieve and copy an xml data in another item data, the right way?

i’m using WpAllImport plugin to import some xml files in my wordpress.

I have an xml file similar to this

<feed>
  <import1>
    <user1>..userdata..</user1>
    <item>..itemdata..</item>
           ..otheritems..
  </import>
  <import2>
    <user2>..userdata..</user2>
    <item>..itemdata..</item>
           ..otheritems..
  </import>
<feed>

I’m using the code below to retrieve some data from <user> (for example the email) and print them in <item>

function wpai_pmxi_before_xml_import( $importID ) {
// Retrieve import object.
$import = new PMXI_Import_Record();
$import->getById( $importID );

// Ensure import object is valid.
if ( ! $import->isEmpty() ) {

    // Retrieve history file object.
    $history_file = new PMXI_File_Record();
    $history_file->getBy( 'import_id', $importID );

    // Ensure history file object is valid.
    if ( ! $history_file->isEmpty() ) {

        // Retrieve import file path.
        $file_to_import = wp_all_import_get_absolute_path( $history_file->path );

        // Load import file as SimpleXml.
        $file = simplexml_load_file( $file_to_import );
        
        // Check if emailis a child of Procurement.
        $query = $file->xpath( "//feed/import(1)/item(1)/email(1)" );
        if ( ! empty( $query ) ) {

            // If it is, do nothing.
            return;
        }
                                
        // Get email value.        
       $iquery = $file->xpath( "///import/user/email(1)" );
                
        // Ensure value isn't empty.
        if ( ! empty( $iquery ) ) {

            // Value of emailas string.
            $status = $iquery(0)->__toString();

            // Target path.
            $new_query = $file->xpath( "./import/item" );

            // Ensure path is valid.
            if ( ! empty( $new_query ) ) {

                // Process each item element.
                foreach ( $new_query as $record ) {

                    // Ensure this element doesn't have email.
                    if ( ! isset( $record->email ) ) {

                    // Add {email(1)} as child node.
                    $record->addChild( 'email', $status );

                    }
                }

                // Save updated file.
                $updated_file = $file->asXML( $file_to_import );

            }
        }
     }
  }
}

Now, this code prints the <email> data of the first <user> in all <item>, while I should retrieve the <email> of each user and print it in the relative <item> in each <import>

Any suggestions?

iis 10 – Why can’t I edit IIS XML configuration files with gvim on Windows 10?

When I try to open C:Windowssystem32inetsrvconfigschemaIIS_schema.xml for example on Windows 10 Pro, build 20H2, I can always open it in notepad, but if I open it in gvim (a real editor) it pretends like the file doesn’t exist.

I’ve even run gvim as a domain administrator and it still makes like it doesn’t exist. I’ve never seen this sort of behavior before, it’s really strange.

Comparar datos de un archivo TXT con un XML EN c#

Buen día.

Requiero leer un archivo TXT y comparar sus datos con un archivo XML.
El problema lo tengo al querer obtener los datos del archivo XML, ya que tengo dos Atributos con el mismo dato.
Es decir tengo el XML de esta manera

  <Empresas RFC="AAA010101AAA" RutaEmpresa="C:CompacEmpresasadEmpresa_Demo">
    <Conceptos Serie="NX001" Folio="0" Password="12345678a" > </Conceptos>
    <Conceptos Serie="MXN" Folio="0" Password="12345678a"></Conceptos>
  </Empresas>
  <Empresas RFC="AAA010101AAE" RutaEmpresa="C:CompacEmpresasadEmpresa_Demo2021">
    <Conceptos Serie="NX001" Folio="0" Password="12345678a"></Conceptos>
    <Conceptos Serie="MXN01" Folio="0" Password="12345678a"></Conceptos>
  </Empresas>

Tengo el archivo TXT de la siguiente manera:
TXT

00|AAA010101AAA
01|1447AA|Juan Perez|AAA010101AAA|I|FA|9|03/17/2020|04|PUE|Pago en una sola exhibicion|P01|NX001||

Entonces tengo mi código

         public static void AbreEmpresa(string startFolder)
    {
        List<string> Datos = LeerArchvioTXT(startFolder);
        Empresa() e = Empresa(startFolder);
        Cliente() cl = Cliente(startFolder);
        char separa = '|';
        string() DatosC;
        DatosC = Datos(1).Split(separa);
        string txtRFC = e(0).RFC;
        string txtSerie = DatosC(12);

        XmlDocument xmlRuta = new XmlDocument();
        xmlRuta.Load("C:\Users\Contpaqi\Documents\Visual Studio 2017\Proyects\Wednesday\Wednesday\Config.xml");
        XmlNodeList nodeEmpresa = xmlRuta.GetElementsByTagName("Empresas");

        foreach (XmlElement child in xmlRuta.SelectNodes("//Conceptos"))
        {
            string Serie = child.GetAttribute("Serie");
            foreach (XmlElement nodoEmpresa in nodeEmpresa)
            {
               
                string xEmpresa = nodoEmpresa.GetAttribute("RutaEmpresa");
                string xRFC = nodoEmpresa.GetAttribute("RFC");
                if (txtRFC == xRFC && txtSerie == Serie)
                {
                    int lError = 0;
                    lError = SDK.fAbreEmpresa(xEmpresa);
                    if (lError != 0)
                    {
                        SDK.rError(lError);
                    }
                    else
                    {
                        Console.WriteLine("Empresa abierta " + xEmpresa.ToString());
                    }
                }
            }
           
        }               
    }

El detalle esta que me abre la empresa 2 veces, porque en el atributo Serie existe el mismo dato en los RFC, he investigado varias manera de leer los atributos del XML pero me da el mismo resultado.
Es el único detalle que tengo, ya que ya cuento con la lectura de los datos del txt, el unico detalle es ese.
Cualquier ayuda o comentario para mejorar es bienvenido.

html – Atualização automática com Javascript a partir de um arquivo externo XML

Olá, estou aprendo programação, e já estou em um desafio para conseguir atualizar um desenho feito com a função em cavas, a partir de um arquivo xml, estou tentando com javaScript. Utilizando o mouse ja consegui o efeito desejado, mas quando tento extrair os dados do arquivo xml, os resultados não são os mesmo. Obrigado.

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
<!--    <meta http-equiv="refresh" content="5"> -->
    <title>Teste 6</title>
    <script>
        function atualiza(){

            var largura = 200;
            var altura = 200;

            var quadro = document.getElementById("quadro");
            quadro.setAttribute("width", largura);
            quadro.setAttribute("height", altura);
            var pincel = quadro.getContext("2d");


            pincel.beginPath();    
            pincel.font="12px Verdana";
            pincel.fillStyle="white";
            pincel.fillText("Teste 06",60,10);


            var desenhando = false;

            quadro.onmousedown = function (evt) {
                desenhando = true;

                pincel.beginPath();
                pincel.arc(100,100,50,0,2*Math.PI);
                pincel.fillStyle= 'red';
                pincel.strokeStyle= '#003300';
                pincel.lineWidth= 5;
                pincel.fill(); 
                pincel.stroke();

            }

            quadro.onmouseup = function () {
                desenhando = false; 

                pincel.beginPath();
                pincel.arc(100,100,50,0,2*Math.PI);
                pincel.fillStyle= 'blue';
                pincel.strokeStyle= '#003300';
                pincel.lineWidth= 5;
                pincel.fill(); 
                pincel.stroke();

            }

 /*           quadro.getElementById = function () {
//            document.getElementById("quadro").innerHTML = (getXMLValue(xmlData, 'btn(0)') == 'up') ? desenhando = true; : desenhando = false; {

//            window.onload = function (){
                 if (desenhando) {
                        pincel.beginPath();
                        pincel.arc(100,100,50,0,2*Math.PI);
                        pincel.fillStyle= 'red';
                        pincel.strokeStyle= '#003300';
                        pincel.lineWidth= 5;
                        pincel.fill(); 
                        pincel.stroke();

 
                    }
                    if(!desenhando)  {
     
                        pincel.beginPath();
                        pincel.arc(100,100,50,0,2*Math.PI);
                        pincel.fillStyle= 'blue';
                        pincel.strokeStyle= '#003300';
                        pincel.lineWidth= 5;
                        pincel.fill(); 
                        pincel.stroke();


                    }
            }
*/

        }

    window.setInterval("atualiza()", 1000);
    </script>

</head>
<body onload="atualiza()">  <!-- background Cor da caixa -->
    <div style="background-color: red"> <h1 style="color:white;">Teste 06</h1></div>
    <div> <canvas id="quadro" style="background:#363636"></canvas></div>
</body>
</html>

Arquivo xml

<response>

    <BTN0>~btn(0)~</BTN0>

</response>

sharepoint enterprise – Xml file comparison

Good afternoon All,

I want to compare XML file stored in SharePoint Online with its previous version and show the difference between them.

Could you please suggest any feature in SharePoint Online or custom solution to achieve it?

Thank you very much for your support.

Regards,
Maple Leaf