I would like to make some discount-calculations with a piece of Javascript, embedded in my product detail template. I have to do it this way because the eCom dicount module doesn't support dicsounts based on Manufacturers.
Is it possible to set the value of a hidden form field to the calculated discount price, and post that new price with the submission of "Add to cart" and make the new price overrule the price in the product database?
I know how to set up the Javascript bit, but I'm not sure about the new price overruling the price in the database.