• Hi,

    I’ve been trying to figure out myself, asked my developer and was looking for forums. But no luck yet!! Hoping you could help!

    I had activated payment on delivery option and wrote in certain instructions.

    When a person checks out, he clicks on the only available payment option, is redirected to a page which provides those instructions.

    However, instructions are also pulled into emails to customers and I wouldn’t like that to be the case. We are going to send some custom emails, and I managed to tweak the initial template.

    While doing that I couldn’t identify what strong triggers the instruction to appear just above the order table.

    Please help! I need the instructions gone from emails! I am not very familiar with coding, so if you could, please, explain what and where I should write in the emails templates.

    Site goes live tomorrow and I still have no solution ??

    System status

    Number of Decimals: 0

    ### API ###

    API Enabled: ?

    ### WC Pages ###

    Shop Base: #11799 – /ikony/
    Cart: #4098 – /korzina/
    Checkout: #4099 – /oformlenie-zakaza/
    My Account: #4100 – /lichnyj-kabinet/

    ### Taxonomies ###

    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    ### Theme ###

    Name: CDG Brand
    Version: 1.0.0
    Author URL: https://www.cdgbrand.com
    Child Theme: ?
    Parent Theme Name: Avada
    Parent Theme Version: 5.0.6
    Parent Theme Author URL: https://themeforest.net/user/ThemeFusion
    WooCommerce Support: ?

    ### Templates ###

    Overrides: Avada/woocommerce/cart/cart.php
    Avada/woocommerce/checkout/form-pay.php
    Avada/woocommerce/checkout/review-order.php
    Avada/woocommerce/checkout/thankyou.php
    cdgbrand/woocommerce/emails/customer-processing-order.php
    Avada/woocommerce/loop/loop-start.php
    Avada/woocommerce/single-product/add-to-cart/variable.php
    Avada/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    Avada/woocommerce/single-product/product-image.php
    Avada/woocommerce/single-product/product-thumbnails.php
    Avada/woocommerce/single-product/short-description.php
    Avada/woocommerce/single-product/tabs/additional-information.php
    Avada/woocommerce/single-product/tabs/description.php

    `

    • This topic was modified 7 years, 10 months ago by mccanni.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mccanni

    (@mccanni)

    The email template

    <?php
    /**
    * Customer processing order email
    *
    * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
    *
    * HOWEVER, on occasion WooCommerce will need to update template files and you
    * (the theme developer) will need to copy the new files to your theme to
    * maintain compatibility. We try to do this as little as possible, but it does
    * happen. When this occurs the version of the template file will be bumped and
    * the readme will list any important changes.
    *
    * @see https://docs.woocommerce.com/document/template-structure/
    * @author WooThemes
    * @package WooCommerce/Templates/Emails
    * @version 2.5.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    /**
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>

    <p><?php _e( “Наш менеджер в ближайшее время свяжется с Вами для того, чтобы подтвердить наличие выбранного вами товара и обсудить детали его предоставления.”, ‘woocommerce’ ); ?></p>

    <p><?php _e( “Вы можете также самостоятельно связаться с нами по телефонам: +7967-18-12 или +7943-90-47.”, ‘woocommerce’ ); ?></p>

    <p><?php _e( “После согласования всех деталей по предоставлению заказанной продукции, вы можете оплатить сумму заказа на любую из наших банковских карт:”, ‘woocommerce’ ); ?></p>

    <p><?php _e( “Номер карты в Сбер. Банке России 5484
    Получатель К Андрей Николаевич”, ‘woocommerce’ ); ?></p>

    <p><?php _e( “Номер карты в Альфа Банке 4154
    получатель К Андрей Николаевич”, ‘woocommerce’ ); ?></p>

    <?php

    /**
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Emails::order_schema_markup() Adds Schema.org markup.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( ‘woocommerce_email_footer’, $email );

    • This reply was modified 7 years, 10 months ago by mccanni.

    Try commenting out this line and check if the content still appears or not.

    do_action( ‘woocommerce_email_header’, $email_heading, $email );

    after that in your themes’s functions.php or wherever you have custom codes search for the action woocommerce_email_header and comment out that add_action line.

    Thread Starter mccanni

    (@mccanni)

    Hi, thanks for your reply, but it doesnt seem to work after doing what you’ve suggested ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Payment on delivery – instructions in customers email’ is closed to new replies.