This file contains hidden or 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
    
  
  
    
  | ({ | |
| events:{ | |
| 'click .button': '_createMeeting', | |
| }, | |
| _createMeeting: function(){ | |
| var meeting = app.data.createBean('Meetings'); | |
| meeting.set({ | |
| // Create its UUID | |
| id: app.utils.generateUUID(), | |
| name: 'Test', | 
  
    
      This file contains hidden or 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
    
  
  
    
  | // Define which products we should hide the subscription text for | |
| function should_hide_subscription_text($product){ | |
| $is_subscription = (get_class($product) == 'WC_Product_Variable_Subscription'); | |
| $has_price = (intval($product->subscription_price)>0); | |
| $has_fee = (intval($product->subscription_sign_up_fee)>0); | |
| if($is_subscription && $has_price && !$has_fee){ | |
| return true; | |
| } else { | |
| return false; | |
| } |