All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
37 views
+50

How to sort product attribute values in “Add to cart” form

Given a commerce product with variations, how can I order the values within a variation attribute in the "Add to cart" form on the product page? Steps so far: In /admin/commerce/config/product-types/...
0
votes
1answer
54 views
+50

How to limit form submission per user per day and week?

The goal is very straightforward. I need a form to limit each user to 1 submission per day and 3 per week. What I found: Webform: The "Form settings" in webform has the "Per user submission limit" ...
1
vote
1answer
37 views
+50

Custom node access control not working with access filter?

In some of mine content types I have checkbox field "Content protect". If checked that node should be visible only to registered user. If not checked - visible to everyone: function hook_node_access($...