Forum

Thread tagged as: Question, Shop

Required Categories Select

Hi,

I am trying to make a category selection required in a template, but it isn't working. This is what I have:

<perch:categories id="category" set="products" label="Family">
    <perch:category id="catTitle"  allowempty="false" required="true" />
</perch:categories>

But the template can still be saved without a category being selected. The code above is part of the product.html template if that makes a difference. This is my diagnostics summary:

SUMMARY INFORMATION

Perch Runway: 2.8.29, PHP: 5.5.32, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_forms (1.8.3), perch_shop_orders (1.0), perch_shop_products (1.0), perch_shop (1.0.1), perch_members (1.5), perch_mailchimp (3.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_members', 'perch_shop', 'perch_mailchimp' );
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/newgatewatches/public_html/admin
PERCH_CORE: /home/newgatewatches/public_html/admin/core
PERCH_RESFILEPATH: /home/newgatewatches/public_html/admin/resources
Image manipulation: GD
PHP limits: Max upload 20M, Max POST 8M, Memory: 64M, Total max file upload: 8M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/newgatewatches/public_html
HTTP_HOST: newgatewatches.com
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Mike Harrison

Mike Harrison 37 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Categories can't currently be required.