Closed (works as designed)
Project:
Ubercart Out of stock Notification
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2008 at 14:32 UTC
Updated:
6 May 2009 at 16:13 UTC
Hi,
great module, thanks for submitting it!
I've made a little change to uc_out_of_stock.js to hide the Add to cart button during the AJAX check.
Here:
add this after line 56:
$("input:submit", form).hide();
add this after line 70:
else {
$("input:submit", form).show();
}This way customers are unable to make any mistakes.
Rob
Comments
Comment #1
hanoiiI have thought about this and I don't like the idea of the add to cart button hiding and showing each time the query is being made, because it's likely that the add to cart button will be hidden and shown all the for most products which have stock.