• Hello,

    so, I’ve activated woocommerce plugin and after that I got this error: “Warning: array_merge(): Argument #1 is not an array in /home4/heart/photo.michalsornat.com/wp-content/themes/themify-ultra/theme-functions.php on line 2616”

    This is how my code looks:

    * Add woocommerce_enable_ajax_add_to_cart option to JS
    * @param Array
    * @return Array
    */
    function themify_woocommerce_params($params){
    return array_merge($params, array(
    ‘option_ajax_add_to_cart’ => ( ‘yes’ == get_option(‘woocommerce_enable_ajax_add_to_cart’) )? ‘yes’: ‘no’
    ) ); // <– that’s line 2616
    }

    Php code is complete enigma for me, so I would be really gratefull for your expertize here.

    • This topic was modified 7 years, 11 months ago by iael.
    • This topic was modified 7 years, 11 months ago by iael.
    • This topic was modified 7 years, 11 months ago by iael.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php error: Warning: array_merge(): Argument #1 is not an array’ is closed to new replies.