OK, so I've added this module, got it working, and updated all my stock.

Because the stock levels of each variant are not clear at the time of ordering, I can see that, in the case of my store, there are almost certainly going to be occasions when a customer may decide that he/she fancies an item in Size a in Colour B, which is a variant that isn't available, and it may be the case that the customer has to just keep trying until they get the right combinations. So in many ways, the customer is working 'blind'.

So to overcome this problem, I have provided the customer with a 'stock availability' table which shows the variants that are available, with stock levels.

I've added the table in the product details text, but, as things stand, I will have to manually update the stock levels in these tables when purchases are made or stock replenished.

FINALLY... my question can anyone advise me as to what code I would need to incorporate in my text so as to make the the stock level update automatically?

I am quite happy to add a different line of code for each variant, if necessary, because this would save me time in the long run.

I realise that the way to do this is to 'look-up' the stock level for the variant, using the variant's unique 'id', but I have no idea as to how I could do that from within the html in my 'stock availabilty' table. (Ideally, I would like to be able to re-present a filtered by product version of the 'Stock by Attributes' data entry page, because that would mean that the whole table would be automatic!!)