After adding the mods for not going back to the cart and not going to the child item after clicking to add to cart, I seem to have broken the stock checking component.
Info: The selected quantity exceeds available stock. We currently have 0 items available. [Edit: When stock level checking disabled, error changes to Sorry, but the Product you\'ve requested wasn\'t found!]
Guess I've broken something? Will have to revert to unmodded state.
I've also had an effect (after the first mod) not visible on yours where I also see a dropdown box for the item variations available plus the parent product. This would go away when I was in a child display.
I'll start again from scratch and see if it works out differently- I might have missed a step.
...later ...change line 299 from
This occurs on line 281 in my original version, which is
* @version $Id: shop.product_details.php,v 22.214.171.124 2006/01/18 19:40:59 soeren_nb Exp $
Most other line numbers also do not match up so I am guessing that this mod is not for this version?
I re-applied the first part of the mod, and end up again with the same as the second screenshot. It also displays the peculiar behaviour (as before) that if I request more than one ball of green wool (the first in the list) it goes to the cart with only one as the quantity. If I do the same for the blue ball, I get the correct quantity but don't get wheeled off to the cart.
I can see other functions there for showing the dropdown boxes. Perhaps if I killed those off it would behave? Can't help but thinking we have different versions?