tijojoel Posted August 14, 2017 Share Posted August 14, 2017 Hi, I want to remove cart array with the $order->getProductsDetail(); array so that when customer clicked order in their order history I can show the products in that layout . Can this be done in any way? Link to comment Share on other sites More sharing options...
NemoPS Posted August 14, 2017 Share Posted August 14, 2017 What do you mean by removing, exactly? You say removing, but then you want to display it?The order details is already supposed to display products Link to comment Share on other sites More sharing options...
tijojoel Posted August 14, 2017 Author Share Posted August 14, 2017 ya when I am on order history page there is a button to complete the payment from client side so I need to show it in a cart, cart is showing elements are not showing because it is not added in the cart. So I am using the $order->getProductsDetail(); to fetch as array of current order, then I want to show the elements in the cart layout, now cart things are coming instead of that this array elements needs to show. Link to comment Share on other sites More sharing options...
Scully Posted August 15, 2017 Share Posted August 15, 2017 I haven't unterstand it too. Sounds like creating a new order from an existing - but what for? Link to comment Share on other sites More sharing options...
NemoPS Posted August 16, 2017 Share Posted August 16, 2017 The situation is not very clear, are you using a third party module to allow delayed payments?We can hardly guide you in this situation, as it's likely using custom controllers and templates Link to comment Share on other sites More sharing options...
tijojoel Posted August 17, 2017 Author Share Posted August 17, 2017 Hi all, I had replaced my cart array with products array but the problem now I am facing is the total is not calculating because the products I just added in a layout(only shows product details and payment gateways- no header, no footer, not added in cart) to show. Can anyone suggest me how to find total from my products array? $order->getProductsDetail();- From this I am getting product prices, should I manually add the numbers or any other needs to done? Link to comment Share on other sites More sharing options...
NemoPS Posted August 19, 2017 Share Posted August 19, 2017 The total is usually retrieved with Cart::getOrderTotal 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now