Cart Debug Information

Session Variables:

Array
(
)

User Status:

User ID: Not set
User Role: Not set
Is Buyer: No

Cart Table:

Cart table exists
FieldTypeNullKey
cart_idintNOPRI
product_idintYES
phonenumberbigintNO
trader_idintYES
quantityintNO
subtotalintYES
sourcevarchar(20)YES
trader_product_idintYES
product_typevarchar(50)YES
seller_idintYES
seller_namevarchar(255)YES
seller_typevarchar(50)YES
unitvarchar(50)YES
product_titlevarchar(255)YES
product_imagevarchar(255)YES
pricedecimal(10,2)YES
source_typevarchar(20)YES

Test Insert:

Cannot test insert - no user ID available

Next Steps:

1. Make sure you're logged in as a buyer or professional_buyer
2. Check that your session contains 'user_id' and 'user_role'
3. Verify the cart table has all required columns