Product Stock Debugger

Checking Product ID: 1, Source: trader

Trader Products Table:

Array
(
    [id] => 1
    [trader_id] => 2
    [original_product_id] => 250
    [original_farmer_id] => 150
    [purchase_id] => 1
    [product_title] => Spinach
    [starting_bid] => 
    [product_price] => 0.00
    [current_bid_price] => 
    [winner_buyer_id] => 
    [winning_bid_amount] => 
    [bid_increment] => 50.00
    [product_description] => Spinach vegetables for eating
    [product_category] => 1
    [product_type] => Vegetables
    [farmer_price] => 34.00
    [trader_price] => 40.80
    [profit_margin] => 6.80
    [profit_percentage] => 20.00
    [quantity_available] => 100
    [unit] => Kg
    [bidding_end_time] => 2026-04-23 14:59:01
    [is_bidding] => 1
    [product_image] => product_69d97a8f2af7b.jpg
    [status] => inactive
    [order_status] => pending
    [created_at] => 2026-04-16 14:59:01
    [updated_at] => 2026-04-18 22:11:06
    [product_cat] => 
    [product_desc] => 
)

Stock available: 100

Current Cart Contents:

Array
(
)

Test Add to Cart Form:

Check Different Products:

Farmer Product ID 1
Farmer Product ID 2
Trader Product ID 1