jeffharrell / minicart

The minicart is a great way to improve your PayPal shopping cart integration.
MIT License
500 stars 209 forks source link

minicartjs doesn't work with my dinamic site web #237

Closed infomaniaco closed 10 years ago

infomaniaco commented 10 years ago

Hi to Everybody... I have a gallery of product that I print in the index by a call of ajax Json from a php file. For every product's image there is a form personalized for the info and the prize. The problem is that minicart js recognize only forms of add to cart of the index and not the form that are obtained by a json call. Where is the mistake? I think minicart don't recognize paypal's form that are loaded after in asynchronous this is the site : http://gioplast.altervista.org/#

thank you very much

jeffharrell commented 10 years ago

Please see the bind(form) method which allows you to bind forms after the page loads.

jeffharrell commented 10 years ago

API documentation can be found at http://minicartjs.com/#toc_4

carballot commented 10 years ago

How did you solve that problem? I have same problem with a html call. Thanks

unwork commented 8 years ago

I'm running into this issue as well. Minicart works fine from the root HTML but it won't work when triggered from an ajax-loaded HTML. Does anyone have any ideas how to make it work from an ajax page?