WooCommerce template files issue after Theme update

Hi There

We have X Theme version 4.6.4 and I tried in Staging mode the update to X Theme version 6.4.1

after Theme & WooCommerce update to latest version Woocommerce show an error of template files are not compatible with theme

WooCommerce version: 3.5.2

Error: yogadesignlab/woocommerce/emails/customer-completed-order.php version 2.5.0 is out of date. The core version is 3.5.0,

please if you can help me to solve this error ?

Thank you!

Hello Chad,

Thanks for asking. :slight_smile:

As of today the supported version of WooCommerce is 3.5.1. Please rollback to version 3.5.1 to avoid any potential compatibility issues.

You can download WooCommerce 3.5.1 from following source.

Thanks.

Hi Prasant

i just installed WooCommerce version: 3.5.1 and still have same error
Outdated templates:
/woocommerce/emails/customer-completed-order.php version 2.5.0 is out of date. The core version is 3.5.0,

thnak you

Hello Chad,

This issue has been resolve in the latest release. Could you please update to the latest versions?
Our latest versions are:
- X theme 6.4.3
- Cornerstone 3.4.3

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

_After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.-

Please let us know how it goes.

Still the same problem i think because we use a customized child theme maybe the templates of child theme are old ?

woocommerce/emails/customer-completed-order.php version 2.5.0 is out of date. The core version is 3.5.0

i wonder it will be very helpful if i can get direct support via email ?

Thank you!

Hello Chad,

“Error: yogadesignlab/woocommerce/emails/customer-completed-order.php version 2.5.0 is out of date. The core version is 3.5.0,”

Is yogadesignlab the folder name of your child theme? In that case, the issue lies in your child theme. You have this issue becase you have used a modified WooCommerce template within your child theme. Just edit the file: yogadesignlab/woocommerce/emails/customer-completed-order.php and make sure that the contents should be this:

<?php
/**
 * Customer completed order email
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-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/
 * @package WooCommerce/Templates/Emails
 * @version 3.5.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

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

<?php /* translators: %s: Customer first name */ ?>
<p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
<?php /* translators: %s: Site title */ ?>
<p><?php printf( esc_html__( 'Your %s order has been marked complete on our side.', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) ); ?></p>
<?php

/*
 * @hooked WC_Emails::order_details() Shows the order details table.
 * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
 * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
 * @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 );

?>
<p>
<?php esc_html_e( 'Thanks for shopping with us.', 'woocommerce' ); ?>
</p>
<?php

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

If you have made some changes to it, please add your customizations as well.

Thank you very much now the template problem is gone :grinning:

but we still have another problem please if you can check product page changes after theme update

befor update : https://yogadesignlab.com/product/geo-combo-yoga-mat/

after update : https://ydl.staging.wpengine.com/product/geo-combo-yoga-mat/

how i can fix the images format on product page to look the same as before theme update ?

Thank you!

Hello Chad,

We cannot check your staging site because it is asking us to sign in.

Meanwhile, please check your WooCommerce Image settings in Appearance > Customize > WooCommerce > Product Images if both the live and staging url has the same setting. If not, please change it to be the same and run “Regenerate Thumbs” by install Regenerate Thumbnails plugin (https://wordpress.org/plugins/regenerate-thumbnails/).

Hope this helps.

Hello Chad,

WooCommerce introduced product gallery slider and the product gallery zoom. If you want to have the old product images, then please add the following code in your child theme’s functions.php file

// Remove product gallery slider and gallery zoom
// =============================================================================
add_action( 'after_setup_theme', 'remove_woo_three_support', 11 ); 
function remove_woo_three_support() {
    remove_theme_support( 'wc-product-gallery-zoom' );
    remove_theme_support( 'wc-product-gallery-slider' );
}
// =============================================================================

We would loved to know if this has work for you. Thank you.

Thank you that’s very helpful

another question, does X theme support new wordpress version 5.0.2 ?

Hello Chad,

Thanks for updating the thread.

Yes, the latest version of X Theme and Cornerstone fully support WordPress 5.0.2. To learn about latest version numbers, please take a look at following page:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.