Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter andreaschm

    (@andreaschm)

    This is the code I have right now:
    `<?php
    /**
    * Request New Quote email
    *
    * @package Quotes for WooCommerce/Emails
    */

    $order_obj = new WC_order( $order->order_id );
    $display_price = false;

    // translators: Site Name.
    $opening_paragraph = __( ‘Ha realizado una solicitud de cotización a %s. Los detalles de los mismos se muestran a continuación:’, ‘quote-wc’ );
    ?>

    <?php do_action( ‘woocommerce_email_header’, $email_heading ); ?>

    <?php
    if ( $order ) :
    ?>
    <p><?php printf( esc_html( $opening_paragraph ), esc_attr( $site_name ) ); ?></p>
    <?php endif; ?>

    <table cellspacing=”0″ cellpadding=”6″ style=”width: 100%; border: 1px solid #eee;” border=”1″ bordercolor=”#eee”>
    <tbody>
    <tr>
    <th style=”text-align:left; border: 1px solid #eee;”><?php esc_html_e( ‘Producto’, ‘quote-wc’ ); ?></th>
    <th style=”text-align:left; border: 1px solid #eee;”><?php esc_html_e( ‘Cantidad’, ‘quote-wc’ ); ?></th>
    <?php
    if ( qwc_order_display_price( $order_obj ) ) {
    $display_price = true;
    ?>
    <th style=”text-align:left; border: 1px solid #eee;”><?php esc_html_e( ‘Precio del producto’, ‘quote-wc’ ); ?></th>
    <?php } ?>

    </tr>
    <?php
    foreach ( $order_obj->get_items() as $items ) {
    ?>
    <tr>
    <td style=”text-align:left; border: 1px solid #eee;”><?php echo wp_kses_post( $items->get_name() ); ?></td>
    <td style=”text-align:left; border: 1px solid #eee;”><?php echo esc_attr( $items->get_quantity() ); ?></td>
    <?php if ( $display_price ) { ?>
    <td style=”text-align:left; border: 1px solid #eee;”><?php echo wp_kses_post( $order_obj->get_formatted_line_subtotal( $items ) ); ?></td>
    <?php } ?>
    </tr>
    <?php
    }
    ?>
    </tbody>
    </table>

    <p><?php esc_html_e( ‘Este pedido está pendiente de cotización.’, ‘quote-wc’ ); ?></p>

    <p><?php esc_html_e( ‘Pronto recibirá un correo electrónico de parte de %s con una cotización.’, ‘quote-wc’ ); ?></p>

    <?php do_action( ‘woocommerce_email_footer’ ); ?>

    How should I add the total for it to appear inside the table?
    Thanks for your help

    Thread Starter andreaschm

    (@andreaschm)

    will do, thanks

    Thread Starter andreaschm

    (@andreaschm)

    https://facilinsumos.com/ this is my webpage and as you can see when you press about, services, or contact us it goes to the bottom of the page.
    I don’t know how to add pictures to this message. Is there any other way I can send them to you?

    Thread Starter andreaschm

    (@andreaschm)

    Hi,
    Thank you for answering. I did follow all those steps. I’ve already disable all plugging one by one but nothing changed. I made another page with the same child theme and it worked just fine. So I went back to the first page and deleted the woocommerce template I overwrote and made it into a function but the problem persisted.

Viewing 4 replies - 1 through 4 (of 4 total)