impress-org / woocommerce-preview-emails

The easiest way to preview your WooCommerce emails as a reference while you customize them in your theme.
GNU General Public License v2.0
152 stars 32 forks source link

Call to undefined function wc_get_template() #8

Closed azeemdwt closed 7 years ago

azeemdwt commented 9 years ago

Hi,

I am getting error

"Call to undefined function wc_get_template() in [path to theme]/woocommerce/emails/email-header.php on line 32 "

System info

WC Version: 2.0.13 WC Database Version: 2.0.13 WP Version: WP 3.6 Web Server Info: Apache/2.4.12 (Ubuntu) PHP Version: 5.5.26 MySQL Version: 5.5.28-0ubuntu0.12.04.2-log

Please help in this regard.

mathetos commented 9 years ago

Yes, this needs to be updated to the latest template files of WooCommerce. I assume you're running WooCommerce 2.4+

Hoping to knock that out sometime next week. But you can also compare the current with the WooCommerce template and pull over the new parts. Between that, or waiting for me to update next week sometime, that's what I can do for now.

azeemdwt commented 9 years ago

Thanks for prompt response. I am using WooCommerce 2.0.13 version.

mathetos commented 7 years ago

I've updated this library to support the latest WooCommerce 2.6+ Update and all should be fine. Thanks!