woocommerce - 'timber_set_product' not found or invalid function name -
i follow doc integrate woocommerce (https://github.com/jarednova/timber/wiki/woocommerce-integration) error in httpd/error_log
[fri apr 07 10:01:35 2017] [error] [client 10.168.1.103] php warning: call_user_func_array() expects parameter 1 valid callback, function 'timber_set_product' not found or invalid function name in /var/www/html/tv/wp-content/plugins/timber-library/lib/twig.php on line 268
1. add timber_set_product
in themes functions.php
, right?
2. debug display themes woocommerce.php
$product = wc_get_product($context['post'] -> id)
did not correct result($product
point same product), debug plugins/woocommerce/templates/single-product /price.php
found global $product
point same product
Comments
Post a Comment