Timeline for Magento get qty foreach product
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 16, 2016 at 20:46 | vote | accept | Robert | ||
Mar 18, 2015 at 14:04 | comment | added | Robert | I add my foreach in front of line 32 and is the same thing the second product duplicate all product for 2 times | |
Mar 18, 2015 at 13:54 | comment | added | Robert | but if your look at the line 32 there is item not items, items exist only in the second foreach | |
Mar 18, 2015 at 13:48 | comment | added | Robert | yes you are right and how must look the code to work? i am a begginer, can you modify that code from codepad.org/2ovDqy4i to me? you can paste it in the same website | |
Mar 18, 2015 at 13:46 | comment | added | laketuna | You see 4 products instead of 2 because you're looping through the quote items TWICE. SEe lines 32 and 129. | |
Mar 18, 2015 at 13:44 | comment | added | Robert | look at the code here codepad.org/2ovDqy4i I add the code with your modifications but there instead 2 products I have 4 :) | |
Mar 18, 2015 at 13:43 | comment | added | laketuna |
I'm pretty sure you have a misplaced bracket. Just make sure your each iteration of the foreach loop covers all of that $htmlItem .
|
|
Mar 18, 2015 at 13:38 | history | edited | laketuna | CC BY-SA 3.0 |
added 56 characters in body
|
Mar 18, 2015 at 13:38 | comment | added | Robert | look here i paste my entire public function here: codepad.org/2ovDqy4i | |
Mar 18, 2015 at 13:36 | comment | added | Robert | Hi thank you but is not working, the second product and the quantity input field is replicating. | |
Mar 18, 2015 at 13:29 | history | answered | laketuna | CC BY-SA 3.0 |