Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
explorer1979
Hi All,
404 Not Found
The server can not find the requested page:
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
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">
Change To
PHP Code:
<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 Code:
$html_message['SPAM_LINK'] = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id;
Change To
PHP Code:
$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
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
explorer1979
Hi all,
I final fix this
/admin/back_in_stock.php
On Line 169
From
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">
Change To
PHP Code:
<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 Code:
$html_message['SPAM_LINK'] = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . 'index.php?main_page=back_in_stock&bis_id=' . $bis_id;
Change To
PHP Code:
$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.
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.
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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.
PHP Code:
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
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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?
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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?
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?