• Hello yall, I went through this morning and updated a few of the outdated templates. After doing so I went to my shop page https://www.thegreenmvmt.com/shop-4/ and got a “Catchable fatal error”. I went to the line in the code where it said the error was but could not figure out what’s wrong. Any help would be great. Heres the code for the line where it says the error is. Lines 560 and 561 (line with error code)

    function woocommerce_template_loop_category_link_open( $category ) {
    	echo '<a href="' . get_term_link( $category->slug, 'product_cat' ) . '">';
Viewing 1 replies (of 1 total)
  • c960657

    (@c960657)

    Changing the second line from
    echo '<a href="' . get_term_link( $category->slug, 'product_cat' ) . '">';
    to
    echo '<a href="' . get_term_link( $category, 'product_cat' ) . '">';
    fixed a similar problem for me.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WooCommerce] Updated template issue’ is closed to new replies.