Add the possibility to email the configuration directly to the customer as well as a copy to the shop owner.

Enabling the feature:
- go to Settings > Product Configurator > Save your design > Share configuration, and enable “User can share or email their configuration”, then save the settings
- Enable the Share by email setting
- You can then configure the 2 available emails in WooCommerce email settings:


Customize the email fields to your desired content. You can use the available placeholders:

- {configuration} – the configuration summary, in HTML or plain text depending on the email type
- {configuration-sku} – The SKU of the configuration, when enabled in the general settigns
- {configuration-code} – The configuration Code. The same as used in the URL.
- {link} – The shared link. Direct link to the configurable product, with the shared configuration preloaded.
- {qrcode} – A QR code to the above link
- {syd-link-name} – Name provided by the user
- {syd-link-email} – Email provided by the user
Adding fields to the form
It is possible to add fields to the form using the filter 'syd-email-share-fields'
.
Example, add a phone number field:
// Add the field(s) function add_my_custom_fields( $fields ) { $fields['syd-link-phone'] = [ 'label' => __( 'Your Phone number:' ), 'type' => 'phone', 'order' => 30, 'sanitize' => 'sanitize_text_field', 'escape' => 'esc_html', 'validate' => 'add_my_custom_fields_validation', 'required' => true ]; return $fields; } // Validation function function add_my_custom_fields_validation( $item ) { if ( $item_is_a_phone_number ) { return true; } return false; } // Add the filter add_filter( 'syd-email-share-fields', 'add_my_custom_fields' );
The placeholder {syd-link-phone} will then be available in the email templates.