Create a new file 'index.ucd.liquid' in templates of your theme. and paste the following code:
{%- layout none -%} { "cart": {{ cart | json }}, "items": [ {%- for item in cart.items -%} { "variant": {{ item.variant | json }}, "product": {{ item.product | json }}, "inventory_quantity": {{ item.variant.inventory_quantity | times: 1 }}, "inventory_policy": {{ item.variant.inventory_policy | json }}, "compare_at_price": {{ item.variant.compare_at_price | times: 1 }}, "compare_at_price_formatted": {{ item.variant.compare_at_price | money | json }} }{%- if forloop.last != true -%},{%- endif -%} {%- endfor -%} ] }
Add following code in app's Custom Javascript field:
sellify.ucd.cart_path = '/?view=ucd'; sellify.ucd.filters.raw_cart.push(function(cart){ if (sellify.ucd.cart_path.includes('view=ucd')) { cart.cart.items = cart.cart.items.map(function(item, index){ item = {...cart.items[index], ...item }; return item; }); return cart.cart; } return cart; });