• Hi! I recently bought the premium version with the idea of showing variable products to the customers, such as in the link shown, the product called “A5 GreenBook Tabbladen set van 3” is a variable product, why are the variable options not showing and can this be fixed?

    Thank you very much,
    Kaim

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @kaimma

    Please try to add below code to current-theme (or child-theme) / functions.php:

    add_filter( 'woobt_product_name', 'fix_woobt_product_name', 99, 2 );
    function fix_woobt_product_name( $name, $product ) {
    	if ( $product->is_type( 'variation' ) ) {
    		$name = $product->get_name() . ' - ' . wc_get_formatted_variation( $product, true, false, false );
    
    		if ( get_option( '_woobt_link', 'yes' ) !== 'no' ) {
    			$name = '<a ' . ( get_option( '_woobt_link', 'yes' ) === 'yes_popup' ? 'class="woosq-btn" data-id="' . $product->get_id() . '"' : '' ) . ' href="' . $product->get_permalink() . '" ' . ( get_option( '_woobt_link', 'yes' ) === 'yes_blank' ? 'target="_blank"' : '' ) . '>' . $name . '</a>';
    		}
    
    		return $name;
    	}
    
    	return $name;
    }
    Thread Starter kaimma

    (@kaimma)

    Thanks for the quick reply, I added it to the functions.php file, but unfortunately nothing changed.

    Looking forward hearing from you,
    Kaim

    Plugin Author WPClever

    (@wpclever)

    So strange 🙁

    If you already bought the premium version, please submit a ticket on our Support page then our developers will help you check and fix it.

    Thread Starter kaimma

    (@kaimma)

    Thank you, I submitted a ticket.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Variable products on premium version’ is closed to new replies.