vendredi 2 janvier 2015

How can i check whether product is single or variable in custom loop


Here is my code, please help me what to change in it



if(is_type( 'simple' ) )
{
woocommerce_single_add_to_cart();
} elseif(is_type( 'variable' ) )
{
woocommerce_variable_add_to_cart();
}




Aucun commentaire:

Enregistrer un commentaire