-
Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I found this module today (http://www.zen-cart.com/downloads.php?do=file&id=1944), and did not see a support thread for it. I have a LOT of questions for the author or anyone who's downloaded and used this module. Hence why I am creating this post..
The Ceon Back In Stock Notifications module has not been updated since 24 Feb 2012, and (like many other FREE Ceon modules) the current keepers of Ceon Back In Stock Notifications has not given ANY indication that Ceon Back In Stock Notifications will be updated any time soon if at all.. I am trying to get some clarifications on the differences/similarities/migration path between Ajax Back In Stock and the Ceon Back In Stock Notifications which Ajax Back In Stock is based on.
Features/Functionality Questions:
The description for this only says the following:
Quote:
This is a re-written version of Conor/Ceon's Back In Stock Module:
http://www.zen-cart.com/downloads.php?do=file&id=773
It offers the store owner the ability to offer customers a notification when a product is back in stock.
Additionally, this module offers many additional features.
1) Ajax pop-up style box for the customer to be added to the back in stock.
2) The ability to modify most of the box's text via the admin.
3) The ability to notify a customer every time a product is back in stock, or just once
4) Days of Lag: So you aren't spamming customers less than the days of lag when back in stock.
5) Ability to set a maximum emails per batch so you are not flagged and black listed
What the description doesn't say EXPLICITLY is does the module have the SAME features as the original "Ceon Back In Stock Notifications" along with the new features listed above?? Or is the feature set different?? Sorry if the answer may seem OBVIOUS to some, but it actually is not which is why I am posing the question..
Migration from original "Ceon Back In Stock Notifications" Questions:
Is there a migration path for those shop owners who already have Ceon Back In Stock Notifications installed?? Or will those who have the original Ceon Back In Stock Notifications have to uninstall the original to install the Ajax Back In Stock module?? I didn't see this explicitly stated in the readme docs for the Ajax Back In Stock module which is again why I am posing the question..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Thanks for creating a support thread!
It is a complete re-write, there is a VERY small portion of the code that is used to migrate from Conor/Ceon's Back In Stock to Ajax Back In Stock. To my understanding, I'm fairly certain all of the features of that module are included. To my understanding the "keepers" of Conor/Ceon's Back In Stock have no or little intention to continue development of Conor/Ceon's "free" modules. There are several stores that have been using this module for over about 6+ months.
While a uninstall of Conor/Ceon's Back In Stock Is not required it is certainly recommended since both modules have observers checking for products orders etc.
Over 60 hours of development have gone into this module. It corrects many of the "bugs" in his module. And offers much more robust abilities. Including NO core modifications, and only template modifications. Whereas the Conor/Ceon's Back In Stock was modifying the includes/functions/functions_general.php
Also there are several important features that are much needed in the days of spam blocking.
-Conor/Ceon's Back In Stock would continue to send emails until the customer "buy or died". Whereas this version allows a customer to be notified once or every time until they buy.
-Another issue was that several ISP have been blocking the bulk email batches sent by the module so it now limits the number of notifications sent per batch avoiding this issue.
-There is a function "Days of Lag" which appears to be confusing to some. A previous issue was store owners setting Conor/Ceon's Back In Stock to run nightly, however that was causing customers to get emails nightly. The Ajax Back In Stock module checks when an email notification for that entry (customer & product) wa last sent and than makes sure that this equation is true (last day sent + days of lag < Today). Example if a customer was sent an email notification was sent Sunday for product XYZ and the days of lag is set to 7 the customer can't receive another notification till the next Sunday. They may receive a notification that ABC is back in stock though.
Feel free to ask any more questions let me know.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi there,
Thanks for making an update to this module, Conor was great to work with and his passing was a shock. Such a great guy with lots of time for people.
I managed to install this module with no problem. Only when I went to import from the previous version. It went to a warning message atop a blank page, and a debug log as follows:-
I am on 1.5.4 version currently. Actually I found the debug for it amongst them all:-
PHP Code:
[20-Jan-2015 10:32:09 America/New_York] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '***customer name****', false )' at line 2 :: INSERT INTO zen_back_in_stock (email, product_id, sub_date, sub_active, name, active_til_purch) VALUES
(***customer email with hyphens in *****', 548, NOW(), 1, '***customer name****', false ) ==> (as called by) /****/****/public_html/includes/functions/extra_functions/back_in_stock.php on line 84 <== in /****/****/public_html/includes/classes/db/mysql/query_factory.php on line 155
I can see the email for this entry has about four hypens in it, followed by the usual @ symbol and email ending. I reckon if I remove that entry manually, then it will clear up the issue. This might help others in the future perhaps. At least I think it is that, but as you can tell I am not technically adept at all this lol http://www.zen-cart.com/images/smilies/dontgetit.gif
It did import 25% of the out of stock subs, so it must be getting stuck with something. I tried again and it gives the same partial amount. But apart from that, everything is great!!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Does the customer's name have a ' in it?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Yes it does, I just spotted it. Irish surname. Ah so that is it, no problem I can remove it as it is an old subscription
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Also a quick couple things.
I looked at your site.
1.) In the Admin configuration-> Back In Stock Configuration
You can change the link text to an <img> to look more like your other buttons.
2.)
Also you may want to do something like:
PHP Code:
<?php
if(zen_get_products_stock($products_id) > 0){
?>
<!--bof Add to Cart Box-->
***the stuff between these***
<!--eof Add to Cart Box-->
<?php
}
else{
if(BACK_IN_STOCK_ENABLE == "true"){ ?>
<a href="#back-in-stock-popup-wrapper" id="back-in-stock-popup-link"><?php echo BACK_IN_STOCK_LINK; ?></a>
<?php }
}
Then it will only show when it is out of stock. I probably should add that to the docs for the next release.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
HeathenMagic
Yes it does, I just spotted it. Irish surname. Ah so that is it, no problem I can remove it as it is an old subscription
I'll try to add a fix for that in the next version
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Thanks for the tips, I will try and make an icon. I was struggling with the if sold out code, my php is not very good. But I will keep trying. I put the two additions in the right place, it just said unexpected end. Perhaps as I have a few modules.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Thanks for creating a support thread!
You're welcome!!:laugh: I was hoping that you could use this thread as such..
Quote:
Originally Posted by
bislewl
It is a complete re-write, there is a VERY small portion of the code that is used to migrate from Conor/Ceon's Back In Stock to Ajax Back In Stock. To my understanding, I'm fairly certain all of the features of that module are included. To my understanding the "keepers" of Conor/Ceon's Back In Stock have no or little intention to continue development of Conor/Ceon's "free" modules. There are several stores that have been using this module for over about 6+ months.
While a uninstall of Conor/Ceon's Back In Stock Is not required it is certainly recommended since both modules have observers checking for products orders etc.
Over 60 hours of development have gone into this module. It corrects many of the "bugs" in his module. And offers much more robust abilities. Including NO core modifications, and only template modifications. Whereas the Conor/Ceon's Back In Stock was modifying the includes/functions/functions_general.php
Also there are several important features that are much needed in the days of spam blocking.
-Conor/Ceon's Back In Stock would continue to send emails until the customer "buy or died". Whereas this version allows a customer to be notified once or every time until they buy.
-Another issue was that several ISP have been blocking the bulk email batches sent by the module so it now limits the number of notifications sent per batch avoiding this issue.
-There is a function "Days of Lag" which appears to be confusing to some. A previous issue was store owners setting Conor/Ceon's Back In Stock to run nightly, however that was causing customers to get emails nightly. The Ajax Back In Stock module checks when an email notification for that entry (customer & product) wa last sent and than makes sure that this equation is true (last day sent + days of lag < Today). Example if a customer was sent an email notification was sent Sunday for product XYZ and the days of lag is set to 7 the customer can't receive another notification till the next Sunday. They may receive a notification that ABC is back in stock though.
Feel free to ask any more questions let me know.
Thanks sooooooo much for the detailed explanation.. Working on a v1.5.4 migration for a client, and she had the old Ceon "Back in Stock Notifications" module installed.. I had concerns about continuing to use ANY of Conor's modules for any of my clients given that JS Web has made it quite apparent that they have little to no intention to continue development of Conor/Ceon's "free" modules. I have no problem paying for premium modules, but I cannot support a "Freemium" module, where ONLY the premium bits are maintained while the free bits are done whenever or never.. Makes it HARD for me to get a client to BUY the premium version when they SEE that they can't reliably TRY the free version because it's not maintained..
Anyway.. thanks for the explanation.. Will give this a whirl and get my client's site converted..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Just been testing the module, I had an out of stock item that was in the list for a test account. I ran it just for that item and it sent me a back in stock email even when out of stock. I tested preview for all items and it seems it will send everybody an email for all items out of stock.
This could be as I imported subs, but not sure. I did upgrade Conor's module a few times, so maybe database got corrupt somehow? But I can confirm these items are out of stock.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Interesting,
What are your settings in configuration->Stock for Check Stock and Allow Checkout?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I have:-
Allow customer to checkout even if there is insufficient stock - False
Check to see if sufficent stock is available - True
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I have discovered the issue and fixed in 4.0.3
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
yep it definitely works! What an ace module and module maker!! :-DD Thanks so much!!!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi,
I have a blank page when I connect to the page administrator.
The problem seems to be in init_back_in_stock.php:
PHP Code:
PHP Fatal error: Call to undefined function plugin_version_check_for_updates() in /Applications/MAMP/htdocs/store/floriostore/includes/init_includes/init_back_in_stock.php on line 51
PHP Code:
line 51: $new_version_details = plugin_version_check_for_updates($zencart_com_plugin_id, $current_version);
Have you any suggestions?
I use Zen Cart v1.5.1
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
Nightfly66
Hi,
I have a blank page when I connect to the page administrator.
The problem seems to be in init_back_in_stock.php:
PHP Code:
PHP Fatal error: Call to undefined function plugin_version_check_for_updates() in /Applications/MAMP/htdocs/store/floriostore/includes/init_includes/init_back_in_stock.php on line 51
PHP Code:
line 51: $new_version_details = plugin_version_check_for_updates($zencart_com_plugin_id, $current_version);
Have you any suggestions?
I use Zen Cart v1.5.1
Looks like the function is called before the function is declared (1.5.1 doesn't have that function standard)
Move
PHP Code:
// Version Checking
if ($zencart_com_plugin_id != 0) {
$new_version_details = plugin_version_check_for_updates($zencart_com_plugin_id, $current_version);
if ($_GET['gID'] == $configuration_group_id) {
$messageStack->add("Version ".$new_version_details['latest_plugin_version']." of " . $new_version_details['title'] . ' is available at <a href="' . $new_version_details['link'] . '" target="_blank">[Details]</a>', 'caution');
}
}
to the bottom of the page, after the function.
Issue is resolved in 4.0.4
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Thanks for answer !
Now it works :-)
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
You're welcome!!:laugh: I was hoping that you could use this thread as such..
Thanks sooooooo much for the detailed explanation.. Working on a v1.5.4 migration for a client, and she had the old Ceon "Back in Stock Notifications" module installed.. I had concerns about continuing to use ANY of Conor's modules for any of my clients given that JS Web has made it quite apparent that they have little to no intention to continue development of Conor/Ceon's "free" modules. I have no problem paying for premium modules, but I cannot support a "Freemium" module, where ONLY the premium bits are maintained while the free bits are done whenever or never.. Makes it HARD for me to get a client to BUY the premium version when they SEE that they can't reliably TRY the free version because it's not maintained..
Anyway.. thanks for the explanation.. Will give this a whirl and get my client's site converted..
One last thing/suggestion.. I haven't fully looked at the part of the coe that manages the conversion from Ceon Back in Stock Notifications.. But I'd like to suggest that perhaps your conversion code include the option of removing any tables and maybe even files from the old module as a part of the conversion process.. The process could also include making and storing backups of the files and database changes removed. Just thinking outloud about novice shopowners (and even seasoned pros..:laugh:) and how to make the conversion process seemless..
Heck.. maybe you already do this.. if so.. disregard.. Still haven't had coffee yet.. :laugh:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
One last thing/suggestion.. I haven't fully looked at the part of the coe that manages the conversion from Ceon Back in Stock Notifications.. But I'd like to suggest that perhaps your conversion code include the option of removing any tables and maybe even files from the old module as a part of the conversion process.. The process could also include making and storing backups of the files and database changes removed. Just thinking outloud about novice shopowners (and even seasoned pros..:laugh:) and how to make the conversion process seemless..
Heck.. maybe you already do this.. if so.. disregard.. Still haven't had coffee yet.. :laugh:
This is for a couple reasons.
Tables-
1.) The table, really does do much harm however if something goes wrong it will!
2.) Maybe someday you may want to reference it.
Files-
1.) There is a core modification in CEON's module, so that would either have to be unmodified or overwritten. And since it is used on so many different versions it would make that script to un-modify very difficult and very problematic.
2.) Also there are several template modifications, and so those would need to be removed, and since every store is unique that would only further complicate a "automatic" and would certainly fail a very high percentage of the time. Leaving store owners with a broken site, and little records of what was done.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
This is for a couple reasons.
Tables-
1.) The table, really does do much harm however if something goes wrong it will!
2.) Maybe someday you may want to reference it.
Files-
1.) There is a core modification in CEON's module, so that would either have to be unmodified or overwritten. And since it is used on so many different versions it would make that script to un-modify very difficult and very problematic.
2.) Also there are several template modifications, and so those would need to be removed, and since every store is unique that would only further complicate a "automatic" and would certainly fail a very high percentage of the time. Leaving store owners with a broken site, and little records of what was done.
I can see no reason why anyone would need to reference a table for a module that has not only been replaced by another, but the data migrated as well.. the data migration provides that "view back" as it were.. Not seeing the benefit of seeing it as it USED to be.. Even in corporate migration projects I've been a part of, we don't keep the old data hanging around once a successful migration has been completed..
Anyway.. I only suggested this as a possible future enhancement because there are module contributions for Zen Cart (by at least ONE or two contributors) which actually do just what I speak of in whole or in part.. (Image Handler for example does make and save file backups of modified files) So I know that functionally and technically it is doable.. but I understand if it's not something that will be included in the codebase.. Not a showstopper.. but truly a nice to have..:smile:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
This module works only if there is an active SSL certificate ?
When i try Back In Stock Notifications i have a message error: ssl_error_rx_record_too_long
Please let me know
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.
It is not the answer I wanted. Anyway thank you
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.
So I'm not clear here.. If a shop DOES NOT have an SSL cert, they CANNOT use this module??? Is THAT what that error "error: ssl_error_rx_record_too_long" means??
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
buildingblocks
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
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
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
yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
buildingblocks
yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js
just to clarify, in case it matters, jquery-1.4.4.min.js and jscript_utils.js both reside in the folder jscript not jscript/jquery
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
buildingblocks
just to clarify, in case it matters, jquery-1.4.4.min.js and jscript_utils.js both reside in the folder jscript not jscript/jquery
jquery-1.4.4.min.js I believe belongs to zxslideshow
jscript_utils.js belongs to reward points full suite
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
The issue [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
This was resolved by DrByte, Zen-Cart.com wasn't outputting the json when newer version was pending (submitted but not moderated). Also the a fall back is being added to zencart 1.6.0. See https://github.com/zencart/zencart/issues/281
So this should be resolved now.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
buildingblocks
yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js
That very well could be the problem.
jquery-1.4.4.min.js is another jQuery Library, and will render break on most installations.
Try removing jquery-1.4.4.min.js, and see if that helps the issue.
Side Note: Officially for PCI compliance you should only be running the most recent version of jQuery, including more recent then 1.10.2. (currently the most recent version is 1.11.2) running the migrate 1.2.1 provides backwards compatibility with older scripts.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
aml7785
I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.
Have you uploaded the files to your Admin? What version of ZenCart are you running?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
aml7785
I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.
**UPDATE**
Issue was that the admin profile didn't have permissions to view the menu items for the module
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
We suggest that there should be a button in the popup box that would take users back to the product page or have it say that it will go back to the product page automatically after so many seconds with a countdown.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
aml7785
We suggest that there should be a button in the popup box that would take users back to the product page or have it say that it will go back to the product page automatically after so many seconds with a countdown.
We are suggesting that this would happen AFTER the visitor subscribed to the list. They just sit at a page that has no action to take other than to click the x to exit.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Anyone mind sharing a link to this installed and working? I would like to see what you have done on the product page with this plugin.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi,
awesome work bislewl.
I'm working on this module to make it multi-language friendly :P. Actually I found an error in mail sending when something is back in stock and you run the cron job. The object of the mail, as long as the mail body, does't have the product name in it. Yet the link to the product work great.
It appear like this:
I'm still working in local enviroment so the http:// is little error i don't care about.
I've tried to understand why it's like this but I've found nothing.
Any clue will be appreciated :D
ps: Zencart 1.5.4
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
Hi,
awesome work bislewl.
I'm working on this module to make it multi-language friendly :P. Actually I found an error in mail sending when something is back in stock and you run the cron job. The object of the mail, as long as the mail body, does't have the product name in it. Yet the link to the product work great.
It appear like this:
I'm still working in local enviroment so the http:// is little error i don't care about.
I've tried to understand why it's like this but I've found nothing.
Any clue will be appreciated :D
ps: Zencart 1.5.4
This should be resolved with version 4.2.2. Thanks for the bug report!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
This should be resolved with version 4.2.2. Thanks for the bug report!
Thank You for the hard work!:smile:
I just notice anothel little bug, if You have Specials or Featured product in your home page and one of it is out of stock (ok ok i know... if it's a Special it should not be out of stock... :P) it shows the "Email me when back in stock" link correctly but if You click it the popup does not shows the image, if You click "Notify!" it work as intended.
Just a minor glitch :blush:
-
1 Attachment(s)
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I have attached the changes I've made to have the definitions of the Mail,Popup and Account fields so that you can set it in the language file and not in the database, this way You can have the texts in different languages.
Hope it can help:smile:
Attachment 15088
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
It wasn't really intended for the home page...but I will try to fix that in 4.2.2 as well.
Also the "Email me when back in stock" could be replaced with something like <img src="images/SOME_IMAGE"> to be more user friendly for your customers
Also if you have the new language files I would be more than happy, to add them to the modules for others. (if you don't mind of course)
Thanks agian for the bug report!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
I have attached the changes I've made to have the definitions of the Mail,Popup and Account fields so that you can set it in the language file and not in the database, this way You can have the texts in different languages.
Hope it can help:smile:
Attachment 15088
Thanks for the files, I actually skipped 4.2.2 and moved right to 4.3.0. and submitted for moderation. Thanks again!
-
1 Attachment(s)
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi again,
i've downloaded the new version e still testing It, meanwhile i found a strange problem.
Attachment 15111
The big red arrow indicate what i've found. After a few try I found out that it comes when i modified the footer.php adding:
PHP Code:
<!--bof back in stock popup-->
<?php require($template->get_template_dir('tpl_modules_back_in_stock_fancybox.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_back_in_stock_fancybox.php'); ?>
<!--eof back in stock popup-->
So clearly it's a problem related to the loading of the tpl_modules_back_in_stock_fancybox.php (i've tried also on a fresh install,with the same template, and the problem is the same) but till now i wasn't able to figure it out.
The template is the winchester Black, with the default template it desn't show... which file could be involved?
Thnaks for any advice
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Ok seem i found out the error in /includes/templates/YOUR_TEMPLATE/tlp_modules_back_in_stock_fancybox.php Line 22 is:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\');}
</script>'."\n";
it seems there ere some characters more than needed -->"');}"
I modified the line as follow:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n";
Now the problem seems gone, just check it to be sure i didn't make any mistake.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I get that too. Wasn't confident enough to change the file as my code looks a tiny bit different too
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
wooops sorry i forgot the closing ")" and "}", here the code i'm using at the moment and it seem to work fine:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>')}."\n";
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Discard the upper modification... it generates error. Sorry but I'm not very good at the moment and I'm making mistakes...
Using THIS code:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') { document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n";
It work fine and doesn't generate any error even if it seems to me not to be correct. Waiting for someone with more skill than me to take a look :(
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi bislewl,
from the tests i did I got the same email problems as before the update (4.3). I saw the code You changed but the email It send when an article is back in stock (starting the cron manually) has no product in the object or in the mail body. :(
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Just a note,
The popup works only if You are in the product page, and it's fine, even if you are in the category listing page and try to add a product It won't work.
Established this since the popup work ONLY in the product page, i would like to have in all the other part (cathegory listing, Featured or Special listing, all Product Listing...) a link that bring to the product page instead tha open the popup.
Would it be possible? Should i modified the Function_general.php or all the single file?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
Hi, there is still a bug so that when something is back in stock the mail would not display the item name, if You want to have the picture yet be sure to use HTML mail not simple text.
As regards the error You are reporting, there are some miss in the language define file, simply go to the language file and add the various define like:
PHP Code:
define ('BACK_IN_STOCK_MAIL_GREETING', ' Welcome ');
This should fix it.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
Ok seem i found out the error in /includes/templates/YOUR_TEMPLATE/tlp_modules_back_in_stock_fancybox.php Line 22 is:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\');}
</script>'."\n";
it seems there ere some characters more than needed -->"');}"
I modified the line as follow:
PHP Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>\</script>'."\n";
Now the problem seems gone, just check it to be sure i didn't make any mistake.
The solution posted leaves behind a stray slash on the page. Should be:
Code:
echo '<script type="text/javascript">if (typeof jQuery == \'undefined\') {document.write(\'<script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script></script>'."\n";
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I do have to say that I second a sentiment expressed by a couple posters that the readme file instructions aren't super clear.. I've figured most of this out, but there is one thing left.. This code didn't work for me..
Quote:
Originally Posted by
bislewl
PHP Code:
<?php
if(zen_get_products_stock($products_id) > 0){
?>
<!--bof Add to Cart Box-->
***the stuff between these***
<!--eof Add to Cart Box-->
<?php
}
else{
if(BACK_IN_STOCK_ENABLE == "true"){ ?>
<a href="#back-in-stock-popup-wrapper" id="back-in-stock-popup-link"><?php echo BACK_IN_STOCK_LINK; ?></a>
<?php }
}
I made the following changes, and now it works as expected. Now the only thing I can't figure out is why this is showing as a text link versus a button..
This did work:
PHP Code:
<?php if(zen_get_products_stock($products_id) > 0){ ?>
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<?php } else{ ?>
<?php if(BACK_IN_STOCK_ENABLE == "true"){ ?>
<a href="#back-in-stock-popup-wrapper" id="back-in-stock-popup-link"><?php echo BACK_IN_STOCK_LINK; ?></a>
<?php } ?>
<?php } ?>
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
I'm getting a similar result except in my case I'm being re-directed to the "Page Not Found" page..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
I'm getting a similar result except in my case I'm being re-directed to the "Page Not Found" page..
Yes I am redirected to the not found page too.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
I'm getting a similar result except in my case I'm being re-directed to the "Page Not Found" page..
Does this file exist? site.com/cron/send_back_in_stock_notifications.php
Is there a rewrite rule preventing it?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
I do have to say that I second a sentiment expressed by a couple posters that the readme file instructions aren't super clear.. I've figured most of this out, but there is one thing left.. This code didn't work for me..
I made the following changes, and now it works as expected. Now the only thing I can't figure out is why this is showing as a text link versus a button..
This did work:
PHP Code:
<?php if(zen_get_products_stock($products_id) > 0){ ?>
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<?php } else{ ?>
<?php if(BACK_IN_STOCK_ENABLE == "true"){ ?>
<a href="#back-in-stock-popup-wrapper" id="back-in-stock-popup-link"><?php echo BACK_IN_STOCK_LINK; ?></a>
<?php } ?>
<?php } ?>
The documentation for this was improved in 4.3.0
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Does this file exist? site.com/cron/send_back_in_stock_notifications.php
Is there a rewrite rule preventing it?
File exists.. No re-write rule blocking it.. It didn't work even before I install Ultimate URLs
Quote:
Originally Posted by
bislewl
The documentation for this was improved in 4.3.0
Excellent.. I have more to share about using this module with a stock manager module like POSM or SBA.. (Hint: requires a slightly different set of conditions for the if statements)
-
Re: 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?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
If you navigate directly to the URL does it work?
Nope.. I still get re-directed to the page not found page..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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:
Code:
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:
Code:
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
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi,
Quote:
Originally Posted by
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-setu...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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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)divawebdz...0&preview=true
https://scrappintestsite(dot)scrappi...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..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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...
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
Quote:
Originally Posted by
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
Quote:
Originally Posted by
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..
Quote:
Originally Posted by
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)divawebdz...0&preview=true
https://scrappintestsite(dot)scrappi...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..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hmmmmm.... Mumble mumble... :wacko:
is it possible that the problem is in this line (142 of back_in_stock.php in admin directory):
PHP Code:
<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:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
Hmmmmm.... Mumble mumble... :wacko:
is it possible that the problem is in this line (142 of back_in_stock.php in admin directory):
PHP Code:
<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:
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Can someone kindly provide the English translations for the missing definitions please..
Quote:
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');
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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');
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
Thanks.. You are the BEST!!:hug:
Those additional defines are added in 4.3.1 submitted for moderation earlier in the week.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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..
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
So now that my client has had a week with this she is having issues..
Quote:
On the old Ceon one, you could sort by product, so when I was placing an order with a company I would just go into there and make sure I ordered what people were waiting on notifications for. This one doesn’t sort at all (even though there is a link on the Products column). It also doesn’t have the model number on there, so I have to keep going back to the product on the catalog page and looking up the model number. It also doesn’t tell me if it is in stock. With the old one, I could go in there and it would say how many were in stock. Then I could send notifications.
Is anyone else having similar issues???
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
So now that my client has had a week with this she is having issues..
Is anyone else having similar issues???
Nope never had that problem till now...
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I'm trying to make a modification so that the POPUP will only work in the product page and not in the various product listing (also becouse the add-on only work in the product page) but till now i've no luck... any help would be appreciated :P
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
I'm trying to make a modification so that the POPUP will only work in the product page and not in the various product listing (also becouse the add-on only work in the product page) but till now i've no luck... any help would be appreciated :P
Remove the code that adds the fancy box in the TPL_footer or whoever you put it and add it to the TPL_product_info_default.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
So now that my client has had a week with this she is having issues..
Is anyone else having similar issues???
That is to be done/fixed along with the ability to delete and pagination in a future version.
-
2 Attachment(s)
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Remove the code that adds the fancy box in the TPL_footer or whoever you put it and add it to the TPL_product_info_default.
Thanks bislew, it was quite simple... (the file should be tpl_product_info_display.php, right?).
Maybe this is not related to the Back in stock add on so if i'm out of the box please tell me... I've modified the function_general.php so that it show a button instead of the simple text, and i was trying to modify the "out of stock" button to be able to be pressed and work exactly like the "Details" button opening the product info page from where you can click on the "out of Stock" button and it will correctly open the Fancybox. I know that clicking on the image just do the same, but having a button is simplier for customer.
Here the function_general.php modification i've made:
PHP Code:
// cannot be added to the cart
case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
return $additional_link;
break;
case ($button_check->fields['product_is_call'] == '1'):
$return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . TEXT_CALL_FOR_PRICE . '</a>';
break;
case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
if ($_GET['main_page'] == zen_get_info_page($product_id)) {
if(BACK_IN_STOCK_ENABLE == "true"){
$return_button = '<div class="product_detail"><a class="back-in-stock-listing-popup-link" href="#back-in-stock-popup-wrapper">' . zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BACK_IN_STOCK_LINK) . '</a></div>';
$return_button .= zen_draw_hidden_field('bis-product-id', (int) $product_id, 'class="bis-product-id"');
}
else{
$return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
}
} else {
$return_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_SOLD_OUT_ALT, BUTTON_SOLD_OUT_SMALL_ALT) . '</a>';
}
break;
default:
$return_button = $link;
break;
}
if ($return_button != $link and $additional_link != false) {
return $additional_link . '<br />' . $return_button;
} else {
return $return_button;
}
}
The part responsible for the link should be:
PHP Code:
$return_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_SOLD_OUT_ALT, BUTTON_SOLD_OUT_SMALL_ALT) . '</a>';
but the link doesn't work, it miss the pruduct_id.
in this image You can see the link (lower left corner) with the mouse pointer on the image:
Attachment 15253
and this with the mouse pointer on the button:
Attachment 15254
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
The product listing box is slightly different as the fancy box is populated by jquery. Otherwise there would need to be a fancy box for each product.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
The product listing box is slightly different as the fancy box is populated by jquery. Otherwise there would need to be a fancy box for each product.
Thanks for the info. I corrected the function so that now it work :smile:
Here the PHP code of function_general.php, this way whae a product is out of stock it will show a CSS button that link to the product page.
Finde the first line and replace with this code:
PHP Code:
// cannot be added to the cart
case (zen_get_products_allow_add_to_cart($product_id) == 'N'):
return $additional_link;
break;
case ($button_check->fields['product_is_call'] == '1'):
$return_button = '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . TEXT_CALL_FOR_PRICE . '</a>';
break;
case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
if ($_GET['main_page'] == zen_get_info_page($product_id)) {
if(BACK_IN_STOCK_ENABLE == "true"){
$return_button = '<div class="product_detail"><a class="back-in-stock-listing-popup-link" href="#back-in-stock-popup-wrapper">' . zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BACK_IN_STOCK_LINK) . '</a></div>';
$return_button .= zen_draw_hidden_field('bis-product-id', (int) $product_id, 'class="bis-product-id"');
}
else{
$return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
}
} else {
$return_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . (int) $product_id) . '">' . zen_image_button(BUTTON_SOLD_OUT_ALT, BUTTON_SOLD_OUT_SMALL_ALT) . '</a>';
}
break;
default:
$return_button = $link;
break;
}
if ($return_button != $link and $additional_link != false) {
return $additional_link . '<br />' . $return_button;
} else {
return $return_button;
}
}
Hope it will help :blush:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
abcisme
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.
I found the issue!
When Maximum Emails per Batch = 0 Nothing goes out, change that value to what it should be or something incredibly impossible like 9999999
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
DivaVocals
So now that my client has had a week with this she is having issues..
Is anyone else having similar issues???
I discovered the issue is that it sorts by product_id (which is of little use) and so I will need to add a join statement with the product tables
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi there,
Just a quick one. I am still getting a rogue '); } appearing on product info pages. I checked the file a few pages back, and can see the new version which I am on has been updated to reflect this. I am wondering if any files have been made redundant which may need deleting to address this? Thanks for your help in advance
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
In the includes/your_template/templates/tpl_modules_back_in_stock_fancybox.php there was an issue with the ending of the file, not being in the php. Try looking there. I think this is fixed in later versions. But I'll verify tomorrow, when I'm back in the office.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
HeathenMagic
Hi there,
Just a quick one. I am still getting a rogue '); } appearing on product info pages. I checked the file a few pages back, and can see the new version which I am on has been updated to reflect this. I am wondering if any files have been made redundant which may need deleting to address this? Thanks for your help in advance
I was wrong, this was actually in the javascript, this is fixed in 4.5.0 (submitted for moderation this morning).
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
I found the issue!
When Maximum Emails per Batch = 0 Nothing goes out, change that value to what it should be or something incredibly impossible like 9999999
*UPDATE*
This is fixed in 4.5.0 (submitted for moderation this morning).
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
I discovered the issue is that it sorts by product_id (which is of little use) and so I will need to add a join statement with the product tables
DivaVocals-
This is fixed in 4.5.0 (submitted for moderation this morning), however it only sorts in ASC order, as of now
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
DivaVocals-
This is fixed in 4.5.0 (submitted for moderation this morning), however it only sorts in ASC order, as of now
and when will it be updated to sort both ways??
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi,
I wonder if you can help me.
I have installed the latest version of the module on 1.5.1 as per instructions. When I click on the link it redirects me to my homepage, to url
(mystore)/#back-in-stock-popup-wrapper and no fancybox appears. Any ideas what may be causing this?
Thanks in advance.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
yiorgos
Hi,
I wonder if you can help me.
I have installed the latest version of the module on 1.5.1 as per instructions. When I click on the link it redirects me to my homepage, to url
(mystore)/#back-in-stock-popup-wrapper and no fancybox appears. Any ideas what may be causing this?
Thanks in advance.
Either
The fancy box isn't in the foooter
Or
There is a js issue like it isn't loading or breaks before it
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Either
The fancy box isn't in the foooter
Or
There is a js issue like it isn't loading or breaks before it
Thank you for your reply.
I've copied all the code in the footer, there must be something wrong with js.
I am getting this error
Quote:
TypeError: $(...).ready is not a function
#2 (path)/jscript/jquery/jquery_back_in_stock.js:1:13
#1 (path)/jscript/jquery/jquery_back_in_stock.js:1:13
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
yiorgos
Thank you for your reply.
I've copied all the code in the footer, there must be something wrong with js.
I am getting this error
I'm thinking either you jQuery isn't loading or isn't loading a new enough version. You should be loading at least 1.10.x. Preferred version is the most recent for PCI compliance and that is 1.11.3 as of now.
What version of jQuery are you loading?