I'm adding a basic annual subscription to a portion of a website.

I have Registration Behaviour set to Always - creates an account for all guest payments

But on the subscription form the createAccount select still appears (Save my account, No don't create an account".

I'm including the customerDetails fields like this:

{% include 'charge/_includes/inputs/customerDetails' with { 'registerGuest' : true }%}

I see the form logic in customerDetails.html but that doesn't feel like something that should be edited.

I want to remove the select, since I should always be creating a new account by default OR I want to replace it with a hidden field.

  • 1
    What's wrong with editing the html? Dec 11 '17 at 4:53
  • @RobinSchambach That's the solution I landed on. Dec 11 '17 at 23:29

Eventually I just edited customerDetails.html and swapped out the select with a hidden field. Done.

{{ forms.hidden({
    name: 'createAccount',
    id: 'createAccount',
    value: 'yes'
}) }}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.