This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Zuora hosted checkout payment form | |
*/ | |
/* Load up FontAwesome for select down arrow icon */ | |
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css); | |
/* General settings */ | |
* { | |
box-sizing: border-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Defines the Service Level Addon entity class. | |
* | |
* @ContentEntityType( | |
* id = "liveengage_service_level_addon", | |
* label = @Translation("Service Level Addon"), | |
* label_collection = @Translation("Service Level Addons"), | |
* label_singular = @Translation("Service Level Addon"), | |
* label_plural = @Translation("Service Level Addons"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$test = drupal_lookup_path('source','upgrade'); | |
$upgrade_node_id = explode('/', $test)[1]; | |
$upgrade_node = node_load($upgrade_node_id); | |
$upgrade_node_entity_wrapper = entity_metadata_wrapper('node', $upgrade_node); | |
$upgrade_products = $upgrade_node_entity_wrapper->field_product->value(); | |
$proudct_ids = []; | |
foreach($upgrade_products as $upgrade_product){ | |
$proudct_ids[] = $upgrade_product->sku; | |
} |