Jump to content

Edit History

lordignus

lordignus

14 minutes ago, dostoyevski said:

perfect, it worked for me. One more thing, is there a way to know programmatically if a product is a combination product? 

A lot of thanks

 

$product = new Product($id_product);
$has_combinations = $product->hasCombinations(); //returns bool true or false

 

Edit: Obviously if you're using that within your foreach loop you'll have to use a different variable name than "$product"

lordignus

lordignus

13 minutes ago, dostoyevski said:

perfect, it worked for me. One more thing, is there a way to know programmatically if a product is a combination product? 

A lot of thanks

 

$product = new Product($id_product);
$has_combinations = $product->hasCombinations(); //returns bool true or false

 

×
×
  • Create New...