Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Error 500 with theme Rodich Themeforest

Discussion in 'Misc WordPress Requests' started by olegtk, Nov 9, 2017.

  1. olegtk

    Guest

    Error 500 with theme Rodich Themeforest, by olegtk

    Hello.
    Purchased Rodich template from themeforest.

    After activating template always critical error 500.

    Debug shows that the problem in frontend-functions.php line 703.

    “syntax error, unexpected T_FUNCTION”

    This is the line:

    add_filter( ‘woocommerce_product_add_to_cart_text’, function(){return cs_get_option(‘add_to_cart_text’);} ); // 2.1 +

    The whole code is following:

    function rodich_add_to_cart_text(){
    $add_to_cart_text = cs_get_option(‘add_to_cart_text’);
    if ($add_to_cart_text) {
    add_filter( ‘woocommerce_product_add_to_cart_text’, function(){return cs_get_option(‘add_to_cart_text’);} ); // 2.1 +
    add_filter( ‘woocommerce_product_single_add_to_cart_text’, function(){return cs_get_option(‘add_to_cart_text’);} ); // 2.1 +
    }
    }

    Can you help?

    Error 500 with theme Rodich Themeforest
     
    #1

Share This Page

Web Hosting