Forums / Addon Admin Tools / Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Views: 35,770

Results 121 to 140 of 147
29 Mar 2016, 8:43 AM
#121
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

explorer1979:

**Hi All,

404 Not Found**

The server can not find the requested page:

www.somesite.com/up154/cron/send_back_in_stock_notifications.php?product_id=0&key=1111111&bis_id=0&preview=true (port 443)

Please forward this error screen to www.somesite.com's WebMaster

When I press the "Run Notifications" button in back end, above error show up.
My Server haven't using any SSL Cert ... and it is cPanel ...

Do this module can change the PHP from https to http and working with this? If yes, which PHP files need to change?

Thank you.

Hi all,

I final fix this
/admin/back_in_stock.php
On Line 169
From

<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">

Change To

<form name="back_in_stock" action="<?php echo HTTP_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG . "cron/send_back_in_stock_notifications.php"; ?>" target="_blank" method="get">

/includes/functions/extra_functions/back_in_stock.php
On Line 95
From

$html_message['SPAM_LINK'] = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id;

Change To

$html_message['SPAM_LINK'] = HTTP_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id;

Hope this help for all other like me not using SSL

Best Regards,
Jimmy Chan

29 Mar 2016, 4:57 PM
#122
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

explorer1979:

Hi all,

I final fix this
/admin/back_in_stock.php
On Line 169
From

<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"> ``` > > Change To > > ```php <form name="back_in_stock" action="<?php echo HTTP_CATALOG_SERVER . DIR_WS_HTTPS_CATALOG . "cron/send_back_in_stock_notifications.php"; ?>" target="_blank" method="get"> ``` > > > /includes/functions/extra_functions/back_in_stock.php > **On Line 95** > From > ```php $html_message['SPAM_LINK'] = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id; ``` > > Change To > > ```php $html_message['SPAM_LINK'] = HTTP_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id; ``` > > > Hope this help for all other like me not using SSL > > Best Regards, > Jimmy Chan No, anytime you want to change from SSL to NON-SSL, you need to change *both* HTTPS_CATALOG_SERVER and DIR_WS_HTTPS_CATALOG

So your changes should ALSO include changing DIR_WS_HTTPS_CATALOG to DIR_WS_CATALOG.

Or, even better, use zen_href_link() to create the URLs instead of hard-coding them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Mar 2016, 1:56 AM
#123
ecomgirl avatar

ecomgirl

New Zenner

Join Date:
Mar 2016
Posts:
2
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Hello,

Any suggestions on best practices to be followed when sending out back in stock alerts to customers who subscribed?

Our inventory levels vary greatly on the product assortment so I dont want to notify to all who subscribed when I only got a few pieces back in stock.

What are some of the issues you face when the back in stock feature is enabled?

Example: If I get 200 units back in stock and 2000 subscribers, I don't want to email all 2000, I could may be email 200 but is there any other business rule I need to consider?

Also, based on experience, would the email be sent out First In First Out or Last in First out? It can take upto 2 weeks for inventory to be replenished. So my preference is Last in First out, but I dont know if that would lead to complaints from customers

Thanks for any help.

30 Mar 2016, 2:13 AM
#124
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

DrByte:

No, anytime you want to change from SSL to NON-SSL, you need to change both HTTPS_CATALOG_SERVER and DIR_WS_HTTPS_CATALOG

So your changes should ALSO include changing DIR_WS_HTTPS_CATALOG to DIR_WS_CATALOG.

Or, even better, use zen_href_link() to create the URLs instead of hard-coding them.

Thank you Dr. Byte
One more question, how to using zen_href_link() on above case, any detail document for reference? I want to learning more on it.

30 Mar 2016, 2:30 AM
#125
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Ecomgirl:

Hello,

Any suggestions on best practices to be followed when sending out back in stock alerts to customers who subscribed?

Our inventory levels vary greatly on the product assortment so I dont want to notify to all who subscribed when I only got a few pieces back in stock.

What are some of the issues you face when the back in stock feature is enabled?

Example: If I get 200 units back in stock and 2000 subscribers, I don't want to email all 2000, I could may be email 200 but is there any other business rule I need to consider?

Also, based on experience, would the email be sent out First In First Out or Last in First out? It can take upto 2 weeks for inventory to be replenished. So my preference is Last in First out, but I dont know if that would lead to complaints from customers

Thanks for any help.

Hi Ecomgirl,

Sorry the module is not first in first out, I am using Ceon Back In Stock long time, until it stop update on year 2012 (But once ZC 1.5.5 release, it also have a new update version right now), and I am upgrade to ZC 1.5.4 so move to this AJAX Back In Stock, I can short answer you both module haven't this type of function/control.

But ... if you know MySQL/phpmyadmin, then I think you can using other way to do this ....
Here my way to for your reference, but a bit complex ..

If you are using Godaddy or some hosting service, you can access your phpmyadmin by your Host Management Interface ...
on the phpmyadmin select your database first, then go to back_in_stock tables, then press the SQL tab to run it.

