Dynamic Product / Add To Cart Button

Shopify Partner
2 0 0

HI there - I've got a calucaltor on my site which works out which dog plan subscription you need.

This uses ajax to retieve the data which includes the product sku code.

This works perfectly and displays the price...etc. as this is held in a json data set. What I can't figure out is how do I load the add to cart button onto this page dynamically? I should also mention we use the ReCharge app as these are subscription based products.

Would really appreciate any help :)