Fatal error: Call to undefined function ik_add_to_cart() in /Applications/MAMP/htdocs/333/wp-content/themes/my-shop/includes/forms/step3.php on line 51
On line 51 I have the following line of code:
ik_cart_error = ik_add_to_cart($post_id, $advals['cp_sys_total_ad_cost'], $advals['cat']);
The function does exist inside a plugin. This line is written inside the theme to add items to a shopping cart before continuing with purchase. The plugin was not written by myself, but the original author has gone awol, so no way of getting them to fix it for me and I have no idea how to fix it myself.
Working in Wordpress 3.8.2 - there was no error, but since the upgrade to 4.0 I am getting this error.
Can anyone help? Maybe an if (function_exists... or if (isset... somehow?
Thank you for your help.