| @@ -239,11 +239,29 @@ | ||
| 239 | 239 | </label> |
| 240 | 240 | <input type="text" name="<?php echo esc_attr( $action_control->get_field_name( 'email' ) ); ?>" id="<?php echo esc_attr( $action_control->get_field_id( 'email' ) ); ?>" value="<?php echo esc_attr( $form_action->post_content['email'] ); ?>" class="frm_not_email_to large-text" /> |
| 241 | 241 | </p> |
| 242 | 242 | |
| 243 | + <?php if ( ! has_action( 'frm_stripe_lite_customer_info_after_email' ) ) : ?> | |
| 244 | + <p class="frm6"> | |
| 245 | + <label for="<?php echo esc_attr( $action_control->get_field_id( 'billing_address' ) ); ?>"> | |
| 246 | + <?php esc_html_e( 'Address', 'formidable' ); ?> | |
| 247 | + </label> | |
| 248 | + <?php | |
| 249 | + $action_control->show_fields_dropdown( | |
| 250 | + $field_dropdown_atts, | |
| 251 | + array( | |
| 252 | + 'name' => 'billing_address', | |
| 253 | + 'allowed_fields' => 'address', | |
| 254 | + ) | |
| 255 | + ); | |
| 256 | + ?> | |
| 257 | + </p> | |
| 258 | + <?php endif; ?> | |
| 259 | + | |
| 243 | 260 | <?php |
| 244 | 261 | /** |
| 245 | 262 | * Trigger an action so Pro can include an Address dropdown. |
| 263 | + * When a plugin hooks in here, the default Address dropdown above is not rendered. | |
| 246 | 264 | * |
| 247 | 265 | * @since 6.5 |
| 248 | 266 | * |
| 249 | 267 | * @param array $args { |
| @@ -273,11 +291,16 @@ | ||
| 273 | 291 | </p> |
| 274 | 292 | </div> |
| 275 | 293 | |
| 276 | 294 | <?php |
| 295 | +if ( ! has_action( 'frm_payment_settings_after_customer_info' ) ) { | |
| 296 | + include FrmTransLiteAppHelper::plugin_path() . '/views/action-settings/paypal-shipping.php'; | |
| 297 | +} | |
| 298 | + | |
| 277 | 299 | /** |
| 278 | 300 | * Fires after the Customer Information section in payment action settings. |
| 279 | 301 | * Used by Pro to add gateway-specific Shipping and Billing sections. |
| 302 | + * When a plugin hooks in here, the default Shipping Information section above is not rendered. | |
| 280 | 303 | * |
| 281 | 304 | * @since 6.31 |
| 282 | 305 | * |
| 283 | 306 | * @param array $args { |