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 21 to 40 of 147
29 Jan 2015, 2:51 PM
#21
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

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

This module works only if there is an active SSL certificate ?

When i try Back In Stock Notifications i have a message error: ssl_error_rx_record_too_long

Please let me know

29 Jan 2015, 4:11 PM
#22
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)

It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.

29 Jan 2015, 5:47 PM
#23
nightfly66 avatar

nightfly66

New Zenner

Join Date:
Oct 2008
Posts:
44
Plugin Contributions:
0

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

bislewl:

It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.

It is not the answer I wanted. Anyway thank you

29 Jan 2015, 5:59 PM
#24
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

bislewl:

It should work with a self-assigned certificate. However ALL stores should have a proper SSL anyways.

So I'm not clear here.. If a shop DOES NOT have an SSL cert, they CANNOT use this module??? Is THAT what that error "error: ssl_error_rx_record_too_long" means??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

5 Feb 2015, 8:02 PM
#25
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

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

Hi

I just installed this module on zen cart 1.5.1. PHP Version: 5.4.34. I'm having trouble getting it to work. The installation instructions don't mention which file to paste the code snippets provided, though I assume it should be the file, tpl_product_info_display.php

There's a file, tpl_product_info_add_to_cart_sample.php I wasn't sure what this file was for. Looking at the contents there's a line that says, "// This will replace the normal add to cart button code" so I copied and replaced the standard add to cart code in the file tpl_product_info_display.php.

I have tried both sets of code snippets (one set at a time) and the link for "Email me when back in stock" takes me to homepage.

When turning off the module the sold out icon is still disabled. There's also a log file.

[05-Feb-2015 18:56:47 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/***/public_html/ADMIN/includes/init_includes/init_back_in_stock.php on line 66

Any ideas what going on?

thanks

5 Feb 2015, 8:15 PM
#26
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)

buildingblocks:

Hi

I just installed this module on zen cart 1.5.1. PHP Version: 5.4.34. I'm having trouble getting it to work. The installation instructions don't mention which file to paste the code snippets provided, though I assume it should be the file, tpl_product_info_display.php

There's a file, tpl_product_info_add_to_cart_sample.php I wasn't sure what this file was for. Looking at the contents there's a line that says, "// This will replace the normal add to cart button code" so I copied and replaced the standard add to cart code in the file tpl_product_info_display.php.

I have tried both sets of code snippets (one set at a time) and the link for "Email me when back in stock" takes me to homepage.

When turning off the module the sold out icon is still disabled. There's also a log file.

[05-Feb-2015 18:56:47 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/***/public_html/ADMIN/includes/init_includes/init_back_in_stock.php on line 66

Any ideas what going on?

thanks

If it is taking you back to the home page that typically then the javascript is not loading.

if you look at the javascript loaded on the page these should be loading:
jquery-1.10.2.min.js
jquery-migrate-1.2.1.min.js
jquery.fancybox.js
jquery_back_in_stock.js

5 Feb 2015, 9:08 PM
#27
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

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

bislewl:

If it is taking you back to the home page that typically then the javascript is not loading.

if you look at the javascript loaded on the page these should be loading:
jquery-1.10.2.min.js
jquery-migrate-1.2.1.min.js
jquery.fancybox.js
jquery_back_in_stock.js

yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js

5 Feb 2015, 9:19 PM
#28
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

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

buildingblocks:

yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js

just to clarify, in case it matters, jquery-1.4.4.min.js and jscript_utils.js both reside in the folder jscript not jscript/jquery

5 Feb 2015, 9:30 PM
#29
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

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

buildingblocks:

just to clarify, in case it matters, jquery-1.4.4.min.js and jscript_utils.js both reside in the folder jscript not jscript/jquery

jquery-1.4.4.min.js I believe belongs to zxslideshow
jscript_utils.js belongs to reward points full suite

8 Feb 2015, 6:48 PM
#30
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)

The issue [05-Feb-2015 18:56:47 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/***/public_html/ADMIN/includes/init_includes/init_back_in_stock.php on line 66

This was resolved by DrByte, Zen-Cart.com wasn't outputting the json when newer version was pending (submitted but not moderated). Also the a fall back is being added to zencart 1.6.0. See https://github.com/zencart/zencart/issues/281

So this should be resolved now.

8 Feb 2015, 7:00 PM
#31
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)

buildingblocks:

yes they are and we also have these two loading, jquery-1.4.4.min.js and jscript_utils.js

