• Resolved tstanfar

    (@tstanfar)


    Hi, I am trying to update the text of the customer-processing-order.php email via a file in the child theme (change “Just so you know -” to “Thank you.”), but the override does not happen. To change it, I need to modify the original file.

    Here is what I did:
    1. Created website using the pre-built Ascension child theme (Primer theme is parent). Site published and works as-expected.

    2. Added WooCommerce plugin and configured. All seems to be working fine. Wanted to change the Processing Order e-mail template.

    3. Created the template file via the WooCommerce > Settings > Emails > Processing Order UI page. The “View Template” button became active/available and clicking it opened the editor for the template.

    4. I edited the template, but got a “Could not write to template file.” message after clicking the “Save changes” button.

    5. Validated through SFTP that the file was in the correct folder – ascension/woocommerce/emails/customer-processing-order.php.

    6. I manually edited the customer-processing-order.php and uploaded via SFTP. The “View Template” editor shows the updated text that I want, but i still cannot edit from the UI.

    7. Upon placing an order, the original email message is sent.

    8. I renamed the original file in the plugins/woocommerce/templates/emails directory to “customer-processing-order_.php”, but no email was sent to the customer after an order.

    9. I restored the original filename for plugins/woocommerce/templates/emails/customer-processing-order.php and edited the file. The customer email now shows the desired text. Unfortunately, the customized file is in the main plugins directory and will likely be wiped out when the plugin is updated.

    I’m new to WordPress so I’m not sure if this is a theme conflict or something else. I just know that it’s problematic when customizations are not made in a child theme. Is there a way to get the customization to work from the child theme directory?

    Any help would be appreciated. Thanks.

    Here is the System Report. I don’t see a way to manually update from WordPress 5.1 to 5.1.1 via the GoDaddy control panel.

    
    ### WordPress Environment ###
    
    Home URL: https://wemsoftware.com
    Site URL: https://wemsoftware.com
    WC Version: 3.5.6
    Log Directory Writable: ✔
    WP Version: ❌ 5.1 - There is a newer version of WordPress available (5.1.1)
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.15
    PHP Post Max Size: 33 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.45.0
    OpenSSL/1.0.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.32-78.0-log
    Max Upload Size: 33 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.5.6
    WC Database Prefix: wp_cyp5m2cqtx_
    MaxMind GeoIP Database: ✔
    Total Database Size: 7.10MB
    Database Data Size: 6.49MB
    Database Index Size: 0.61MB
    wp_cyp5m2cqtx_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB
    wp_cyp5m2cqtx_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_cyp5m2cqtx_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_cyp5m2cqtx_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB
    wp_cyp5m2cqtx_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_cyp5m2cqtx_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_cyp5m2cqtx_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_cyp5m2cqtx_commentmeta: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_comments: Data: 0.01MB + Index: 0.01MB
    wp_cyp5m2cqtx_gf_draft_submissions: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_entry: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_entry_meta: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_entry_notes: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_form: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_form_meta: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_form_revisions: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_gf_form_view: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_links: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_actions: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_action_meta: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_chunks: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_fields: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_field_meta: Data: 0.05MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_forms: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_form_meta: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_objects: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_object_meta: Data: 0.06MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_relationships: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_nf3_upgrades: Data: 0.02MB + Index: 0.00MB
    wp_cyp5m2cqtx_options: Data: 1.48MB + Index: 0.05MB
    wp_cyp5m2cqtx_postmeta: Data: 4.09MB + Index: 0.07MB
    wp_cyp5m2cqtx_posts: Data: 0.29MB + Index: 0.03MB
    wp_cyp5m2cqtx_termmeta: Data: 0.00MB + Index: 0.01MB
    wp_cyp5m2cqtx_terms: Data: 0.00MB + Index: 0.01MB
    wp_cyp5m2cqtx_term_relationships: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_term_taxonomy: Data: 0.00MB + Index: 0.00MB
    wp_cyp5m2cqtx_usermeta: Data: 0.01MB + Index: 0.01MB
    wp_cyp5m2cqtx_users: Data: 0.00MB + Index: 0.01MB
    wp_cyp5m2cqtx_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_cyp5m2cqtx_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    
    ### Post Type Counts ###
    
    attachment: 71
    customize_changeset: 7
    jetpack_migration: 2
    nav_menu_item: 11
    nf_sub: 3
    page: 12
    post: 2
    product: 7
    revision: 77
    shop_order: 10
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (11) ###
    
    Gravity Forms: by rocketgenius – 2.4.3
    Beaver Builder Booster: by The Beaver Builder Team – 1.0.9
    Beaver Builder Plugin (Lite Version): by The Beaver Builder Team – 2.2.1.4
    Contact Widgets: by GoDaddy – 1.6.2
    GoDaddy Email Marketing: by GoDaddy – 1.4.2
    Jetpack by WordPress.com: by Automattic – 7.1.1
    Ninja Forms: by The WP Ninjas – 3.4.4
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.20
    WooCommerce Stripe Gateway: by WooCommerce – 4.1.15
    WooCommerce Services: by Automattic – 1.19.0
    WooCommerce: by Automattic – 3.5.6
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Shop base: #462 - /shop/
    Cart: #464 - /cart/
    Checkout: #466 - /checkout/
    My account: #468 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Ascension
    Version: 1.1.4
    Author URL: https://www.godaddy.com/
    Child Theme: ✔
    Parent Theme Name: Primer
    Parent Theme Version: 1.8.6
    Parent Theme Author URL: https://www.godaddy.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: primer/templates/woocommerce/loop/pagination.php
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Email template override not working’ is closed to new replies.