Checkout form: "hidden" options still shown

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

Checkout form: "hidden" options still shown

Post by rowild » 11 Nov 2020, 00:43

Hi!

How do form fields have to be treated when set to hidden? They still show up.

My current settings:

Code: Select all

    checkout {
      standard.address.billing {
        mandatory {
          0 = order.base.address.salutation
          1 = order.base.address.firstname
          2 = order.base.address.lastname
          3 = order.base.address.address1
          4 = order.base.address.postal
          5 = order.base.address.city
          6 = order.base.address.countryid
          7 = order.base.address.email
          8 = order.base.address.telephone
        }
        hidden {
          0 = order.base.address.website
          1 = order.base.address.address3
          2 = order.base.address.languageid
          3 = order.base.address.telefax
        }
        optional {
          0 = order.base.address.company
          1 = order.base.address.vatid
          2 = order.base.address.address2
          3 = order.base.address.state
        }
      }
 
They do not hide any fields, neither by not rendering them nor by assigning a special field attribute like "disabled". Do i have to remove the fields by myself from the template? (This is what I am doing at the moment.)

Also: do I have to add the asterisk for mandatory fields by myself to the templates or should there be some magic going on on behalf of Aimeos?

Thank you!

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Checkout form: "hidden" options still shown

Post by aimeos » 11 Nov 2020, 17:24

Both, hiding the fields configured as "hidden" and the asterisk for mandatory fields are done using CSS. Either you've removed those CSS or changed the CSS classes in your template.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply