Totally Zenned
- Join Date:
- Dec 2011
- Location:
- Wisconsin, USA
- Posts:
- 674
- Plugin Contributions:
- 12
Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
If you navigate directly to the URL does it work?
Views: 35,770
Totally Zenned
If you navigate directly to the URL does it work?
Totally Zenned
Louis:
Hi, I upgraded to the latest and found the following issue. It seems a whole number of langauge file updates are missing?
Will have to re-install older 4.1.1 version again.
What did you change to get the product name displayed in the mail when the item is BACK in stock? These mails do not show the product name.
Sorry there was a bunch of language defines that are missing (both in English and in Italian).
Should be resolved in 4.3.1, also should include French!
Totally Zenned
bislewl:
If you navigate directly to the URL does it work?
Nope.. I still get re-directed to the page not found page..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
DivaVocals:
Nope.. I still get re-directed to the page not found page..
Hi Diva,
the problem with the notifications should be related to the url, to be more precise if I run the notification on my test server i got an error because it poit to:
https://localhost/negozio154/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=true
But if i remove the https:// manually and go with:
localhost/negozio154/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=true
It work.
Obiouvsly you must have a "cron" directory in which should be located the send_back_in_stock_notifications.php.
I haven't yet tested it on live test server... doing it in the next hours
Zen Follower
Hi,
perfumbg:
Hello, just installed the plugin and it is great but when i try to run notification
the following error apears:The server can not find the requested page:
site.com/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0 (port 443)
Please forward this error screen to site's WebMaster.Any idea what can cause this?
And also what does that mean "File to add to your cron in cpanel:"
Best regrds.
"File to add to your cron in cpanel:" means that if you want the notifications process to go by itself on (for example) daily basis you must add the execution of the YOURSITE.COM/corn/send_back_in_stock_notifications.php to the cron jobs in your cpanel. I use plesk, here a small guide to how to create a cron job:
http://kb.xyzscripts.com/how-to-setup-the-scheduled-task-cronjob-in-plesk-control-panel/
As regards the problem with missing page, please confirm that the "cron" directory exist, is accessible and there is the send_back_in_stock_notifications.php file inside, before further investigation.
BTW i've tested on a live test server (not local) and for me worked except that it warn me that there is a security problem bla bla bla (related to https:// probably), i skipped it and it's ok.
Totally Zenned
Let me be clear.. I have already checked that the cron folder and the send_back_in_stock_notifications.php file are in place.. (when you get a 404 error, this would NATURALLY be the first thing that one would check.. so lest someone asks again.. YES I checked..the folder and file are in place..:smile:)
What I did notice is this:
The issue occurs on two test sites I have setup:
https://clientscrappin(dot)divawebdzgn(dot)com/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=true
https://scrappintestsite(dot)scrappinstuff(dot)com/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=true
Please note that I DO NOT have SSL enabled on these test sites.. So why this is redirecting to HTTPS is baffling..
and before any asks did I try the link WITHOUT the HTTPS..
Yes.. I did.. I then get directed to the HOME page..
and finally what happens if I turn off the URL re-writer (seems to be the FAVORITE whipping boy that folks point to whenever you are troubleshooting..)
THE SAME THING I reported with the URL re-writer turned on..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
Sorry Diva I guessed You already tryied it but wanna be sooooo sure :P
Onestly i tryed your links and they seem exactly like mine... the only thing is, as you said, that instead of showing you the roght page it redirect oyu to the home page...
I'll send You a PM with the link and credential to my online test server. Take a look, in that site the link is working maybe you can see why mine is working and yours not...
Totally Zenned
izar74:
Sorry Diva I guessed You already tryied it but wanna be sooooo sure :P
Onestly i tryed your links and they seem exactly like mine... the only thing is, as you said, that instead of showing you the roght page it redirect oyu to the home page...
I'll send You a PM with the link and credential to my online test server. Take a look, in that site the link is working maybe you can see why mine is working and yours not...
I appreciate the offer, but I'm not sure looking at your admin will get me any insight into why my sites aren't working.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
DivaVocals:
I appreciate the offer, but I'm not sure looking at your admin will get me any insight into why my sites aren't working.
Well You have a point... the only thing I think could help is to compare the files to see if there is any differences, indeed i have make some changes that obiouvsly i didn't write down because i'm a little bit lazy lately.
I've Pm you with an ftp account, feel free to use it. If something will come to my mind i'll sure write it :P
Totally Zenned
izar74:
Well You have a point... the only thing I think could help is to compare the files to see if there is any differences, indeed i have make some changes that obiouvsly i didn't write down because i'm a little bit lazy lately.
I've Pm you with an ftp account, feel free to use it. If something will come to my mind i'll sure write it :P
Thanks.. now THAT's what will help.. :smile: I promise not to touch.. I will only LOOK.. :smile:
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Totally Zenned
DivaVocals:
I appreciate the offer, but I'm not sure looking at your admin will get me any insight into why my sites aren't working.> izar74:
Well You have a point... the only thing I think could help is to compare the files to see if there is any differences, indeed i have make some changes that obiouvsly i didn't write down because i'm a little bit lazy lately.
I've Pm you with an ftp account, feel free to use it. If something will come to my mind i'll sure write it :P
DivaVocals:
Thanks.. now THAT's what will help.. :smile: I promise not to touch.. I will only LOOK.. :smile:
So I haven't had a chance to do this yet, but I'm not sure I would find anything other than I have this installed correctly.. I WILL however be able to SEE the missing language defines as I suspect that you have the missing ones filled in on your site. So I will be logging in to your site tonight to grab that from you..
Last night I migrated my dev site to the live site. Typically I do this by putting the site in maintenance mode, then using the sync function in Beyond Compare (excluding the configure.php files of course) to push the updated files because it takes care of the file cleanup for me -- the sync function deletes files in the target that do not exist in the source. It's just a much cleaner way to do my dev to live file pushes. After that I ran the v1.5.4 upgrade to upgrade the DB, then checked to make sure all the module upgrades all properly kicked off any SQL required.. At this point my test and dev site are apples to apples..
Once all that was done, I tried the notification link on the LIVE site and it worked.. Now the reason probably has everything to do with the fact that HTTPS **IS **enabled on the live site. So the key to solving this probably is to figure out WHY the module ONLY appears to work with HTTPS enabled..
DivaVocals:
Let me be clear.. I have already checked that the cron folder and the send_back_in_stock_notifications.php file are in place.. (when you get a 404 error, this would NATURALLY be the first thing that one would check.. so lest someone asks again.. YES I checked..the folder and file are in place..:smile:)
What I did notice is this:
The issue occurs on two test sites I have setup:
https://clientscrappin(dot)divawebdzgn(dot)com/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=true
https://scrappintestsite(dot)scrappinstuff(dot)com/cron/send_back_in_stock_notifications.php?product_id=0&key=8675309&bis_id=0&preview=truePlease note that I DO NOT have SSL enabled on these test sites.. So why this is redirecting to HTTPS is baffling..
and before any asks did I try the link WITHOUT the HTTPS..
Yes.. I did.. I then get directed to the HOME page..
and finally what happens if I turn off the URL re-writer (seems to be the FAVORITE whipping boy that folks point to whenever you are troubleshooting..)
THE SAME THING I reported with the URL re-writer turned on..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
Hmmmmm.... Mumble mumble... :wacko:
is it possible that the problem is in this line (142 of back_in_stock.php in admin directory):
<form name="back_in_stock" action="<?php echo HTTPS_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG . "cron/send_back_in_stock_notifications.php"; ?>" target="_blank" method="get">
It point to the HTTPS address and not the HTTP one...
I'm just guessing... at the moment i'm busy fighting with another problem :rant:
Totally Zenned
<form name="back_in_stock" action="<?php echo HTTPS_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG . "cron/send_back_in_stock_notifications.php"; ?>" target="_blank" method="get"> ``` > > It point to the HTTPS address and not the HTTP one... > > I'm just guessing... at the moment i'm busy fighting with another problem :rant:izar74:
Hmmmmm.... Mumble mumble... :wacko:
is it possible that the problem is in this line (142 of back_in_stock.php in admin directory):
That wouldn't cause it not to work on http, however you are correct the form is coded with HTTPS, because IMHO everyone should be using an SSL.
Even if you are just doing paypal checkout, it is highly recommended to use HTTPS.
I'm sure I'll get blasted for saying this but EVERY store should be using an SSL. They can be purchased for as little as $10, it's well worth it AND google does give *some *weight to it.
Totally Zenned
bislewl:
That wouldn't cause it not to work on http, however you are correct the form is coded with HTTPS, because IMHO everyone should be using an SSL.
Even if you are just doing paypal checkout, it is highly recommended to use HTTPS.
I'm sure I'll get blasted for saying this but EVERY store should be using an SSL. They can be purchased for as little as $10, it's well worth it AND google does give *some *weight to it.
Well everyone ISN'T going to get an SSL cert, and this module shouldn't force one to buy one just to use it.. (even PayPal doesn't force this..) BUT this wasn't being tested on a live site.. it was being tested on a test site and unless one wants to pay EXTRA for a domain level SSL, it means that it's impossible to test this module on a test site.. The fact is that there IS something set in this module that prevents one form testing or using this module is one doesn't have SSL enabled.. When I figure out what that is, then I will address, and share my findings with the community..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Totally Zenned
Can someone kindly provide the English translations for the missing definitions please..
define('BACK_IN_STOCK_MAIL_TOP', '<br/>Grazie per il tuo interesse in: ');
define('BACK_IN_STOCK_MAIL_MAIN', '<br/><br/>Il prodotto e' stato aggiunto alla tua lista e sarai avvisato non appena tornera' disponibile!<br/>');
define('BACK_IN_STOCK_MAIL_BOTTOM', 'Per qualunque domanda rispondi pure a questa mail');
define('BACK_IN_STOCK_MAIL_GREETING', '<br/>Gentile ');
define('BACK_IN_STOCK_MAIL_CANCEL', 'Per controllare le notifiche cliccare qui: ');
define('BACK_IN_STOCK_MAIL_STATUS', ' - notifica da ');
define('BACK_IN_STOCK_MAIL_AVAILABLE', '<br/><br/>L'articolo e' di nuovo disponibile!');
define('BACK_IN_STOCK_MAIL_BACK', ' e' di nuovo disponibile su ');
define('BACK_IN_STOCK_MAIL_SENT', 'Email inviata a: ');
define('BACK_IN_STOCK_MAIL_MANY', 'Per favore esegui di nuovo');
define('BACK_IN_STOCK_MAIL_NONOTIFY', 'Questo prodotto e' stato rimosso dalle notifiche');
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
DivaVocals:
Can someone kindly provide the English translations for the missing definitions please..
Here it is:
define('BACK_IN_STOCK_MAIL_TOP', '<br/>thank You for your interest in: ');
define('BACK_IN_STOCK_MAIL_MAIN', '<br/><br/>The product has been added to the Back in Stock notification list, You will be notified when it is available again<br/>');
define('BACK_IN_STOCK_MAIL_BOTTOM', 'Please answer this mail if You have any question');
define('BACK_IN_STOCK_MAIL_GREETING', '<br/>Dear ');
define('BACK_IN_STOCK_MAIL_CANCEL', 'To check your notification list click here: ');
define('BACK_IN_STOCK_MAIL_STATUS', ' - notification from ');
define('BACK_IN_STOCK_MAIL_AVAILABLE', '<br/><br/>The item is available!');
define('BACK_IN_STOCK_MAIL_BACK', ' is again available on ');
define('BACK_IN_STOCK_MAIL_SENT', 'Email sent to: ');
define('BACK_IN_STOCK_MAIL_MANY', 'Please execute again');
define('BACK_IN_STOCK_MAIL_NONOTIFY', 'This article has been removed from the notification list');
Totally Zenned
izar74:
Here it is:
define('BACK_IN_STOCK_MAIL_TOP', '<br/>thank You for your interest in: ');
define('BACK_IN_STOCK_MAIL_MAIN', '<br/><br/>The product has been added to the Back in Stock notification list, You will be notified when it is available again<br/>');
define('BACK_IN_STOCK_MAIL_BOTTOM', 'Please answer this mail if You have any question');
define('BACK_IN_STOCK_MAIL_GREETING', '<br/>Dear ');
define('BACK_IN_STOCK_MAIL_CANCEL', 'To check your notification list click here: ');
define('BACK_IN_STOCK_MAIL_STATUS', ' - notification from ');
define('BACK_IN_STOCK_MAIL_AVAILABLE', '<br/><br/>The item is available!');
define('BACK_IN_STOCK_MAIL_BACK', ' is again available on ');
define('BACK_IN_STOCK_MAIL_SENT', 'Email sent to: ');
define('BACK_IN_STOCK_MAIL_MANY', 'Please execute again');
define('BACK_IN_STOCK_MAIL_NONOTIFY', 'This article has been removed from the notification list');
Thanks.. You are the BEST!!:hug:
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Totally Zenned
DivaVocals:
Thanks.. You are the BEST!!:hug:
Those additional defines are added in 4.3.1 submitted for moderation earlier in the week.
Totally Zenned
bislewl:
Those additional defines are added in 4.3.1 submitted for moderation earlier in the week.
Yes I understand.. My client's site is live NOW so I needed them pretty quickly and couldn't wait for the approval.. Since I couldn't test properly on my dev site due to the HTTPS thing, I wasn't fully aware that quite this many defines were missing.. I'm glad that izar74 had already identified (and SHARED) them and their English translation..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Zen Follower
Having difficulties getting this plugin to work properly. It subscribes fine and sends out a confirmation email. When I run the cron file, it says it is sending out notifications, but it doesn't send them. It marks the date in the database as 1899-11-30 00:00:00 for some, but others it leaves null. I'm not sure what the heck is going on. I need it to send out a notification when a product is changed from <=0 quantity to >1 quantity.
Tell staff why this post should be reviewed.