Jump to content

Remove cart array with products array


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...