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

hanoii’s picture

Status: Active » Closed (works as designed)

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