Some items in my site has a dhtml popup system that offers an additional product at a discounted price when they click the add to cart button. They have the option to either say yes or no to the offer. Once they decide and click on their choice they are brought to paypal to continue with their transaction.
For some reason suddenly it stopped working. They get the popup no problem, and they get to paypal's site, but the paypal page reports a problem and suggests to try again.
I would also like to be able to use the popup on several items on the same page. The problem is the functions that build the popup is not configurable for different prices. The items will all have different prices and different upsell offers. Right now I have to attach the same js file multiple times, with a different name and price settings. I would like one js file with the option to make it multi use.
No database interaction required.