cwcfp_check_cart_quantities

The cwcfp_check_cart_quantities filter allows you to modify the quantities of a field that is shown.

There are four attributes passed to the filter:

  • $qty_sum - the quantity of the field that will be displayed
  • $id - the field ID
  • $field - all of the settings for the field. This can retrieve data such as product IDs, whether or not the field is repeatable, etc.
  • $cart_data - provides information on the specific products, variations, etc. that are in the customer's cart.