To set a package as optional, uncheck the checkbox in front of the package.
The unchecked items appear as uncheck options in the PDF and are not included in the total:
If you use package images and show them in the Package summary on the PDF, the packages will be marked as 'Included' or 'Upgrade options'.