$('.sale-item').each(function() {
...
$(this)...
$products = ['Jacket' => 0];
$data = json_decode($json, true);
foreach ($data['data'] as $item) {
if (!empty($products[$item['name']])) $products[$item['name']] = $item['prices']['last'];
}
Скорее всего:
values = ({'user_id': c.from.id})