custom variable => product id/quantity
<p>friend wrote a little script to get the product id and product quantity of the selected item.
here it is:</p>

<pre><code>$product_id_string = $_POST['custom'];
$product_id_string = rtrim($product_id_string, ","); 
$id_values = array();
$id_str_array = explode(",", $product_id_string);
$fullAmount = 0;
foreach ($id_str_array as $key =&gt; $value) {

$id_quantity_pair = explode("-", $value);
$product_id = $id_quantity_pair[0]; // product ID
$product_quantity = $id_quantity_pair[1]; // product quantity 
}
</code></pre>

<p>how i understood it...the product id and its quantity is read just out of the custom variable?
greetings!</p>
