Title: Error on function wc_get_template()
Last modified: June 18, 2019

---

# Error on function wc_get_template()

 *  Resolved [marcelo2605](https://wordpress.org/support/users/marcelo2605/)
 * (@marcelo2605)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-on-function-wc_get_template/)
 * I figured out an error on includes/class-wc-product-pw-gift-card.php line 213.
   The second argument ($args) must be an array, instead a string.
 * [https://docs.woocommerce.com/wc-apidocs/source-function-wc_get_template.html#207](https://docs.woocommerce.com/wc-apidocs/source-function-wc_get_template.html#207)
 * The edited line:
 * `wc_get_template( 'single-product/add-to-cart/pw-gift-card-before-add-to-cart-
   quantity.php', [], '', PWGC_PLUGIN_ROOT . 'templates/woocommerce/' );`

Viewing 1 replies (of 1 total)

 *  Plugin Author [pimwick](https://wordpress.org/support/users/pimwick/)
 * (@pimwick)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/error-on-function-wc_get_template/#post-11649907)
 * Good catch, we have fixed this warning in the latest release. Let us know if 
   you need anything else!

Viewing 1 replies (of 1 total)

The topic ‘Error on function wc_get_template()’ is closed to new replies.

 * ![](https://ps.w.org/pw-woocommerce-gift-cards/assets/icon-256x256.png?rev=1809373)
 * [PW WooCommerce Gift Cards](https://wordpress.org/plugins/pw-woocommerce-gift-cards/)
 * [Support Threads](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pw-woocommerce-gift-cards/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pimwick](https://wordpress.org/support/users/pimwick/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/error-on-function-wc_get_template/#post-11649907)
 * Status: resolved