please provide more detail and a link where i can see the problem.
simply stating "it won't work" does not give me any detail to help with the problem.
you say the view cart button will work but the add to cart button wont work.
does this mean that the add to art button adds the item to the cart, but does not redirect to the cart? in order to redirect to the cart page, you need to click the view cart button?
or does it mean that the add to cart button doers not add anything to the cart, when you click the view cart button, it goes to the cart, but the cart is still empty?