In Drupal Commerce, which hook do I take advantage of to change product entity information in a product show?** And it must be a hook that fires every time I modify an attribute that causes a unique product entity to be loaded in Drupal Development show.
I added a line merchandise to my product sort referred to as “Feedback”. It’s a textarea, and it has a discipline description too. Then, on my product sort, I added Drupal Development following fields:
-
Customizable? (On/Off checkbox)
-
Customized Area Label
-
Customized Area Description
As every product entity is about to be displayed (whether or not it is Drupal Development first one proven when Drupal Development web page masses, or I make a drop down choice to alter which one reveals), I need to examine if that product entity is “Customizable”. Whether it is, I need to rename Drupal Development title of Drupal Development “Feedback” line merchandise with Drupal Development worth saved in “Customized Area Label”. And I need to change Drupal Development Feedback discipline description with Drupal Development worth saved in “Customized Area Description”. If Drupal Development product entity is NOT “Customizable”, then I need to cover Drupal Development discipline utterly (equivalent to by changing Drupal Development discipline sort from a textarea to a hidden discipline). This manner, Drupal Development “Feedback” line merchandise actually solely reveals for Drupal Development product entities we wish it to, and it will probably have a customized label and instruction when it does present.
Any assist somebody may give is tremendously appreciated. I’m having plenty of hassle even determining which hook fires every time a product entity is loaded, both Drupal Development first time, or when switched through ajax.