SHOPPING CART
select count(*) as number_of_items,
sum(price * quantity) as total
from product_list
join cart_item on product_list.sku=cart_item.sku
where cart_item.session_uuid='$[_session_id]'
$[sqlerror]
select if(find_in_set('SUBSCRIPTION', group_concat(distinct type)),'true','false') as subscription,
if(find_in_set('FILE', group_concat(distinct type)),'true','false') as file
from product_list
join cart_item on product_list.sku=cart_item.sku
where cart_item.session_uuid='$[_session_id]'
$[sqlerror]
Some items in your cart are recurring subscriptions. You will not be
charged automatically - you'll be notified by e-mail before each renewal, and it's your
responsibility to renew.
Some items in your cart are downloadable files - available from your
account page after checkout.
Item
Price
Qty
Total
select product_list.sku as SKU,
description as Description,
quantity as Qty,
price as Price
from product_list
join cart_item on product_list.sku=cart_item.sku
where cart_item.session_uuid='$[_session_id]'
order by description
$[sqlerror]