Never mind. Didn't know that was a config setting.
Printable View
Never mind. Didn't know that was a config setting.
Would this module work with the Comstock template ???
I have installed all the files. When I test out the module, I get the following error:
ERROR: The email template file for (DIR_FS_EMAIL_TEMPLATESemail_template_) or (DIR_FS_EMAIL_TEMPLATESemail_template_back_in_stock_notification_subscribe.html) cannot be found.
What am I doing wrong, and what is the fix for this ???
This error is showing up at the top of the products page that you wanted to notifcation email for.
Also, the 'click here' link is not highlighted, what is the fix for that??
My website is:
RChelicraft.com/store
Please take a look and see the error that I am talking about.
I have decided not to use this module. How do I delete the "Back In Stock Notifications" link from the Configuration Menu in the Zen Cart software ??
Hi,
Sounds like you messed up when installing Zen Cart and the module.. the DIR_FS_EMAIL_TEMPLATES define is a standard Zen Cart define. The fact that it isn't being loaded on your site means you've messed up your configuration file.
Nevertheless, to remove the configuration options from the database just run the following SQL commands:
SELECT @bisn_id:=configuration_group_id
FROM configuration_group WHERE configuration_group_title="Back In Stock Notifications";
DELETE FROM configuration WHERE configuration_group_id=@bisn_id;
DELETE FROM configuration_group WHERE configuration_group_id=@bisn_id;
All the best...
Conor
ceon
Hi!
I'm a complete newbie in Zencart and I'm really not an expert on php but I usually can manage with the add ons . I found this GREAT add on and I really apreciate this contribution. Everything works fine for me except one error I get after the subscription when I'm using the spanish language. We have english-spanish customers.
ERROR: The email template file for (/mnt/web5/22/96/52112496/htdocs/email/sp/email_template_) or (/mnt/web5/22/96/52112496/htdocs/email/sp/email_template_back_in_stock_notification_subscribe.html) cannot be found.
On the includes/languages folder I copied the same files from the folder "english" to the folder "spanish" I was not sure of the effect of this, but certainly something is not really working with the emails.
here is a link to the site:
http://www.crazyinlove.es/index.php?...&products_id=3
Select language SPANISH
The question is simple, can I correct this error and use this add on in Spanish? I will translate the rest of the files for myself.
Second question, Is there any other side effect I should consider?
Thank you very much!!!!
Hi,
You need to create the above e-mail template file.
That was the right thing to do.. the thing you missed out is creating a spanish version of the e-mail files as well.
Create the folder /email/sp inside your /email folder then copy the Back In Stock Notification templates there and translate them as required.
Glad you like the software!
All the best...
Conor
ceon
Well,
I just notice today (because a customer brought it to my attention) that the back in stock doesn't show for product type = music.
Take a look at these two pages:
The first one is product general:
http://www.clevershoppers.com/softwa...ser-64283.html
As you can see things look exactly the way they are suppose to. The link and the form is loaded correctly.
Now second example is for product music type:
http://www.clevershoppers.com/music-...d-2-68438.html
As you can see by viewing the source code it is not loaded at all.
Is this mod suppose to be product type specific or am I missing something?
Thanks!
Hi,
Currently the module only supports the standard product type. It does not support any of the other product types.
Hope that helps!
All the best...
Conor
ceon
Hi
Thank you for your contribution ZenCart
After installing, there are 2 problems that I do not understand:
1 - Warning: file_get_contents(/web/biolavie/www/email/email_template_back_in_stock_notification.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /web/biolavie/www/admin/includes/functions/back_in_stock_notifications_functions.php on line 325
2 - The "Back" button will not go into the "My Acompte" and the "update" does nothing.
Thank you for your help
Best regards
Patrick
Hi Patrick,
Glad you like the software. I'm sorry you've had difficulty setting it up though!
You've forgotten to upload the files in the e-mail directory. Make sure you upload the file:
/web/biolavie/www/email/email_template_back_in_stock_notification.txt
I'm afraid I don't know what you've done wrong there, sorry.
All the best..
Conor
ceon
Hi,
Glad you like the module and I understand what you are saying. If/when I ever release a new version I'll update the docs then. If anyone ever needs more product types supported that's a possibility as well. There are no plans for that at this time though.
All the best...
Conor
ceon
In theory, could you merge the files supplied by the additional product type, with the same files in this mod using comparison software?
Or do other files in this mod make reference to the general product type?
Faz
Hi Faz,
That is one of the things that would have to be done. Obviously that wouldn't be difficult. I just don't have time to do it at the minute!
Off the top of my head, notifiers/observers would also have to be set up.
Hope that helps!
All the best...
Conor
ceon
Hello,
First conor: Thanks for the module and the time you invested.
I'm running a german website. The module works fine so far. The only thing i can't get to work is the special characters in (Text-) E-Mails - e.g. the ö and ä and ü
Miss I something? :huh:
Thanks
Olaf
Hi Olaf,
Thanks for letting me know it's appreciated! :)
Hmm, I have only tested the e-mails the module sends with english words myself. I am not sure why it wouldn't work with special characters, obviously there's full UTF support for the HTML files. Is it text e-mails only? HTML e-mails work fine?
If so, I'm afraid that I'll have to say for the minute that special characters are possibly unsupported in text e-mails.
Sorry if that's bad news!
All the best...
Conor
ceon
Hi Conor,
I didn't test html mails, yet. But all the other System Mails from Zen-Cart comes in plain/text utf8 and display all special characters.
I'm not a programmer. But, I'll try to compare the code, which generates the e-mails. I guess anywhere there is the answer. :-)
Regards
Olaf
Hi Olaf,
Just spent 15 minutes there testing this out in various encodings and the module is working perfectly.
It is Zen Cart which sets the encoding of the e-mails. With the Zen Cart UTF-8 module installed, e-mails sent on our test server have the following header:
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"
Here's an example of some text I just added into the admin languages definitions file for the Back In Stock Notifications module (admin/includes/languages/english/back_in_stock_notifications.php):
define('EMAIL_GREETING', 'DearϵЖ ä ü %s,ϵЖ');
The e-mail came through starting with:
DearϵЖ ä ü Conor Kerr,ϵЖ
Which as you can see is perfect.
You may have not saved your language file in UTF-8 format, or if you are adding text directly to the e-mail file, you may not have set it to be UTF-8 either (email_template_back_in_stock_notification.txt).
So this definitely works.. hopefully the above is enough to get this sorted for you. Otherwise I'm afraid there's nothing I can do here.
All the best...
Conor
ceon
When viewing my current subscribed notifications in My Account, the display is not aligned correctly, the sidebars are not in the correct location, they are located on the left of the center main text area.
So I can't see the checkbox to unsubscribe. What do i need to edit?
Also I would like to add a space between each line as shown on the file spaces, which file should I edit?
Hi,
You may have messed up any modifications you made to the template file.
The template file (you can find more info in the docs).
All the best...
Conor
ceon
I didn't change anything nor mess anything up, could you please tell me the file you think I would need to look at.
This is the only page that has this problem, all other 3000 pages display correctly.
Hi,
Please read the section of the documentation "Modifying the HTML Templates".
All the best...
Conor
I did, I couldn't figure out what was causing the problem.
Hi,
That's a pity! Unfortunately you may have to hire someone to take a look at the code used on your site. You must have a CSS and/or layout issue with your template and whatever modifications you've made to it. The Back In Stock Notifications module doesn't cause the problems you've described with the standard template.
Sorry I can't be of more help than that!
All the best...
Conor
The template is CherryZen and I've not modified it at all.
I've been through everything I can think of, can anyone help at all?
conor I have a question for you. If you look here you will see that something didn't install right for some reason when I updated. I rename the folders like they should be. If I knew what file it was I suppose I could fix it. This is what it is showing. Thank you
BACK_IN_STOCK_NOTIFICATION_TEXT_PRODUCT_LISTING_FORM_LINK
I've been through everything I can think of, I think my knowledge of pure code may have been reached on this one though.
Thankyou for any help you can offer.
Hi,
You probably have a template override in effect and haven't updated to the latest version properly. The file which contains that definition is a language define (obviously ;) ):
includes/languages/english/extra_definitions/back_in_stock_notifications.php
You probably have a file overriding this in your
includes/languages/english/extra_definitions/YOUR_TEMPLATE
directory.
Hope that helps!
All the best...
Conor
ceon
Hi Conor, I do have a custom file overriding system in place. I have double check to make sure that the file extra_definitions/back_in_stock_notifications.php is in my template override correct, but it still throws the error. Should that file be in my override or before my override? Is their anything else I should look at here. Thanks
If that is the case, it is set up correct in my override. It still throws the error for some strange reason. If you look beyond that page to the product page you will see that the link is correct on that page.
Hi,
Sorry but that is impossible. You definitely have not set up the language files correctly.
I'm afraid there's nothing else I can say.
Please delete the file from your overrides directory and recreate the file using the version of the file from the latest version of the module. Or just don't use an override file at all.
As this is definitely the problem I hope you understand that I can't help you further with this!
All the best...
Conor
Well, if I can't solve the problem, is it possible to have it so on this page the sidebars don't display?
Hi,
If you are seeing the name of the define but it's not being converted into the actual text of the message, then the only thing that can be happening is that the define hasn't been loaded.
You really haven't got the correct file in place, otherwise the define would exist and you wouldn't see the message you are seeing (the name of the define rather than its content/definition).
Check again that you don't have a language override in place which is loading a file which doesn't have the language define in it.
All the best...
Conor
ceon
Conor I about have this all sorted out, but when I click To be notified when this product is back in stock please click here it goes to another page instead the form to fill out. What am I doing wrong. Thank you in advance. I do have another question for you. In includes/template/template_default, does these files go into my custom file or do they go to template default?
quick question.
I got this contrib installed without problem, and i LOVE IT. iv been wanting to install it, but just never had the time. ZC has needed this for quite some time.
IM not sure if someone has already said something about this and i missed it, but.....
anyways, im wondering if there is a way to disable the stock product notification system so that the customer isnt confused and dont use the wrong one when subscribing. I removed the sidebox, but in the my account page it still shows the product notification system thats included with the release of ZC.
Hi,
Glad to hear you like it.. it's always good to hear that the work's appreciated! :)
Yes, set "Customer Product Notification Status" to 0 in Configuration > Customer Details
The customer won't be offered the chance to subscribe to product notifications or see any previous notification subscriptions, but they'll still have full access to their Back In Stock Notification subscriptions - exactly what you want!
All the best...
Conor
ceon
Hi,
I'm glad to hear that!
That appears to be a problem with the URIs being generated by your SEO software, it's not a problem with the BISN module - you have finally got it working properly! Now just to get the SEO problem sorted! (You should ask on its thread, I can't help with that here).
As they are brand new files it doesn't matter which directory they go in.. they aren't overriding anything so they can go in template_default but Zen Cart always looks in the override directory first so it'll still find them if you put them in your own template directory.
Hope that helps.
All the best...
Conor
ceon
Thanks for that. I will get that taken care of.
One last thing, i noticed that you talk about a code that should be in the email that is sent for the subscription, however i dont see that code being provided to my customers in the email, only the link.
am i missing something?
Installed this tonight and it went perfect, except nothing shows up on the product page when it is out of stock. Everything copied correctly, sql file ran without erros, and the admin portions look good. I'm wondering if my template is hiding it?
Update: It does show up on the product listings pages, but not the individual product page. However, when I click on the link in the product listings page, it just brings me to the individual product page.
Hi,
Yes, it must be. You haven't added the template modifications properly. Please read the docs and try again!
All the best...
Conor
ceon
Hi,
Yes, a code only gets sent to those who aren't registered members on the site.. that's how they can verify who they are when they want to unsubscribe. Registered users obviously don't need to verify themselves.
All the best...
Conor
ceon
If there's nothing to modify, just copy, this should be quite easy, correct?
I copied the two files into includes/templates/YOUR_TEMPLATE/templates/
Both files are there. If the product display is working (almost), wouldn't the other be working as well? CSS conflict?
Hi,
Umm, "YOUR_TEMPLATE" should be the name of your template! ;)
Put the files in the correct directory for your template and everything will be fine.
All the best...
Conor
ceon
Fixed it. Looks like one of the template files was corrupted during the transfer. It was there, but something was wrong with it. I copied it again and now it works fine.
Just did a test and it looks good. Nice piece of software!
Hi,
Thanks, glad you got it sorted - enjoy! :)
All the best...
Conor
ceon
Hi Conor it's me again. I understand what you are saying about seo problem, but this is my problem. If I go to my categories and then to home and outdoors/Kitchen And Entertainingand go to page 3 you will see the cookware that is out of stock. Now if you click the To be notified when this product is back in stock please click here the page loads just fine to the back in stock form, but if you search for the item with the model number 28518 at the top and click on the To be notified when this product is back in stock please click here the page will not go to the back in stock form, it just goes to the Kitchen And Entertaining category. This is kind of strange. Do you have any other suggestion for me. Thanks again. I have exclude the back_in_stock_notification_form, but this seems not to work. This is the URL at the top when you click to be notified.
http://www.thegoodshepherdstore.com/...ification_form
I have ask Yellow about this to. He said to exclude it and I did but if you read above you will see the problem. Thank Conor for your help.
Hi,
I understand what is happening.. your SEO module is messing up the link on the advanced search page.. I don't know how the module works but it seems to be converting some query string parameters into uri parts (like inc_subcat/0 ). It isn't actually building a proper link to the product page, which is why the form is not being displayed.
quote=countrycharm;779599]I have ask Yellow about this to. He said to exclude it and I did but if you read above you will see the problem. Thank Conor for your help.[/quote]
There's no problem whatsoever with the BISN module. The problem is with your SEO software.
Maybe you can exclude the advanced search page from it or something.
I'm afraid that I can be no more help.
All the best...
Conor
One last thing....
I was thinking that this system was fully automated, however when i tested it, but putting a product out of stock, and then putting the product back instock, no email was sent to the two people i have subscribed to that product notification.
Do i have to go to the admin and select send actual email every time i update stock?
Information on this would be great.
Thanks again
Hi,
No, I've posted here quite a bit to say that it isn't! :)
Yes, that way you have control over when notifications are sent out. It also means that if several products come back into stock at once and some people are subscribed to more than one notification list that they just get one e-mail instead of several.. which can help avoid problems with spam filters etc.
If you need to automate it you can write a small cron script or the likes.
All the best...
Conor
ceon
Just a note that i've got the "back in stock notification" language files translated in French if someone needs it. Working on the German ones now...
Great mod btw, thanks!
Hi,
Glad to hear that you like the software!
I'm happy to include your translation(s) in future versions of the module. If you're happy with that please just send a zip of the files to me at the e-mail address in the source code.
I'll of course attribute copyright/authorship to yourself in the files.. so please also let me know what name/e-mail address you'd like the copyright attributed to!
All the best...
Conor
ceon
will do for sure. thanks!
Fantastic Mod - its one of my all times favs - big thumbs up:bigups:
One question - is there a way to remove a stock notification if the product is not an old or deleted one (I know there is an option for deleted products)? We have someone we no longer ship to for various reasons and have closed their account on the website, however they keep on adding subscriptions to products using this module and when we do the 'actually send email notifications' it also sends to this customer also and she then complains when she goes to order it and cant saying we should not email her if we wont let her buy it! I have explained many times she should not keep subscribing to stock notifications as we wont sell to her but its in one ear and out the other. We have deleted her account so cannot login as customer and remove the alerts so removing them from the module before sending emails would be the ideal scenario so we dont have to have anything to do with this ex-customer.
Any way to do this?
Hi,
Glad you like it! :)
I'm afraid the module isn't built to cope with mentals! I could add support for deletion of individual notifications for mental people but I don't think I'll be making it a priority! ;p
You can always manually delete this person's subscriptions from the database by searching the database table against her e-mail address (as clearly she can't have a user account again).
Hope that helps with this "unusual" situation!
All the best...
Conor
Hi
Is it possible to (easily) remove the 'name' and 'confim email' field from the notification form?
Thanks
Faz
Hi Faz,
Yes, it would be easy enough.. you'd open yourself to a lot of spamming though as without the confirmation address field you'll have automated scripts signing up for notifications by submitting the forms.. really not a good idea!
I'd say it would be better to have lots of genuine subscriptions rather than spam!
All the best...
Conor
ceon
Hi,
You'll need to do some custom coding of the following page:
includes\modules\pages\back_in_stock_notification_subscribe\header_php.php
You should remove any reference to the name and confirmation form fields ('name'/'cofnospam').
You could then remove these form fields from the template file:
includes\templates\template_default\templates\inc.html.back_in_stock_notificatio ns.html (Copy the template file to your template directory first of course).
Because of the way the Ceon template class works (which is rather nifty if I don't say so myself), these are the only two files that should need changed for the actual website.. the final file(s) would be the email templates, to remove the customer's name for example. Pretty standard stuff!
It's up to you of course!
All the best...
Conor
ceon
Hi conor
i have searched every post without fortune.
I have installed the mod just like the instructions say!!
After all when i go to my account all disappear except the left side sideboxes and the header.
When i upload the old tpl_account _default all come normal!!!
Plus,i use tpl_product_free_shipping_info_display instead tpl_product_info_display,in that page nothing different.
Can you help me?
TY
Hi,
That means that the template file is failing, probably with a PHP error or because the file wasn't uploaded fully. Try uploading it again.
If it is still failing then you've got something wrong in the code somewhere.. please search this forum for "blank page" and follow the instructions in the wiki about enabling the display of PHP errors.. you will more than likely then see an error message which will explain what is wrong with your site.
I'm afraid you'll have to use software like winmerge to add the necessary code to that file. It isn't currently supported, only the standard "product" type is supported, not music product types or free shipping product types etc.
Hope that all helps!
All the best...
Conor
ceon
Hi,
It definitely sounds like your FTP software isn't uploading the file correctly (for one thing the file is only 116 lines long so I'd guess your FTP software is so bad that it's adding extra newlines/carriage returns). Try using FireFTP for Firefox and reupload the file (it's a free download/extension).
If that's not it then you'll need to get a developer to manually debug this for you, the file should work fine when uploaded correctly.
It doesn't have support for the product type you mentioned but if you have any knowledge of PHP/HTML it should be easy to copy the necessary code across from the normal "product" template file (tpl_product_info_display.php) to the "product_free_shipping" template file (tpl_product_free_shipping_info_display.php).. all of the additions the module makes to the standard Zen Cart template files are clearly marked in the source.
You'll also need to edit the file
includes/classes/class.back_in_stock_notificationsProductInfo.php
and add in a notifier attachment for your product type (Add it below 'NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_PRODUCT_INFO', separating the lines with a comma).
E.g. change the lines to:
Again, if you aren't comfortable with PHP/HTML you should get your developer to do this for you!PHP Code:
$zco_notifier->attach($this,
array(
'NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_PRODUCT_INFO',
'NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_PRODUCT_FREE_SHIPPING_INFO'
)
);
All the best..
Conor
ceon
Hi,
Sorry I have no idea what you are trying to say?
All the best...
Conor
ceon
Hi,
Re-uploaded the file and it's working fine!
All the best...
Conor
ceon
Hi,
I think that's what the problem was. It's all sorted now though and Claudio has very kindly given me his Italian translations for the software so the next version will have those added. I'm also going to add support for the other product types as it won't really take that long (I hadn't bothered before because I'd spent enough time developing the module and didn't use those product types and no-one has been/is willing to cover the cost of their addition, but well!).
Thanks for your helpful (and correct I think!) comments! :)
All the best...
Conor
ceon
Hey, Conor! Still loving this mod, mate! Hope others that benefit will :cheers: hook you up as it should be.
Quick question: If a returning customer is surfing but doesn't log in when they sign up for notification, will it merge into their listings when they log in later and look at their subscriptions? Will notification emails be merged or will they get an email based on their account and another based on their manually entered email subscriptions?
I'm not looking for a tweak to the system if it doesn't merge. Just curious.
Question about this mod...and if it is buried in the thread, my apologies.
Is it possible to use this on a product by product basis?
Meaning,
have the customer be able to subscribe for only certain products, while other products are just marked as Out of Stock without the ability to be notified?
Thanks
Hi Dan,
How are you?
I think the less I say about that the better!
Yes, the module has full support for matching up subscriptions which were made when a customer wasn't a member of a site with subscriptions they've made when they've joined the site. It does this based on matching the email address they subscribed with with the email address they have registered their account with.
They are merged so the customer gets all notifications in one e-mail.
I'm sure you'll be glad to hear the above then, it already works how you want it to! :)
As always thanks for your support, it's greatly appreciated!
All the best...
Conor
ceon
Hi,
No, the current version doesn't support that. You'd have to add custom code to filter out which products can/can't use it. That would actually be easy enough if you simply used some hard coding, if you're a dab hand at PHP, just modify the observers file.
All the best...
Conor
ceon
Fair enough....thanks!
hi, i've just installed the contribution on my shop and it works. i need support for email sended because i don't know how i can create the email. How can i mod. the .txt file ? anyone can show me one example for macking it?
i think i have to mod. the .txt files... some one can make one example?
Thanks to all!
When someone ticks the notify me when this item comes back in stock an email will be sent to them. All you have to do it when an item comes back in stock is go to admin/catalog/back_in_stock_notification and tick Action to Perform to whatever that action is. I hope this is what your asking.
Hi,
If you read the installation instructions in the documentation you'll see the list of files the module uses.
You'll probably have to create Italian files for the e-mail files. I think you maybe then put them in email/it (IT for Italian). It shouldn't be any different from adding e-mail templates for any other module as the Back In Stock Notifications module simply uses the standard zen_mail function.
All the best...
Conor
ceon
Hi,
Forgot to say that I was talking about the HTML e-mail templates above.
The text version of the "template" e-mails are simply stored in the "email" directory as
email_template_back_in_stock_notification.txt
email_template_back_in_stock_notification_subscribe.txt
They cannot be overridden with language-specific files (at this time, in the current version of the module).
All the best...
Conor
ceon
thanks thanks thanks!! you are rigt! i've not crerated the email/it directory, so the email function didn't work!
Now all work fine. Great mod !!
Thanks again for your help! :clap:
Hi,
Did you look in the file
includes\modules\pages\back_in_stock_notification_subscribe\header_php.php
and search for "EMAIL_FROM".. it is a define used in the call to the zen_mail function. It is the address from which the subscriptions notifications come. Change it to your desired "From" e-mail address.
If you don't understand the above I'm afraid you don't have the necessary understanding to update the file and should get your developer to make the change for you.
All the best...
Conor
ceon
There is no email address in that file....
Just remove
"EMAIL_FROM" and put in the address wanted?
and "EMAIL_FROM" is in two different places in the file
or do you mean that the owner email needs to be changed in the Zen Admin area?
Hi,
Yes, I know, it's bad form to hard code e-mail addresses into files (and an impossibility for a module which is publicly distributed!).
I'm sorry but I'm not here to teach you PHP, this is getting off topic!
Yes, remember to put the address in quotes or you'll get a parse error.
That's right.
The EMAIL_FROM is a define which is populated with the store e-mail address in the admin area, that's how the module is configured with the sending e-mail address.
I hope you don't mind me saying but this is way off being a normal support item now, so hopefully the above is all you need to know to do what you want to do. If not, please consult a PHP developer for more information on how these things work.
All the best...
Conor
ceon
I'm sorry you feel this is beyond your support... as I thought it was a pretty basic functionality question.....
I did get it to work....
thanks
Hi,
I'm glad you got it to work as desired.
The answer was given previously, it's just you didn't know what to do with it so I had to answer programming questions. I hope you can understand that that goes beyond a "functionality question".
Nevertheless the main thing is you've got things working!
Have a good weekend! :)
All the best...
Conor