Get product type by product ID:
$product = \Drupal\commerce_product\Entity\Product::load((int)$product_id);
var_dump($product->bundle());
Happy coding!
Change priority of dual boot OS (Windows and Linux): Go to your Linux OS, install Grub customizer. Then change priority by up and down arro...
No comments:
Post a Comment