Skip to content

Get the custom item field value

With this tag you can get the value of a specific custom field for a cart item

The tag

{exp:reinos_store:custom_cart_item_field_value cart_id="10" field="my_custom_field"}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

cart_id

The unique cart item ID

cart_id=""

field

The field name where you want to get the value from

field=""

Example

{exp:reinos_store:cart prefix="cart:" can_update="yes"}
    {cart:items}
        <input class="border p-1 rounded" value="{exp:reinos_store:custom_cart_item_field_value cart_id="{cart:id}" field="field_from_input"}" name="custom_fields[{cart:id}][field_from_input]">
    {/cart:items}
{/exp:reinos_store:cart}