That very well could be the problem.
jquery-1.4.4.min.js is another jQuery Library, and will render break on most installations.

Try removing jquery-1.4.4.min.js, and see if that helps the issue.

Side Note: Officially for PCI compliance you should only be running the most recent version of jQuery, including more recent then 1.10.2. (currently the most recent version is 1.11.2) running the migrate 1.2.1 provides backwards compatibility with older scripts.

17 Mar 2015, 6:13 PM
#32
aml7785 avatar

aml7785

New Zenner

Join Date:
Jan 2015
Location:
Wisconsin
Posts:
5
Plugin Contributions:
0

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

I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.

17 Mar 2015, 6:24 PM
#33
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)

aml7785:

I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.

Have you uploaded the files to your Admin? What version of ZenCart are you running?

17 Mar 2015, 7:04 PM
#34
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)

aml7785:

I am having trouble getting the plugin to show up in Zen Cart. I have installed all of the files in the catalog folder and followed the instructions in the readme.html file, except for the last change related to adding the link where subscriptions can be changed, I am unaware of where that should be inserted. When I am do a search in Developers Tool Kit in Zen Cart I do see the files that I have added related to this plugin, but I don't see the plugin itself anywhere in Zen Cart. This is my first time I have installed any kind of plugin so I am very new to this.

UPDATE
Issue was that the admin profile didn't have permissions to view the menu items for the module

20 Mar 2015, 6:39 PM
#35
aml7785 avatar

aml7785

New Zenner

Join Date:
Jan 2015
Location:
Wisconsin
Posts:
5
Plugin Contributions:
0

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

We suggest that there should be a button in the popup box that would take users back to the product page or have it say that it will go back to the product page automatically after so many seconds with a countdown.

20 Mar 2015, 6:49 PM
#36
purelypoultry avatar

purelypoultry

New Zenner

Join Date:
Mar 2009
Location:
Fremont, Wisconsin, United States
Posts:
50
Plugin Contributions:
1

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

aml7785:

We suggest that there should be a button in the popup box that would take users back to the product page or have it say that it will go back to the product page automatically after so many seconds with a countdown.

We are suggesting that this would happen AFTER the visitor subscribed to the list. They just sit at a page that has no action to take other than to click the x to exit.

Owner of Purely Poultry

20 Mar 2015, 7:13 PM
#37
purelypoultry avatar

purelypoultry

New Zenner

Join Date:
Mar 2009
Location:
Fremont, Wisconsin, United States
Posts:
50
Plugin Contributions:
1

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

Anyone mind sharing a link to this installed and working? I would like to see what you have done on the product page with this plugin.

Owner of Purely Poultry

25 Mar 2015, 10:01 PM
#38
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,

awesome work bislewl.
I'm working on this module to make it multi-language friendly :P. Actually I found an error in mail sending when something is back in stock and you run the cron job. The object of the mail, as long as the mail body, does't have the product name in it. Yet the link to the product work great.

It appear like this:

is Back In Stock at yourshop

Dear Jhon Doe
Thank You for your interest in the It is now available for purchase!

http://localhost/negozio154/index.php?main_page=product_info&products_id=26

Please reply to this email with any questions

To unsubscribe click here https://localhost/negozio154/index.php?main_page=back_in_stock&bis_id=3

I'm still working in local enviroment so the http:// is little error i don't care about.
I've tried to understand why it's like this but I've found nothing.

Any clue will be appreciated :D

ps: Zencart 1.5.4

25 Mar 2015, 11:22 PM
#39
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)

izar74:

Hi,

awesome work bislewl.
I'm working on this module to make it multi-language friendly :P. Actually I found an error in mail sending when something is back in stock and you run the cron job. The object of the mail, as long as the mail body, does't have the product name in it. Yet the link to the product work great.

It appear like this:

I'm still working in local enviroment so the http:// is little error i don't care about.
I've tried to understand why it's like this but I've found nothing.

Any clue will be appreciated :D

ps: Zencart 1.5.4

This should be resolved with version 4.2.2. Thanks for the bug report!

26 Mar 2015, 10:30 AM
#40
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)

bislewl:

This should be resolved with version 4.2.2. Thanks for the bug report!

Thank You for the hard work!:smile:

I just notice anothel little bug, if You have Specials or Featured product in your home page and one of it is out of stock (ok ok i know... if it's a Special it should not be out of stock... :P) it shows the "Email me when back in stock" link correctly but if You click it the popup does not shows the image, if You click "Notify!" it work as intended.

Just a minor glitch :blush: