-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Thank you, I am loading 1.4.4.
I tried loading later versions but it messes a few other things on the site... With 1.10.x and 1.11.x I was getting the dark layer but no window showing up.
I think I am in need of a good jQuery springclean :-(
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
yiorgos
Thank you, I am loading 1.4.4.
I tried loading later versions but it messes a few other things on the site... With 1.10.x and 1.11.x I was getting the dark layer but no window showing up.
I think I am in need of a good jQuery springclean :-(
Yes, using 1.4.4 will break it. Try using CSS/js loader that will work best. Also if possible try to load the CSS/JS in the footer for page speed
-
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
I am having the same issue. I installed CSS/JS loader but still not getting anything after I click on Email me when back in stock, just redirects me to #back-in-stock-popup-wrapper.
Any help would be appreciated.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
jarmilka
I am having the same issue. I installed CSS/JS loader but still not getting anything after I click on Email me when back in stock, just redirects me to #back-in-stock-popup-wrapper.
Any help would be appreciated.
do you have a URL, I can see?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hey, first of all, massive thanks to bislewl for creating and sharing this module, I'm very curious about it.
Does this module support product attributes? If I remember correctly, Ceon's original module does not work with attributes. I sell t-shirts and obviously want the customer to be able to sign up for sizes that's out of stock :).
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
dysfunctional
Hey, first of all, massive thanks to bislewl for creating and sharing this module, I'm very curious about it.
Does this module support product attributes? If I remember correctly, Ceon's original module does not work with attributes. I sell t-shirts and obviously want the customer to be able to sign up for sizes that's out of stock :).
Your very welcome! I'm very happy with the turn out.
Now I originally wrote the module with the intention of supporting Stock By Attributes (and another premium similar module). However I haven't had the "free" time or a "Sponsor" to do it. My original intention was to offer it as a premium module. When I coded the module from the very beginning i added a column "variant" to reference the variant.
So short answer, No it doesn't support attributes. Yet.
Also I'm working on finishing up version 4.6.0 which will have significant speed improvements along with some "clean up"
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
izar74
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:
izar74 this worked very well thank you. Thank you for a nice mod too bislewl....
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I installed the latest version of this plugin to my site running 1.5.4. The newest version claims to fix the admin getting copied on all emails, even when Admin copy = false. I checked false in Configure menu and I am still getting emails. I verified that the DB says false using phpMyAdmin. My temporary solution is that I changed the admin email field created by the plugin to a new email that I created just for the notifications at this time. I did this using phpMyAdmin as well because the field is not included in the admin menu, even though the DB field is created during installation. Is this module still being supported? A fix to the bug and the ability to change the email address for this module would be great.
Thanks.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I'm hoping that I'm missing something simple.
Using ZC 1.5.4
Products With Attributes Stock 1.5.4 (Last updated ~Jan 14)
Ajax Back In stock 4.6.1
I have tried products with and without attributes, from the Category product listing and from the product info page (which I am adding to replace the "Sold Out" button). The popup opens properly and when submitted takes me to the subscriptions page, but does not add a subscription. No entries are made in the error logs...
Everything appears to be working, but no subscriptions are added. Email settings are proven to work for everything but Back In Stock. Module is enabled, and I have tried Send Admin Copy of Emails but true and false
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
michael_rebreathe
I'm hoping that I'm missing something simple.
Using ZC 1.5.4
Products With Attributes Stock 1.5.4 (Last updated ~Jan 14)
Ajax Back In stock 4.6.1
I have tried products with and without attributes, from the Category product listing and from the product info page (which I am adding to replace the "Sold Out" button). The popup opens properly and when submitted takes me to the subscriptions page, but does not add a subscription. No entries are made in the error logs...
Everything appears to be working, but no subscriptions are added. Email settings are proven to work for everything but Back In Stock. Module is enabled, and I have tried Send Admin Copy of Emails but true and false
Do you have a url rewrite module enabled? When you look what's the return statement from ajax looking like?
I'm uploaded v4.6.2 becuase there is some changes in the jScript. to make it function a little better
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Do you have a url rewrite module enabled? When you look what's the return statement from ajax looking like?
I'm uploaded v4.6.2 becuase there is some changes in the jScript. to make it function a little better
Yup, I forgot. CEON URI Mapping is installed.
I downloaded and installed Back in Stock 2 days ago...Can you provide a link to v 4.6.2?
Where would I find the ajax return statement?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
I wonder if there is a way to make it work on 1.5.5 at all? It works catalog side I belive, just in admin it goes to a the catalog page rather than opening a window to say it is doing a test run of notifications.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi,
I had install this 4.6.2 but while click the "Email me when back in stock" it just bring to to home page, then nothing ...
My Firefox's firebug see a error
TypeError: $(...).fancybox is not a function
|
$("a#back-in-stock-popup-link").fancybox({ |
where in /includes/templates/bohase/jscript/jquery/jquery_back_in_stock.js
on line 2, col1
My shop have Zen Lightbox 1.6.4 too (Pre-Installed from the skin)
And I see (Maybe the skin author change it)
on /includes/templates/bohase/common/tpl_footer.php
PHP Code:
<!-- JQuery Lightbox JS and Cloud Zoom JS-->
<?php if (in_array($current_page_base,explode(",",'product_info,product_reviews_info,product_reviews,product_reviews_write'))) { ?>
<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/jscript_jquery_1-4-4.js'?>" type="text/javascript"></script>
<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/cloud-zoom.1.0.3.js'?>" type="text/javascript"></script>
I know AJAZ Back I Stock on this forum said that it need jQuery 1.11.3 or above to run, so I also change it
to
PHP Code:
<!-- JQuery Lightbox JS and Cloud Zoom JS-->
<?php if (in_array($current_page_base,explode(",",'product_info,product_reviews_info,product_reviews,product_reviews_write'))) { ?>
<!--<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/jscript_jquery_1-4-4.js'?>" type="text/javascript"></script>-->
<script src="//code.jquery.com/jquery-1.12.2.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript').'/cloud-zoom.1.0.3.js'?>" type="text/javascript"></script>
And add some jQuery check version coding to check what version jQuery I am loaded ...
But still not work, I am out of idea what is wrong on it ...
Do the Zen LightBox Modules also too old so effect it?
Here are my web site (Under development)
http://www.miracle-mart.com/up154/in...ducts_id=11107
or
with Ultimate URLs -> on
http://www.miracle-mart.com/up154/mu...r-p-11107.html
Thank you.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Hi all,
I final make it work by change
/includes/templates/your_template/jscript/jquery/jquery_back_in_stock.js
on line 1
from
PHP Code:
$(document).ready(function () {
to
PHP Code:
$(document).ready(function ($) {
and above file on previous post .... to load the more new 1.12.2 version jQuery
/includes/templates/bohase/common/tpl_footer.php
But .....
On Firefox's firebug I still see some error ... any suggestion or idea can give for me?
Thank you.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Do the AJAX Back In Stock's Security Key can change by myself?
If yes, do it have any limit such as how many word leagth, special text etc?
Thank you.
-
1 Attachment(s)
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
First, love the script. I have been using it back when Conor first made it and it is still running on an old site. I have the new version installed on my new site but I am having a few issues. First, I would like to display it on the main product listing page but do not know what file it is contained in. I am looking to replace the "sold out" text. please see image:
Attachment 16152
Also, the request to be notified works great (I see the entries in my db), however, I cannot get the back in stock email to run. I have my cron set up to run every 10 minutes but something is not working right. I have it set up just like I do on my old site just a new file path. Any ideas?
I do get this in the error log:
[23-Mar-2016 08:15:44 America/Denver] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=xxxxx525
PHP compiled with module API=xxxxx226
These options need to match
in Unknown on line 0
Thanks,
Clint
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
clint6998
First, love the script. I have been using it back when Conor first made it and it is still running on an old site. I have the new version installed on my new site but I am having a few issues. First, I would like to display it on the main product listing page but do not know what file it is contained in. I am looking to replace the "sold out" text. please see image:
clint6998
Hi, do you have read the readme files from 4.6.2?
Make change of the
/includes/templates/your_template/common/tpl_footer.php
/includes/functions/functions_general.php
And since all of us are using/bought skin from 3rd ..
If above two of files you following by the readme.html
Then it is time to look on your skin files and with CSS (Manual add/change as need to match your skin)
I am on progress the same thing like you on my skin
Here what I am find
/includes/modules/your_template/product_listing.php
/includes/templates/your_template/templates/tpl_modules_products_featured_listing.php
/includes/templates/your_template/templates/tpl_modules_products_all_listing.php
/includes/templates/your_template/templates/tpl_modules_products_new_listing.php
look on the $buy_now (Base on my template, but your maybe not same)
And about the error log look like your host or your server haven't install Imageick well, why not just using PHP-GD more easy for your life.
Best Regards,
Jimmy Chan
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
explorer1979
clint6998
Hi, do you have read the readme files from 4.6.2?
Make change of the
/includes/templates/your_template/common/tpl_footer.php
/includes/functions/functions_general.php
And since all of us are using/bought skin from 3rd ..
If above two of files you following by the readme.html
Then it is time to look on your skin files and with CSS (Manual add/change as need to match your skin)
I am on progress the same thing like you on my skin
Here what I am find
/includes/modules/your_template/product_listing.php
/includes/templates/your_template/templates/tpl_modules_products_featured_listing.php
/includes/templates/your_template/templates/tpl_modules_products_all_listing.php
/includes/templates/your_template/templates/tpl_modules_products_new_listing.php
look on the $buy_now (Base on my template, but your maybe not same)
And about the error log look like your host or your server haven't install Imageick well, why not just using PHP-GD more easy for your life.
Best Regards,
Jimmy Chan
Yes I have read me file, yes I made all changes. My product detail screen works perfectly. I just didnt know if it was the products_all_listing page or what. I will start there.
Like I stated before, the previous version works just fine on my old site. Does anyone know what that error message means?
Thanks,
Clint
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
clint6998
Yes I have read me file, yes I made all changes. My product detail screen works perfectly. I just didnt know if it was the products_all_listing page or what. I will start there.
Like I stated before, the previous version works just fine on my old site. Does anyone know what that error message means?
Thanks,
Clint
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
-
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?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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/s...hp?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_...p?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?
-
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.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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:
Code:
wget -O - https://xxxxxxxxxxxxxx.com/store/cron/send_back_in_stock_notifications.php?key=xxxxxxxxxx >/dev/null 2>&1
-
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
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
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_fa ncybox.php
-
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:
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
-
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
-
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?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
P.S. Using PHP 7.1 on the new server, if that makes a difference. I can't see anything in the logs.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
The product listing pages use a single game box the image, name, and product are populated upon clicking the link. My guess is that the template being used isn't using the same classes as what it's set up for.
Could you please copy and paste the HTML as <code> from a single product on the product listing page into a reply here?
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
Could you please copy and paste the HTML as <code> from a single product on the product listing page into a reply here?
Thanks for the quick response, bislewl. This is the code I think you're asking for:
HTML Code:
<tr class="productListing-even">
<td class="productListing-data"><a href="http://saabitstest.saab9000.com/saabits">SAABits</a></td>
<td class="productListing-data" align="center"><a href="http://saabitstest.saab9000.com/all/saab-9000-turbo-service-kit-1992-1993-a-c?cPath=256_260&"><img src="images/svk312a.png" alt="Saab 9000 Turbo service kit 1992-1993 (A/C)" title=" Saab 9000 Turbo service kit 1992-1993 (A/C) " width="150" height="113" class="listingProductImage" /></a></td>
<td class="productListing-data"><h3 class="itemTitle"><a href="http://saabitstest.saab9000.com/all/saab-9000-turbo-service-kit-1992-1993-a-c?cPath=256_260&">Saab 9000 Turbo service kit 1992-1993 (A/C)</a></h3><div class="listingDescription"></div></td>
<td class="productListing-data" align="right"><span class="productBasePrice">£27.92</span><br /><br /><a href="http://saabitstest.saab9000.com/all/saab-9000-turbo-service-kit-1992-1993-a-c?cPath=256_260&">... more info</a><br /><span class="cssButton normal_button button button_sold_out" onmouseover="this.className='cssButtonHover normal_button button button_sold_out button_sold_outHover'" onmouseout="this.className='cssButton normal_button button button_sold_out'"> Sold Out </span><div class="product_detail"><a class="back-in-stock-listing-popup-link" href="#back-in-stock-popup-wrapper">Email me when back in stock</a><input type="hidden" name="bis-product-id" value="611" class="bis-product-id" /></div><br /><br /></td>
<td class="productListing-data">SVK312A</td>
</tr>
Note that I have modified the code slightly so it always shows the "Sold Out" button even when BIS is enabled. The problem shows up whether or not my modification is in place. I suspect you are correct - the template is based on the "Responsive All Business" template, which is quite old now.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
BillJ
Note that I have modified the code slightly so it always shows the "Sold Out" button even when BIS is enabled. The problem shows up whether or not my modification is in place. I suspect you are correct - the template is based on the "Responsive All Business" template, which is quite old now.
You appear to be correct. Below is the JavaScript that is called when the link is clicked.
Code:
$('a.back-in-stock-listing-popup-link').click(function (event) {
event.preventDefault();
var productDiv = $(this).parent();
$('#contact_messages').empty();
$('#back-in-stock-product-image img').attr('src', $(productDiv).find('.listingProductImage').attr('src'));
if ($(productDiv).find('h3.itemTitle')) {
$('#productName').html($(productDiv).find('h3.itemTitle').text());
} else {
$('#productName').html($(productDiv).find('span.itemTitle').text());
}
$('input[name="product_id"]').attr('value', $(productDiv).find('input[name="bis-product-id"]').attr('value'));
$.fancybox({
href: '#back-in-stock-popup-wrapper',
afterShow: function () {
$(document).on('submit', '#back-in-stock-popup-wrapper form[name="back_in_stock"]', function () {
$.post('ajax/back_in_stock_subscribe_pop_up.php', $('#back-in-stock-popup-wrapper form[name="back_in_stock"]').serialize(), function (data) {
$('#contact_messages').html(data);
if ($('.messageStackSuccess').length) {
$('.back-in-stock-popup-wrapper-button-row').hide();
$('.back-in-stock-popup-content-wrapper').hide();
}
});
return false;
});
}
});
});
So personally I would first try is in: catalog/includes/templates/YOUR_TEMPLATE/jscript/jquery/jquery_back_in_stock.js
Change:
Code:
var productDiv = $(this).parent();
To:
Code:
var productDiv = $(this).parent().parent().parent();
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
bislewl
So personally I would first try is in: catalog/includes/templates/YOUR_TEMPLATE/jscript/jquery/jquery_back_in_stock.js
Change:
Code:
var productDiv = $(this).parent();
To:
Code:
var productDiv = $(this).parent().parent().parent();
Thanks, bislewl! That sorted it out. And now I understand where it's getting the image and description from, I can remember to revisit that Javascript if I ever change the listing template.
So to summarise, it wasn't a bug in the module but rather it was due to my template being non-standard.
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Quote:
Originally Posted by
BillJ
Thanks, bislewl! That sorted it out. And now I understand where it's getting the image and description from, I can remember to revisit that Javascript if I ever change the listing template.
So to summarise, it wasn't a bug in the module but rather it was due to my template being non-standard.
No Problem!
I think, yes it's part the template, but I should have a better way to call the name and image, because each template may change that. I made a note to add that in the next release. Along with a few other improvements!
-
Re: Ajax Back In Stock (re-written version of Conor/Ceon's Back In Stock Module)
Does this work with zen cart 1.5.7?