cocart-headless / cocart-products-api

Provides a public view of the products on store for CoCart.
https://cocart.xyz
1 stars 0 forks source link

[Enhancement] Request to return product variations without the parent product #3

Closed seb86 closed 1 year ago

seb86 commented 2 years ago

Is this enhancement related to a problem? Please describe. Some stores like the idea of being able to show and provide a quicker way for customers to add variations of a variable product to the cart. Rather than providing the parent product we can exclude that and return all variations as an individual product.

WooCommerce does not do this out of the box or provide an option to filter the search results of the shop archive page but we don't want to copy the limitations so let's break free from that so headless stores can be more advanced.

Describe the solution you'd like A parameter will allow the developer to force variable products to return variations as an individual product and remove the parent product from the results.

seb86 commented 2 years ago

P.S. This would also reduce the need to use a third-party plugin like this one.

seb86 commented 1 year ago

Done in commit 42a9ca805251a62914905b0b80efea2e7fe6d7f0 and d9e349124186ac87de3c0d8a1c8b9d8364eaf3ad