Is there any way to show variations as a single product in shop?
A bit of context: I own a website which primarily sells used collectibles products. In many cases I have multiple pieces of same product in different conditions. I want have each piece display it’s own set of pictures and price. I didn’t use single product because I don’t want people coming from Google Search to land on old/out of stock variations
If you know a better way to deal with this situation. Please do suggest. The “select option” is very confusing for new visitors. I really think displaying “add to cart” can significantly boost my conversation rate
Thank you for reading through
[ad_2]
add_filter( ‘woocommerce_loop_add_to_cart_link’, ‘select_options_button_text’, 10, 2 );
function select_options_button_text( $html, $product ) {
if( $product->is_type( ‘variable’ ) ) {
$text = __(‘Add to Cart’, ‘woocommerce’);
return str_replace(‘Select options’, $text, $html);
}
return $html;
}
https://woo.com/products/variations-as-single-products-for-woocommerce/
Create an attribute in the product page and create variations based off it. Pretty straight forward