NotifyWhenAvailable FAQ
NotifyWhenAvailable notifies customers when a product that is currently out of stock goes back into stock. The module makes it easy for you to keep customers up to date with the products that they want to purchase but are unfortunately out of stock. In this Q&A, we will cover some of the most common questions with our product.
I Installed the module but the buttons don't seem to change to Notify When Available
Once you install and set up NotifyWhenAvailable, you should assign the module using the OpenCart layout system. You can learn more about it here: https://isenselabs.com/posts/how-to-configure-modules-and-assign-them-to-layouts-in-opencart-2-x.
Still, as basic info you can find the layouts menu in Design > Layouts > Products (for the product pages), Design > Layouts > Home (for the home pages) Design > Layouts > Categories for the category pages.
Is NotifyWhenAvailable multi-lingual and how can I translate it in my language?
NotifyWhenAvailable is multi-lingual, meaning that you can translate it into any language you have in your store. In this case, what you have to do is copy the module language file from the default location in the main store language folder and paste it into your language folder.
Please follow these instructions:
- Access the module file catalog/language/english/extension/module/notifywhenavailable.php, and copy it.
- Locate folder catalog/language/your language/extension/module/ and paste the file you copied.
- Change the language variables on this file by translating them into your language. Below you see the content of the file. You need to change the text on the right hand side after the = sign:
<?php
// Heading
$_['heading_title'] = 'Notify me when available';
$_['NotifyWhenAvailable_Title'] = $_['heading_title'];
$_['NotifyWhenAvailable_SubmitButton'] = 'Notify me!';
$_['NotifyWhenAvailable_Error1'] = 'This field is required!';
$_['NotifyWhenAvailable_Error2'] = 'The email you entered is not valid!';
$_['NotifyWhenAvailable_Success'] = 'Success! You will be notified as soon as the product is in stock!';
$_['NotifyWhenAvailable_Button'] = 'Notify Me!';
$_['NWA_YourName'] = 'Your Name';
$_['NWA_YourEmail'] = 'Your Email';
Click Save.
I am getting an error "PHP Warning: exec() has been disabled for security reasons in..."
This error means that the PHP exec() function is not enabled on your server. We suggest you to contact your hosting provider and tell them to enable it for you.
I am running NotifyWhenAvailable with Journal. The module is not showing for me. What could be a possible issue for that?
There are a few things that might go wrong here.
First of all, you need to make sure that the module is installed properly and the OCMod is enabled in Extensions > Modifications.
Next, a very important part of the module's installation is making sure we Refresh the modifications. To do that we need to go to Extensions > Modifications and click Refresh as in the image above.
After that, you need to make sure that you have disabled Journal's theme option to disable the Add to Cart button for our of stock products. This option is interfering with NotifyWhenAvailable since the module is changing the add to cart button to a Notify Me button for the products where the module is enabled.
Therefore, we need to make sure it's disabled.
As the last step, you need to make sure that you have assigned the module to the layout where you want to show it (for more info see section: I Installed the module but the buttons don't seem to change to Notify When Available)