SELECT  * 
FROM  `back_in_stock` 
WHERE  `product_id`  =1404

Then Export this result (Export format can be SQL, Excel CSV etc), this will include a e-mail list who have subscribed
Where 1404 is your product id, just replace it to your product
How to find this ID?

You can look on your ZC Back End by Catalog > Products, the first left side have a number, this is the product id

Later you can using this list to choose which one you want to send to first by other way ...

Hope this help.

Plus, hope the author also can add this function on near future like ecomgirl ask for.

Best Regards,
Jimmy Chan

30 Mar 2016, 1:18 PM
#126
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

explorer1979:

Hi Clint,
Your error message is look like your host/VPS/Server using a Imagick (ImageMagick) version is lower than your module need

For example
Install a Office 2016 you need at least Windows 7, not support by Win XP, then you will know what I mean on it Imagick (ImageMagick) of your API version number ....

You need compiled a more new version to fix it.

Best Regards,
Jimmy Chan

Thanks for your response. So do I just need to switch hosting providers? What version do I need to have?

Thanks,

Clint

31 Mar 2016, 1:37 AM
#127
explorer1979 avatar

explorer1979

Inactive

Join Date:
Jan 2007
Posts:
377
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

clint6998:

Thanks for your response. So do I just need to switch hosting providers? What version do I need to have?

Thanks,

Clint

Hi Clint,

What is your host company using now?
And actually which ZC module using it? Your log will have full path of the php files name and line number, do it? This can help for look on which module call the API

If it is just cheapest hosting plan, you can try ask him help you upgrade the imagemagick to latest version

