hyttefeber / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
0 stars 1 forks source link

Product addons on product pages #40

Open prebenpreben opened 2 years ago

prebenpreben commented 2 years ago

Describe the enhancement you'd like We desperately need a way of choosing and displaying relevant products on a product page. Most relevant use cases would be accessories for pizza ovens, and also accessories for firepits and more.

It doesn't have to be very fancy, the main goal is just to upsell relevant products for popular products that has addons.

Describe alternatives you've considered There are apps that can do this, but various people on Plus claim it's so easy it shouldn't require yet another app.

I'm thinking we just need to get an MVP of this up asap, walking the path of least resistance.

Path of least resistance / MVP logic From my understanding, the easiest way to achieve this without the need of a separate interface and complex logic, would be to utilize a product metafield.

If we are able to have a product metafield where we can add product ID's (*for convenience, to avoid any potential issues with what happens with duplicate skus and so on), and separate them with commas, we wont need an interface for this.

This will be the way we determine which products to fetch.

Next, we fetch product title, main image, both prices, and hyperlink the title to the product. We might consider fetching other or more product data in the future, but I believe that should be fairly easy now that we are querying the product data anyways, using the product id.

User experience and design

The product title should be linked to the product page itself. But clicking on the product / inside the product box anywhere other than on the title, should dynamically add it to the cart. The slide out cart should display for this so the user understands it was added without them leaving the page.

Additional context/screenshots Wireframe screens / Sketches will be added later.

Ballpark estimate: +5 hours.