0

Hi guys,

Trying to implement a return module in magento but got a strange problem.
I'm passing values from a while loop into another page with values.

Everithing is working well but my first elements of a produs and sku are empty and I dont know why ....

The line with the data is

$retur_pas_final .= '<tr><td><input type="text" name="produs[]" value="'.$nume_produs[1].'" readonly="readonly" ></td><td><input type="text" name="sku[]" value="'.$key.'" readonly="readonly"></td><td>'.$motiv.'</td><td><input type="text" name="observatii[]" /></td></tr>';




[ok] => 37
[motiv] => Array
    (
        [0] => 0
        [1] => 1
        [2] => 2
    )

[observatii] => Array
    (
        [0] => 
        [1] => 
        [2] => 
    )

[produs] => Array
    (
        [0] => CEPSA XTAR MEGA TECH 5W30 DPF 1 L
        [1] => CEPSA MOTO 2T 100 SINTETICO  1 L
    )

[sku] => Array
    (
        [0] => 5119341
        [1] => 5162241
    )`

Edited by diafol: reformatted code

3
Contributors
2
Replies
9
Views
5 Years
Discussion Span
Last Post by broj1
0

Do the values come from the $nume_produs[1] and $key variables? Where do they get assigned and what from?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.