If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / back in stock notification - buttons 'back' and 'update' not working

back in stock notification - buttons 'back' and 'update' not working

Locked

Started by flix on 24 Mar 2010, 8:06 PM · Views: 1,904

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
24 Mar 2010, 8:06 PM
#1
flix avatar

flix

New Zenner

Join Date:
Mar 2010
Posts:
33
Plugin Contributions:
0

back in stock notification - buttons 'back' and 'update' not working

The 'Back in stock notification' module allows you to subscribe to notifications regarding products being back in stock.

To unsubscribe from a notification list, a client should be able to go to his account and simply uncheck (clear) the box beside the appropriate product and click “Update”. If he doesn't want to unsubscribe from any lists, he should be able to click “Back" to simple leave the page.

But both the "Update" and the "Back" buttons do NOT work. When clicking them, the page is simply reloaded and ALL of the before unchecked (cleared) boxes are set back to checked again!?!?

Has anyone experienced a similar problem???

The HTML source code of the two buttons is the following:

<div class="buttonRow back"><input type="submit" value="Back" style="width: 80px;" /></div> 
<div class="buttonRow forward"><input type="submit" value="Update" style="width: 80px;" /></div>

The PHP code for adding the check boxes is the following:

	// Add the checkbox
	$checkbox = '<input type="checkbox" name="stay_subscribed_to[]" value="' .
		$subscribed_notification_lists[$i]['id'] . '" checked="checked" />';
	$back_in_stock_notifications_item->setVariable('checkbox', $checkbox);

For me it seems that checkbox is hard set to "checked"... ?!?!?

Help is greatly appreciated!

24 Mar 2010, 9:02 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,140
Plugin Contributions:
56

Re: back in stock notification - buttons 'back' and 'update' not working

You might have better luck posting your question in the BISN support thread:

http://www.zen-cart.com/forum/showthread.php?t=102159