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 101 to 120 of 147
26 Jun 2015, 11:18 AM
#101
yiorgos avatar

yiorgos

New Zenner

Join Date:
Dec 2010
Location:
Dublin, Ireland
Posts:
6
Plugin Contributions:
0

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 :-(

26 Jun 2015, 6:48 PM
#102
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)

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

7 Jul 2015, 2:01 AM
#103
jarmilka avatar

jarmilka

New Zenner

Join Date:
Jun 2011
Posts:
20
Plugin Contributions:
0

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

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.

7 Jul 2015, 2:07 AM
#104
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)

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?

6 Sep 2015, 1:11 PM
#105
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

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 :).

12 Sep 2015, 2:12 AM
#106
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)

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"

10 Nov 2015, 12:53 AM
#107
countrycharm avatar

countrycharm

Totally Zenned

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

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

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:

// 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....

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

21 Jan 2016, 5:03 PM
#108
drew08 avatar

drew08

New Zenner

Join Date:
Jan 2016
Location:
Florida, USA
Posts:
1
Plugin Contributions:
0

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.

8 Feb 2016, 10:38 PM
#109
michael_rebreathe avatar

michael_rebreathe

New Zenner

Join Date:
Jul 2015
Posts:
43
Plugin Contributions:
0

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

8 Feb 2016, 10:59 PM
#110
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)

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

8 Feb 2016, 11:05 PM
#111
michael_rebreathe avatar

michael_rebreathe

New Zenner

Join Date:
Jul 2015
Posts:
43
Plugin Contributions:
0

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

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?

18 Feb 2016, 2:07 PM
#112
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

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.

21 Mar 2016, 8:03 AM
#113
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)

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

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

<!-- 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/index.php?main_page=product_info&cPath=80_994_883&products_id=11107
or
with Ultimate URLs -> on
http://www.miracle-mart.com/up154/multi-rotor-propeller-c-80_994_883/carbon-fiber-propeller-8-inch-dji-phantom-1-pair-p-11107.html

Thank you.

21 Mar 2016, 9:30 AM
#114
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)

Hi all,

I final make it work by change
/includes/templates/your_template/jscript/jquery/jquery_back_in_stock.js
on line 1
from

$(document).ready(function () {

to

$(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.

23 Mar 2016, 9:09 AM
#115
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)

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.

23 Mar 2016, 8:09 PM
#116
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)

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

24 Mar 2016, 6:19 AM
#117
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:

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

24 Mar 2016, 9:12 AM
#118
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)

Hi All,

404 Not Found
The server can not find the requested page:

https://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.

24 Mar 2016, 2:19 PM
#119
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:

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

29 Mar 2016, 1:40 AM
#120
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:

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