- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018
03:45 AM
01-30-2018
03:45 AM
Bundle items name & Cost get using Order Object in success.phtml page after complete place order.
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018
08:32 PM
01-31-2018
08:32 PM
Hi @Ashish_k_php,
Maybe using this?
foreach ($order->getAllItems() as $item) { echo $item->getName() . PHP_EOL; echo $item->getSku() . PHP_EOL; echo $item->getPrice() . PHP_EOL; echo $item->getQtyOrdered() . PHP_EOL; }
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018
06:26 AM
01-30-2018
06:26 AM
Re: How to get bundle items name and cost of that bundle items using Order Object in magento?
Hi @Ashish_k_php,
If you have the $order object you should be able to do something like this:
foreach ($order->getAllItems() as $item) { echo $item->getName() . PHP_EOL; echo $item->getSku() . PHP_EOL; echo $item->getPrice() . PHP_EOL; }
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018
08:27 PM
01-30-2018
08:27 PM
Re: How to get bundle items name and cost of that bundle items using Order Object in magento?
Thank you @Damian Culotta for the reply.
Yes, this is working fine on my end but not get selected bundle items Qty.
How can we get that Qty?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018
07:40 AM
01-31-2018
07:40 AM
Re: How to get bundle items name and cost of that bundle items using Order Object in magento?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018
08:07 PM
01-31-2018
08:07 PM
Re: How to get bundle items name and cost of that bundle items using Order Object in magento?
@Damian Culotta Yes.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2018
08:32 PM
01-31-2018
08:32 PM
Hi @Ashish_k_php,
Maybe using this?
foreach ($order->getAllItems() as $item) { echo $item->getName() . PHP_EOL; echo $item->getSku() . PHP_EOL; echo $item->getPrice() . PHP_EOL; echo $item->getQtyOrdered() . PHP_EOL; }