If it is VPS with cPanel, you can try upgrade by yourself (Manual Linux command way or by cPanel's WHM if you full control of your VPS with root account on it)

Myself using Godaddy VPN, and I haven't using imagemagick, I just using PHP with GD

But this link can give you some idea how cPanel WHM (General have this on VPS plan, and higher price) install imagemagick
http://crybit.com/how-to-install-imagemagick/

But ... you can ask your hosting company help install more new version first.

Hope this help

Best Regards,
Jimmy Chan

31 Mar 2016, 1:56 AM
#128
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Ecomgirl:

Hello,

Any suggestions on best practices to be followed when sending out back in stock alerts to customers who subscribed?

Our inventory levels vary greatly on the product assortment so I dont want to notify to all who subscribed when I only got a few pieces back in stock.

What are some of the issues you face when the back in stock feature is enabled?

Example: If I get 200 units back in stock and 2000 subscribers, I don't want to email all 2000, I could may be email 200 but is there any other business rule I need to consider?

Also, based on experience, would the email be sent out First In First Out or Last in First out? It can take upto 2 weeks for inventory to be replenished. So my preference is Last in First out, but I dont know if that would lead to complaints from customers

Thanks for any help.

The module doesn't know how many you have in stock, it just knows it's back in stock. Now you can set the max number of notifications and then set the days of lag as well.

Example:

If your product is back in stock and you have 200 of them and you have 2000 people looking for it.

A solution although cumbersome could be to set the max per batch to 200 and the days of lag to lets say 10.
If you ran the cron once a day, it would notify 200 people everyday it was back in stock on the 11th day it would notify the first 200 that hadn't again purchased.

does that help?

31 Mar 2016, 1:46 PM
#129
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

explorer1979:

Hi Clint,

What is your host company using now?
And actually which ZC module using it? Your log will have full path of the php files name and line number, do it? This can help for look on which module call the API

If it is just cheapest hosting plan, you can try ask him help you upgrade the imagemagick to latest version

If it is VPS with cPanel, you can try upgrade by yourself (Manual Linux command way or by cPanel's WHM if you full control of your VPS with root account on it)

Myself using Godaddy VPN, and I haven't using imagemagick, I just using PHP with GD

But this link can give you some idea how cPanel WHM (General have this on VPS plan, and higher price) install imagemagick
http://crybit.com/how-to-install-imagemagick/

But ... you can ask your hosting company help install more new version first.

Hope this help

Best Regards,
Jimmy Chan

Thanks. Talking with hosting company now. Looks like they had imagemagick disabled on my account. I use JustHost. I have the pro shared hosting service.

Just so I am sure that I am doing my cron right, I should be sending it to the cron/send_back_in_stock_notifications.php correct?

31 Mar 2016, 1:54 PM
#130
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

ok so they enabled imagemagick and now I am getting the error message:

[31-Mar-2016 07:51:39 America/Denver] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/56/usr/lib64/php/modules/http.so' - /usr/php/56/usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0

Any ideas? Is this another hosting issue?

1 Apr 2016, 3:34 PM
#131
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

clint6998:

ok so they enabled imagemagick and now I am getting the error message:

[31-Mar-2016 07:51:39 America/Denver] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/php/56/usr/lib64/php/modules/http.so' - /usr/php/56/usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0

Any ideas? Is this another hosting issue?

Anyone know what this error means? Hosting company says that error is within the plugin... told them that it works for hundreds of people currently.

The path the I have my cron set up to is my store/cron/send_back_in_stock_notifications.php. this is correct right?

1 Apr 2016, 6:27 PM
#132
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

clint6998:

Anyone know what this error means? Hosting company says that error is within the plugin... told them that it works for hundreds of people currently.

The path the I have my cron set up to is my store/cron/send_back_in_stock_notifications.php. this is correct right?

ok so I have set my cron in cpanel to run the following and none have worked. any ideas? They all respond that no file exists:

<https://xxxxxxxxxxx.com/store/cron/send_back_in_stock_notifications.php?key=xxxxxxx>

    php /home/xxxxxx/public_html/store/cron/send_back_in_stock_notifications.php?key=xxxxxxx

Errors:

    /usr/local/cpanel/bin/jailshell: <https://xxxxxxx.com/store/cron/send_back_in_stock_notifications.php?key=xxxxxxx:> No such file or directory

or

Status: 404 Not Found
Content-type: text/html

No input file specified.

Can someone please help me with this?

1 Apr 2016, 6:47 PM
#133
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

What you've posted looks like it should work, but who knows what special things your host requires for cron.

Your host should be able to show you exactly how to set up a cron job on their servers, to run within your account.
All they need to know is the path to the PHP file you want to run, any parameters it requires (ie your ?key=xxxx ), and how often you want it to run.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Apr 2016, 7:10 PM
#134
clint6998 avatar

clint6998

Zen Follower

Join Date:
Aug 2012
Posts:
106
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

DrByte:

What you've posted looks like it should work, but who knows what special things your host requires for cron.

Your host should be able to show you exactly how to set up a cron job on their servers, to run within your account.
All they need to know is the path to the PHP file you want to run, any parameters it requires (ie your ?key=xxxx ), and how often you want it to run.

Well I was close. Hosting company was no help. I played around with having the cron execute a URL and this is the script that works:

wget -O - https://xxxxxxxxxxxxxx.com/store/cron/send_back_in_stock_notifications.php?key=xxxxxxxxxx >/dev/null 2>&1
19 May 2016, 10:58 PM
#135
mike14017 avatar

mike14017

New Zenner

Join Date:
Feb 2012
Posts:
27
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Hi

I've read through the thread and can't find an answer to this. I have my site running 1.54, I will be upgrading shortly.

I have Zen Lightbox installed but this will not work with ABTS, how can I get the two to work together. I'm not bothered if I need to change Zen Lightbox to another plugin.

Thanks

Mike

20 May 2016, 12:03 AM
#136
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

mike14017:

Hi

I've read through the thread and can't find an answer to this. I have my site running 1.54, I will be upgrading shortly.

I have Zen Lightbox installed but this will not work with ABTS, how can I get the two to work together. I'm not bothered if I need to change Zen Lightbox to another plugin.

Thanks

Mike

is the ZenCart Light your using Responsive?

You could TRY using both lightbox and fancy box, more than likely you will need to overcome some javascript issues

To change lightbox/fancybox you could change the modifications to the functions_general and than modify the: \catalog\includes\templates\YOUR_TEMPLATE\templates\tpl_modules_back_in_stock_fancybox.php

25 Oct 2017, 1:30 PM
#137
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Hi bislewl,

thank You for the hard work and for the contribution. I've installed the last version and all work fine just a curiosity. I've seen that during the installation, in the configuration Admin page, and so in the database, are added many fields for the text to be shown in the popup and in the vaious page (account and so on) making the language file for definition quite useless. Not a big deal, i just removed the various definition from the database configuration and all worked fine, just wondering if it would be better to remove from the intallation process that part so that all the language definitions are in /includes/languages/YOU_LANGUAGE/extradefinitio/back_in_stock.php.

Thanks for the attention and have a nice day :smile:

10 Jan 2018, 8:23 PM
#138
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

delete message

  • Jeff
10 Jan 2018, 9:05 PM
#139
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

Jeff_Mash,

There could be a variety of reasons. Either the DIV that contains the product is missing, or more than likely it's a Javascript issue. I looked but the links you provided don't have the module installed.

Thanks,
bislewl

14 Oct 2018, 11:32 AM
#140
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)

I'm rebuilding our server from scratch using Zen Cart V1.55f, having used CEON Back In Stock Notifications for years. I've installed Ajax Back In Stock 4.6.3 (the latest version at the time of writing) and I really like it.

There is one small issue on our test system that I haven't been able to resolve. On the product info page, I click on the BIS link and the fancybox appears with the description of the product and its image. Very nice touch and it looks great. However, when I do the same on the product listing, the fancybox appears but there is no product description and the image is the "No photo" image. Filling in the details and submitting them still results in a subscription e-mail and the description and image in that e-mail are correct. Therefore it is a cosmetic issue but still one I would like to resolve.

Any ideas where I should look?