Jump to content

Mail Alerts for Out of Stock product error when hitting enter on the keyboard


Recommended Posts

Well, here's my problem.

 

 

Scenario A

1. Customer enters email address.

2. Customer clicks on "Notify me when available"

3. Success

 

Scenario B

1. Customer enters email address.

2. Customer hits enter on the keyboard.

4. Error "

THERE IS NOT ENOUGH PRODUCT IN STOCK

."

 

 

QUESTION 1: how can I allow the customers to hit enter after typing their email address without facing an error?

 

QUESTION 2: Now, I seem to have a problem with the module. The module works fine if a customer (whether he/she is logged in or not), but has an account with the shop. But it does not work if the person does not have an account with the shop (the database does not show the person's email address!) I've refreshed like 10 times, and not of the emails appear... How can I enable this module for both with and without accounts.

 

Hope someone would help.. Thanks!

Edited by lalaaaa (see edit history)
Link to comment
Share on other sites

What is the version you are using? I cannot replicate Scenario B in 1.4.8.2 Maybe a problem with your theme, in that case provide a URL where we can see the problem.

 

I cannot reproduce the issue in your second question either. Non registered customer emails are recorded on submit.

 

 

Link to comment
Share on other sites

What is the version you are using? I cannot replicate Scenario B in 1.4.8.2 Maybe a problem with your theme, in that case provide a URL where we can see the problem.

 

I cannot reproduce the issue in your second question either. Non registered customer emails are recorded on submit.

 

Hi, I am using

1.4.8.2. Y

ou can try it here:

http://insidenothing...ress-white.html

 

Thank you so much!

Edited by lalaaaa (see edit history)
Link to comment
Share on other sites

OK I believe this is due to a fixed bug that is not implemented by your theme. In any case it is causing a JS error on page load. If fixing it does not solve your issue, we will look at it again.

 

Apply the fix for the bug report, but first you may have to wait for this one to be fixed, or access SVN directly if you are in hurry.

 

Post again after applying the fix with the result.

Link to comment
Share on other sites

OK I believe this is due to a fixed bug that is not implemented by your theme. In any case it is causing a JS error on page load. If fixing it does not solve your issue, we will look at it again.

 

Apply the fix for the bug report, but first you may have to wait for this one to be fixed, or access SVN directly if you are in hurry.

 

Post again after applying the fix with the result.

 

Hi, sorry, first time using the SVN. So does this mean that I download ver 1.4.5.1 from here?

 

Also, do you know how to allow non registered users to join the notification for out of stock items? Sorry for bothering you and thanks! (:

Link to comment
Share on other sites

So does this mean that I download ver 1.4.5.1 from here?

No, it is http://svn.prestashop.com/trunk. Don't worry about it though, change is attached to this post; removal in red, addtion in green. File being changed is /themes/your_theme/product.tpl

 

Also, do you know how to allow non registered users to join the notification for out of stock items?

This is already possible. They just need to enter theiir email address and it should work, sans the problem discussed above.

post-103572-0-04897400-1339597802_thumb.png

Edited by phrasespot (see edit history)
Link to comment
Share on other sites

No, it is http://svn.prestashop.com/trunk. Don't worry about it though, change is attached to this post; removal in red, addtion in green. File being changed is /themes/your_theme/product.tpl This is already possible. They just need to enter theiir email address and it should work, sans the problem discussed above.

 

Hi Phrasespot, the above change did not solve the problem.. I still get the error "There is not enough product in stock" when I hit enter on the keyboard after entering the email.... T_T

Link to comment
Share on other sites

Hmm. I still see the problem there. If you are sure you applied the fix correctly, delete all files from /tools/smarty/compile/ directory except index.php and try again.

 

YAY! It works now! Thanks alot! But I still can't get non registered users to join the notification for out of stock items... It just wont show up in my database..... or in my or my customer out of stock module... T__T

Link to comment
Share on other sites

YAY! It works now!

Great

 

I still can't get non registered users to join the notification for out of stock items... It just wont show up in my database

Are you looking at the correct table? Emaill addresses of non customer subscribers will be recorded in PREFIX_mailalert_customer_oos table

Link to comment
Share on other sites

Are you looking at the correct table? Emaill addresses of non customer subscribers will be recorded in PREFIX_mailalert_customer_oos table

 

Yes, definitely looking at the correct table.. I have no idea why I can't add them in either... T_T

Link to comment
Share on other sites

Check that table now and tell me if my email is there pls. Upon registration the correct post is made and the module send a success response so the email should be in that table.

 

Yea, it will always show that it is successful. But nothing shows up in my database....

Link to comment
Share on other sites

Hmm. OK. First make sure you have the latest version of the module. Other than that I am not sure if I can help further. Someone needs to look at the process from the server side to determine the problem, it is breaking somewhere within the module code. You will need to ask your developer if you have one or post in job offers forum if you wish.

Link to comment
Share on other sites

Hmm. OK. First make sure you have the latest version of the module. Other than that I am not sure if I can help further. Someone needs to look at the process from the server side to determine the problem, it is breaking somewhere within the module code. You will need to ask your developer if you have one or post in job offers forum if you wish.

 

Erm, I have v2.2 So is that the latest module?

Link to comment
Share on other sites

Module's version number does not mean much as they do not change the module version with every change or even PS release. Make a backup of module folder /modules/mailalerts/ and delete its contents. Download the latest installation package (1.4.8.2) and add all files from the latest downloaded zip then go to BO and reset the module and test again.

Edited by phrasespot (see edit history)
Link to comment
Share on other sites

Module's version number does not mean much as they do not change the module version with every change or even PS release. Make a backup of module folder /modules/mailalerts/ and delete its contents. Download the latest installation package (1.4.8.2) and add all files from the latest downloaded zip then go to BO and reset the module and test again.

 

Hi Phrasespot, I've downloaded the latest zip and reset the module. Tested.

 

For example, oversized white shirt, I registered an email ( eg. [email protected]). It was successful.

Tried again on the same product but with a different email (eg. [email protected]), it didn't work.

Went to basic white dress, tried it with [email protected] which was successful in the oversized white shirt, but it did not show up in my database.

Tried again on basic white dress with [email protected] and it showed up in my database..

Then, after that, any other emails just wouldn't work unless it's an email registered with the shop... Kinda inconsistent...

Link to comment
Share on other sites

Hmm, yeah, something is clearly not right but we have exhausted black box solutions. Page and submission behaves as it should from this end. After this one would have to look at the process while it is running from your end to see where it breaks when it breaks. The last thing I can suggest it to revert to default template temporarily to see if it works any better.

Link to comment
Share on other sites

Hmm, yeah, something is clearly not right but we have exhausted black box solutions. Page and submission behaves as it should from this end. After this one would have to look at the process while it is running from your end to see where it breaks when it breaks. The last thing I can suggest it to revert to default template temporarily to see if it works any better.

 

And how do I see where it breaks when it breaks? Which file?

 

Reverted to default template, and it still does not work....

Link to comment
Share on other sites

Long answer, load your site in an IDE, set a debug point, submit the form and step through until you find the problem. Short answer, find a developer.

 

Erm... Ok, what's IDE?

 

Anyways, there's this message that showed in my database (Refer to picture attached). Can I get it to show everything instead of just approximate results? However,

 

 

"3.11 The number of records for InnoDB tables is not correct.

phpMyAdmin uses a quick method to get the row count, and this method only returns an approximate count in the case of InnoDB tables. See$cfg['MaxExactCount'] for a way to modify those results, but this could have a serious impact on performance."

what Serious impact on performance will there be?

post-339331-0-37558300-1339766418_thumb.jpg

Edited by lalaaaa (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...