Quote Originally Posted by buildingblocks View Post
Hi

I just installed this module on zen cart 1.5.1. PHP Version: 5.4.34. I'm having trouble getting it to work. The installation instructions don't mention which file to paste the code snippets provided, though I assume it should be the file, tpl_product_info_display.php

There's a file, tpl_product_info_add_to_cart_sample.php I wasn't sure what this file was for. Looking at the contents there's a line that says, "// This will replace the normal add to cart button code" so I copied and replaced the standard add to cart code in the file tpl_product_info_display.php.

I have tried both sets of code snippets (one set at a time) and the link for "Email me when back in stock" takes me to homepage.

When turning off the module the sold out icon is still disabled. There's also a log file.

[05-Feb-2015 18:56:47 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/***/public_html/ADMIN/includes/init_includes/init_back_in_stock.php on line 66

Any ideas what going on?

thanks
If it is taking you back to the home page that typically then the javascript is not loading.

if you look at the javascript loaded on the page these should be loading:
jquery-1.10.2.min.js
jquery-migrate-1.2.1.min.js
jquery.fancybox.js
jquery_back_in_stock.js