Details
In the ExperimentalAddToCartBuilder element, if you set either of the "Start" or "End" parameters for the subscription settings to something other than their default (which adds the respective sub_startdate or sub_enddate hidden inputs into the form), and then set them back to their default options again, the hidden inputs are not removed from the add to cart form. Turning subscriptions off and on again also doesn't help reset them back to default. Once the hidden inputs are present, they don't appear to be able to be removed without refreshing and starting again.
Steps to replicate
- Load the
ExperimentalAddToCartBuilder element
- Enable the "Create Subscription" toggle
- Set "Start" to one of the non default options
- Complete the additional form field that displays based on your form
- Note that the
sub_startdate hidden input/url parameter is now present for the add to carts
- Set the "Start" dropdown back to "Immediately"
- Note that the
sub_startdate hidden input/url parameter is still present
Expected outcome
When setting the subscription "Start" back to "Immediately" or the "End" back to "When cancelled", the respective "sub_startdate" or "sub_enddate" fields would be removed from the rendered add to cart form.
Details
In the
ExperimentalAddToCartBuilderelement, if you set either of the "Start" or "End" parameters for the subscription settings to something other than their default (which adds the respectivesub_startdateorsub_enddatehidden inputs into the form), and then set them back to their default options again, the hidden inputs are not removed from the add to cart form. Turning subscriptions off and on again also doesn't help reset them back to default. Once the hidden inputs are present, they don't appear to be able to be removed without refreshing and starting again.Steps to replicate
ExperimentalAddToCartBuilderelementsub_startdatehidden input/url parameter is now present for the add to cartssub_startdatehidden input/url parameter is still presentExpected outcome
When setting the subscription "Start" back to "Immediately" or the "End" back to "When cancelled", the respective "sub_startdate" or "sub_enddate" fields would be removed from the rendered add to cart form.