Shopify/Timber

Quick View/Shop on Collection page with BuyButton.js?

Closed this issue · 2 comments

Is this generally a good idea or there's actually a better idea like loading a product page in a modal instead?

Not expecting a hand-guiding tutorial but appreciate some pointers. I'll share the solution here if I get there first, somehow.

The only way I've attempted to do this is with ajax via load:

var productDiv = productUrl (from href or data attribute) + product div (like `.product-wrapper`)
$('#Modal').load(productDiv, function(data) {
  // do stuff
});

@cshold ah i see, that's very helpful thank you! I'll try that. I am okay if you want to close the issue but I'll be updating it until I found a solution to share!