Zen Cart Logo
Forums / All Other Contributions/Addons / Back In Stock Notifications

Back In Stock Notifications

Views: 71,748

Results 341 to 360 of 507
8 Feb 2010, 12:10 AM
#341
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Back In Stock Notifications

Hi Patrick,

Glad you like the software!

patrickuzu:

active if the stock is equal to -2. Where do the modification?

Obviously that's an unusual request but you can change the quantity threshold at which the link is displayed on a product info page by modifying the file

includes/classes/observers/class.back_in_stock_notificationsProductInfo.php

changing the line:

if ($products_quantity <= 0

to

if ($products_quantity <= -2

To change this threshold on other pages (listing pages etc.) would require custom coding of some core files.

All the best...

Conor
ceon

6 Mar 2010, 4:48 PM
#342
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Back In Stock Notifications

Great mod!

If anyone else is using Fast and Easy Checkout with COWOA enabled, there's a teeny change that has to be applied to /includes/modules/pages/back_in_stock_notifications_subscribe/header.php (line 145) so that COWOA accounts don't get flagged as having an account:

Change

customers_email_address = '" . zen_db_prepare_input($email_address) . "';";

to

customers_email_address = '" . zen_db_prepare_input($email_address) . "' AND COWOA_account = 0;";
6 Mar 2010, 5:02 PM
#343
brushwoodnursery avatar

brushwoodnursery

Zen Follower

Join Date:
Dec 2006
Posts:
199
Plugin Contributions:
0

Re: Back In Stock Notifications

lat9:

Great mod!

If anyone else is using Fast and Easy Checkout with COWOA enabled, there's a teeny change that has to be applied to /includes/modules/pages/back_in_stock_notifications_subscribe/header.php (line 145) so that COWOA accounts don't get flagged as having an account:

Change

customers_email_address = '" . zen_db_prepare_input($email_address) . "';";

> ```
customers_email_address = '" . zen_db_prepare_input($email_address) . "' AND COWOA_account = 0;";

Can you explain where this is a problem? Does it break the functionality of the notification or populate the fields (potentially pissing off the cowoa people)?

6 Mar 2010, 5:12 PM
#344
brushwoodnursery avatar

brushwoodnursery

Zen Follower

Join Date:
Dec 2006
Posts:
199
Plugin Contributions:
0

Re: Back In Stock Notifications

Hey, Conor! This is still one of my favorite Mods of all! I thought of something that would make it even better for Brushwood and wonder if you can do or guide me on something. I'm interested in a text box that Admin can send a paragraph extra with an update. The text that goes out with the email is fine but lots of times, I'd like to send a little more. Something appropriate to the season (we update about 4x per year).

Down the road, I'd like to be able to select which product notices will go out; check boxes and a Select All box.

I am willing to support your efforts on each of these.

6 Mar 2010, 7:05 PM
#345
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Back In Stock Notifications

brushwoodnursery:

Can you explain where this is a problem? Does it break the functionality of the notification or populate the fields (potentially pissing off the cowoa people)?

Without the change, a person who has previously placed a COWOA order will receive a confirmation e-mail for the notification that tells them that they should log into their account to withdraw the notification ... which they can't do because they don't have an account!

With this change, the confirmation e-mail that takes the COWOA person to the back_in_stock_notifications_unsubscribe page to terminate their subscription.

6 Mar 2010, 7:55 PM
#346
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Back In Stock Notifications

How is it that customers receive HTML versions of the back-in-stock notification email? My admin is set up for HTML and the test customer also has email set for HTML, but when I do a test-run of the notification email ... all I get is TEXT.

7 Mar 2010, 11:38 AM
#347
brushwoodnursery avatar

brushwoodnursery

Zen Follower

Join Date:
Dec 2006
Posts:
199
Plugin Contributions:
0

Re: Back In Stock Notifications

lat9:

With this change, the confirmation e-mail that takes the COWOA person to the back_in_stock_notifications_unsubscribe page to terminate their subscription.

Ah, thank you! I have made the change. Have you noticed any other COWOA glitches? The COWOA is a quickie rigged thing and I'm sure there are other situations that arise.
Conor, I apologize for hijacking this thread. lat9, I can take the answer by PM.

7 Mar 2010, 3:52 PM
#348
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,080
Plugin Contributions:
56

Re: Back In Stock Notifications

One more minor update. I've got a directory tree like this:

8 -+-> 9
|
+-> 10

where the categories 9 & 10 have special styling, so I need the path to the products to include something like ... &cPath=8_9&products_id=xx. Here's the change I made to /admin/includes/functions/back_in_stock_notifications_functions.php (line 123):

Original:

$plain_text_msg .= $products_result->fields['products_name'] . "\n\n" . 'Link: ' .
zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' .
$products_result->fields['product_id']) . "\n\n\n";
				
$html_msg .= '<p class="BackInStockNotificationProduct">' . '<a href="' .
zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' .
$products_result->fields['product_id']) . '">' .
htmlentities($products_result->fields['products_name']) . '</a></p>';

My changes:

$plain_text_msg .= $products_result->fields['products_name'] . "\n\n" . 'Link: ' .
zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . zen_get_product_path($products_result->fields['product_id']) . '&products_id=' .
$products_result->fields['product_id']) . "\n\n\n";
				
$html_msg .= '<p class="BackInStockNotificationProduct">' . '<a href="' .
zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . zen_get_product_path($products_result->fields['product_id']) . '&products_id=' .
$products_result->fields['product_id']) . '">' .
htmlentities($products_result->fields['products_name']) . '</a></p>';
11 Mar 2010, 5:50 PM
#349
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi,

lat9:

How is it that customers receive HTML versions of the back-in-stock notification email?

Quote simply if they have their e-mail notification preferences set to HTML they'll get the HTML version as well as the text version.

lat9:

My admin is set up for HTML and the test customer also has email set for HTML, but when I do a test-run of the notification email ... all I get is TEXT.

You must have something set up wrong.. are you sure you have HTML enabled in the Zen Cart admin E-mail Configuration settings? ("Use MIME HTML When Sending Emails").

Unfortunately this isn't a problem with the module so I don't know what else to say other than to say I hope you find the source of your problem!

All the best...

Conor
ceon

11 Mar 2010, 5:58 PM
#350
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi Dan,

How are you?

Glad you still like the module so much! :)

brushwoodnursery:

I'm interested in a text box that Admin can send a paragraph extra with an update. The text that goes out with the email is fine but lots of times, I'd like to send a little more. Something appropriate to the season (we update about 4x per year).

Down the road, I'd like to be able to select which product notices will go out; check boxes and a Select All box.

I think there's quite a few ways that the marketing potential of the module could be increased. Certainly the ability to add a custom message to each outgoing message would be a useful/welcome addition.

Unfortunately I just don't have time to add any new features to the module. :(

I have a new version of the module ready for release next week with additional language files (French and Italian) and support for more product types so at least that's something to look forward to! :)

brushwoodnursery:

I am willing to support your efforts on each of these.

I appreciate your voice of support.. unfortunately not many others seem to be in the same line of thinking.

All the best...

Conor
ceon

14 Mar 2010, 12:27 AM
#351
johnchazz avatar

johnchazz

New Zenner

Join Date:
Feb 2010
Location:
Tucson, AZ
Posts:
16
Plugin Contributions:
0

Re: Back In Stock Notifications

Hi, I LOVE this mod - one of my favorites - and am happy to contribute, but I have one small problem. I am using a clean install of the v1.3.8 version of Zen-Cart with the Cherry Zen template mod and a few other stable mods (incl. USPS/Shipping Insurance/Image Handler mods).

Everything works great except for the "Unsubscribe from Back In Stock Notification Lists." link on the Account page. The formatting is completely off - the entire screen shows up Cherry Red and my left/right columns are all skewed. Underneath the mess appears to be a very nice listing of all notifications a person could uncheck to unsubscribe from (which is exactly what I should be seeing).

I scowered this thread to see if any other Cherry Zen zenners were experiencing the same problem, but found nothing. I followed the directions you provided exactly, but I'm not sure where to look. To see the problem in action, simply Register as a new user on my web site - flairbyjdn.com - and then go to My Account and click the link. (I promise I'll remove you from my customer list afterwards.)

Thanks in advance for any help you can provide. I'm almost there.

--John

14 Mar 2010, 3:21 AM
#352
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Back In Stock Notifications

johnchazz:

Hi, I LOVE this mod - one of my favorites - and am happy to contribute, but I have one small problem. I am using a clean install of the v1.3.8 version of Zen-Cart with the Cherry Zen template mod and a few other stable mods (incl. USPS/Shipping Insurance/Image Handler mods).

Everything works great except for the "Unsubscribe from Back In Stock Notification Lists." link on the Account page. The formatting is completely off - the entire screen shows up Cherry Red and my left/right columns are all skewed. Underneath the mess appears to be a very nice listing of all notifications a person could uncheck to unsubscribe from (which is exactly what I should be seeing).

I scowered this thread to see if any other Cherry Zen zenners were experiencing the same problem, but found nothing. I followed the directions you provided exactly, but I'm not sure where to look. To see the problem in action, simply Register as a new user on my web site - flairbyjdn.com - and then go to My Account and click the link. (I promise I'll remove you from my customer list afterwards.)

Thanks in advance for any help you can provide. I'm almost there.

--John
Hi I had the same problem as you. What I did was to disable my side boxes for my account. After I did that it work perfect.
If you need to know how to do that find /includes/templates/your_template/common/tpl_main_page and on line 42 add whatever side boxes you do not what to show on what page. For example. Hope this helps.
if > (in_array($current_page_base,explode(",",'contact_us,conditions,privacy,site_map,returns,shopping_cart,checkout_shipping,checkout_payment,checkout_confirmation,checkout_success,account,account_back_in_stock_notifications,account_newsletters,account_notifications,contest')) ) {
$flag_disable_left = true;
$flag_disable_right = true;

14 Mar 2010, 10:29 AM
#353
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi,

johnchazz:

Hi, I LOVE this mod - one of my favorites - and am happy to contribute

I'm glad you like the module!

johnchazz:

I scowered this thread to see if any other Cherry Zen zenners were experiencing the same problem, but found nothing. I followed the directions you provided exactly, but I'm not sure where to look.

When you say "followed the instructions" you do realise that you can't just copy the template file into your template overrides folder and it will work with a custom template?

You must copy the new Back In Stock Notifications HTML modifications from the sample template file to a copy of your template file and put this in the overrides directory. If you try and mix the Cherry Template with the standard template by simply putting the sample modified template file from the BISN distribution download it may well cause the messed up layout you are seeing.

Thjere's a bit more information about this in the section of the FAQs "Some of the template files for the site have already been modified. How can the Back In Stock Notifications code be added?".

Hope that helps!

All the best...

Conor
ceon

14 Mar 2010, 4:00 PM
#354
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi,

countrycharm:

Hi I had the same problem as you.

I found a problem with the file tpl_account_back_in_stock_notifications_default.php

It had an unclosed div tag which was the cause of the problems you have both had.. sorry about that!

A fixed version of the template file will be included in version 2.4.1, out this week,

Sorry about the bug!

All the best...

Conor
ceon

14 Mar 2010, 4:17 PM
#355
johnchazz avatar

johnchazz

New Zenner

Join Date:
Feb 2010
Location:
Tucson, AZ
Posts:
16
Plugin Contributions:
0

Re: Back In Stock Notifications

countrycharm:

Hi I had the same problem as you. What I did was to disable my side boxes for my account. After I did that it work perfect.
If you need to know how to do that find /includes/templates/your_template/common/tpl_main_page and on line 42 add whatever side boxes you do not what to show on what page. For example. Hope this helps.
if

Thank you for posting this. I see where I could turn off my sideboxes to fix the formatting problem, however this is a "band aid" approach. Conor already fixed the problem for me and is going to put the "bug" fix into his next rev for Cherry Zen zenners like myself. Thanks Conor!!!!!!! :clap:

(I'm assuming he will post the fix here shortly.)

14 Mar 2010, 6:57 PM
#356
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Back In Stock Notifications

johnchazz:

Thank you for posting this. I see where I could turn off my sideboxes to fix the formatting problem, however this is a "band aid" approach. Conor already fixed the problem for me and is going to put the "bug" fix into his next rev for Cherry Zen zenners like myself. Thanks Conor!!!!!!! :clap:

(I'm assuming he will post the fix here shortly.)
Thanks Conor for the fix I looked at the tpl_account_back_in_stock_notifications_default.php file and did notice you left off the </div> closing tag at the bottom of the file. It fix mine also. Thank you again.

14 Mar 2010, 7:36 PM
#357
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi,

countrycharm:

Thanks Conor for the fix I looked at the tpl_account_back_in_stock_notifications_default.php file and did notice you left off the </div> closing tag at the bottom of the file. It fix mine also. Thank you again.

Yes, such a simple, silly omission! I'm quite surprised that it hadn't affected anyone else's template since the module distribution was first released in July 2008! Or that no-one had mentioned it until now! (Pity you didn't say to me when you noticed a problem or I could have fixed it sooner.. ah well, it's fixed now! :) ).

All the best...

Conor
ceon

14 Mar 2010, 7:52 PM
#358
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Back In Stock Notifications

conor:

Hi,

Yes, such a simple, silly omission! I'm quite surprised that it hadn't affected anyone else's template since the module distribution was first released in July 2008! Or that no-one had mentioned it until now! (Pity you didn't say to me when you noticed a problem or I could have fixed it sooner.. ah well, it's fixed now! :) ).

All the best...

Conor
ceon

Well actually it was a while back when DigitalShadow posted it. I was having the same problem but I just cut off the side boxes and it worked for me that way. Anyway it's fixed now.

14 Mar 2010, 8:06 PM
#359
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Back In Stock Notifications

Hi,

countrycharm:

Well actually it was a while back when DigitalShadow posted it. I was having the same problem but I just cut off the side boxes and it worked for me that way. Anyway it's fixed now.

Actually, searching the thread I see that in August 2009 DigitalShadow did indeed post about a problem with the Cherry Template. I thought it must have been a problem with the Cherry template as the problem didn't show its face with the stock Zen Cart template. Obviously I was wrong! :|

Our policy here is that if it works with a fresh installation of Zen Cart but there is a problem between a third party template/module that we'll take a look for free only at our own discretion.. otherwise we expect to be paid for spending time looking at third party software. Obviously in August I wasn't feeling extremely generous with my time but johnchazz caught me at a more generous time so when I agreed to take a look and logged into his site via FTP to see what was going wrong I eventually narrowed the cause of the problem down to one the the BISN files, which is something I hadn't been expecting of course! :)

It looks like this hasn't affected too many others though or I would have heard from more than 3 people over the past two or so years! :)

At least it's fixed now!

All the best...

Conor
ceon

24 Mar 2010, 5:25 PM
#360
vatertime avatar

vatertime

New Zenner

Join Date:
Dec 2009
Posts:
18
Plugin Contributions:
0

Re: Back In Stock Notifications

Is there a way to show both the 'buy now' button AND 'notify me when in stock'? I would like my customers to be able to lock in the price by purchasing the product while out of stock.